Laboratory work 2
" Stationary analysis of the plate heating process in a three-dimensional
problem statement "
1 Purpose of work
Learn how to calculate stationary temperature fields formed in a cube with given
fixed temperature values on the faces of the model.
2 Statement of the problem and assumptions made
The stationary problem is being solved. A rectangular box with an aspect ratio
of 1:1:1 has a constant temperature on two different faces. It is necessary to obtain a
stationary temperature distribution in the cube. The dependence of material properties
on temperature and heat exchange with the environment are not taken into account.
Figure 1 - Temperature distribution in the cube as a result of laboratory work
3 Implementation of the task in command mode
Table 1 - The procedure for performing laboratory work in command mode
No Team Description path
.
1 Start Start > All Programs >Ansys 19.0>Mechanical
APDL Product Launcher
2 Specify working directory In the “Working Directory” line specify the path
to the folder in which the calculations will be
made
3 Name In the “Job name” line specify the name of the
default files that will be created by the program
1
during calculations and start the program with the
“Run” button
4 Change name UM > File > Change job name
Enter a new file name and click OK
5 Change working directory UM > File > Change directory
Specify a new folder and click OK
6 Change title UM > File > Change Title
Enter the name of the title that will be displayed
on the main screen and click OK
7 Color inversion UM>PlotCtrls>Style>Colors>Revers video
8 Enable filters MM>Preferences> Select Thermal>OK
9 Specifying and selecting MM>Preprocessor>Element
an element type Type>Add/Edit/Delete>Add
Select from list “Thermal Mass”>solid>Brick 8
node>OK>Close
10 Determination of MM>Preprocessor>Material Props>Temperature
temperature units units> Select Kelvin>OK
11 Determination of material MM>Preprocessor>Material Props>Material
properties Models>Thermal>Density> Enter value >OK
Specific Heat> Enter value >OK
Conductivity>Isotropic> Enter >OK>Close value
12 Creating a cube model MM>Preprocessor>Modeling>Create>Volumes>
Block>By Dimensions> Enter X1=0, X2=1,
Y1=0, Y2=1, Z1=0, Z2=1>OK
13 Model meshing MM>Preprocessor>Meshing>Mesh>Volumes>Fr
ee> Left button mice highlight model>OK
14 Load application to the MM>Solution>Define
first node Loads>Apply>Thermal>Temperature>On Lines>
click By any lines >Apply
In the “Value load Temp” line enter temperature
value
In “lab 2” line select Temp > apply
15 Load application to the Click on any line > Apply
second node
2
In the “Value load Temp” line enter temperature
value
In “lab 2” line select Temp > OK
16 Analysis type definition Main Menu> solution>analysis
type>new>analysis(stady-state)
17 Solution MM>Solution>Solve>CurrentLs>OK
Looking forward to completion (An inscription
will appear “Solution is done!”)
18 Result display MM>General Postproc>Plot
Results>Countor Plot>Nodal Solu> Select
DOF solution>Nodal Temperature>OK
19 Desktop Window Customization UM>PlotCtrl>WindowCtrl>Window
Options
20 Change the temperature legend In line “INFO Display of Legend” select
display type “Legend ON”>Apply
21 Remove the title of the legend Uncheck in line “LEG1 Legend header”
>Apply
22 Remove information above the Uncheck in line “LEG2 View portion of
legend legend” >Apply
23 Remove the frame of the Uncheck in line “FRAME Window frame”
working field >apply
24 Removing the title on the screen Uncheck in line “TITLE Title” >Apply
25 Changing the display of the In line “LOGO ANSYS logo display”
Ansys logo (does not work in select “Text in legend”>Apply
ANSYS academic )
26 Remove date and time In line “Date DATE/TIME display” select
“No Date or Time”>Apply
27 Remove the display of the In line “[/TRIAD] Location of triad” select
coordinate system on the screen “Not shown” >OK
28 Saving the database UM > File > Save As >Select the folder
where the database is saved and specify the
file name> OK
29 Saving as an image UM>PlotCtrls>Capture Image
Select File>Save as> Select folder and
indicate Name File > Save
3
4 Implementation of the task in the programming language APDL
Table 2 - The procedure for performing laboratory work in the APDL programming
language
No Team Description Path
.
1 Start Not executed with commands
2 Specify working directory Not executed with commands
3 Name Not executed with commands
4 Change name
/FILNAME – command /FILNAME,job,0
Job – file name
0 – continue logging file
5 Change working directory
/CWD – command /CWD,'D:\ansys'
'D:\ansys' – directory path
6 Change title
/TITLE – command /TITLE,title
Header – header name
7 Color inversion
/rgb, INDEX – command /RGB,INDEX,100,100,100, 0
/REPLOT – update /RGB,INDEX,80,80,80,13
/RGB,INDEX,60,60,60,14
/RGB,INDEX, 0, 0, 0.15
/REPLOT
8 Enable filters
KEYW – command KEYW,PR_THERM,1
PR _ THERM – determine the type of
problem (temperature)
1 – enable filter
9 Specifying and selecting an element type
/PREP7 – start work in the preprocessor /PREP7
ET command
4
1 – Ordinal number of element type ET,1,SOLID70
SOLID 70 – 3d element name in Ansys
10 Determination of temperature units
TOFFST – command
0 – unit of measure Kelvin TOFFST,0
11 Determination of material properties
MPTEMP – a command that creates a MPTEMP,1,0
table where the temperature values MPDATA,DENS,1,,3300
entered MPDATA,C,1,,11000
MPDATA – a command that sets material MPDATA,KXX,1,,0.11
properties to a table
DENS – density;
C – specific heat capacity
KXX – thermal conductivity;
1 – material number;
3300 is the numerical value of the
density.
11000 – numerical value of the specific
heat
0.11 – numerical value of thermal
conductivity
12 Creating a box model
BLOCK – command to create a box
0 – X coordinate of the lower left corner; BLOCK,0,1,0,1,0,1
1 – X coordinate of the lower right
corner;
0 – Y coordinate of the upper left corner;
1 – Y coordinate of the upper right
corner;
0 – coordinate Z of the front part of the
model;
1 – Z coordinate of the back of the model;
13 Model meshing
MSHKEY – a command that determines
the type of partition; MSHKEY,0
0 – partition type Free; MSHAPE,1,3d
MSHAPE – a command that determines VMESH,ALL
the shape of the partition;
1,3d – division into three-dimensional
5
elements of a triangular shape;
VMESH – volume division command;
ALL – split all active volumes.
14 Load application to the first line
/SOL – Command to move to the /sol
Solution section
Lsel – active line selection Lsel,S,Line,,8
S – Select from all existing lines DL,all,,temp,55
8 – line number
DL – command to set the load on the line
All – select all active lines
Temp – set temperature
55 – temperature value
15 Due to a conflict in any version of
ANSYS , we will select the second line
using the capture operator for the GUI
Lsel – make all lines active for capturing lsel, all
FLST – sets the data needed to capture FLST,2,1,4,ORDE,1
2 – field number in the command that
uses the captured data
1 – number of elements
4 – element type: line numbers
ORDE – The data is in an ordered list
1 – the length of the list, the same as the
number of selectable elements of the
model
FITEM - Identifies the data selected using FITEM,2,6
the capture statement !*
2 – field number in the command that /GO
uses the captured data
6 – line number
DL – command to set the load on the line DL,P51X, ,TEMP,155
P51X – select a line captured earlier
Temp – set temperature
155 – temperature value
16 Analysis type definition
ANTYPE – command ANTYPE,0
0 – static analysis
17 Solution
SOLVE – command SOLVE
6
18 Result display
/POST1 – go to the postprocessor section /POST1
PLNSOL – command to display solution PLNSOL,TEMP,,0
results by nodes
TEMP – display of material temperature
19 Change the temperature legend display
type
/ PLOPTS – command /PLOPTS,INFO,3
INFO – display type selection
3 – enable multi-legend
20 Remove the title of the legend /PLOPTS,LEG1,0
21 Remove information above the legend /PLOPTS,LEG2,0
22 Removes the frame of the working field /PLOPTS,FRAME,0
23 Removing the title on the screen /PLOPTS,TITLE,0
24 Changing the display of the Ansys logo /PLOPTS,LOGO,0
(does not work in ANSYS academic )
25 Remove date and time /PLOPTS,DATE,0
26 Remove the display of the coordinate /TRIAD,OFF
system on the screen /REPLOT
/REPLOT - update
27 Saving the database SAVE,'111','db','D:\ansys'
SAVE – command to save the database
111 – file name
Db – file extension
D :\ ansys – file saving path
28 Saving as an image Not fulfilled