Author: John Singleton, Cornell University Problem Specification |
If necessary , download the solution by right-clicking the following link: conduction_2d.zip
conduction_2d.zip
https://confluence.cornell.edu/download/attachments/146918520/UnrefTemp_Full.PNG |
We would now like to view the Total Heat Flux as vectors, in order to better visualize it, as well as to check the perfectly insulated boundaries. In order to do so, (Click) Vectors, . The sliders in the top bar can be used to change the size and number of vectors displayed. At this point, the heat flux should appear similar to the image below.
https://confluence.cornell.edu/download/attachments/146918520/DirHeatFluxVec_Full.png |
ISTEC Conference Attendees please skip to Verification and Validation step |
https://confluence.cornell.edu/download/attachments/146918520/UnrefDirectHeatFluxXX_Full.PNG |
At this point we are interested in extracting the temperature values along the horizontal line, y=1m. First, (Right Click) Model > Insert > Construction Geometry as shown below.
https://confluence.cornell.edu/download/attachments/146918520/InsConstructGeomFull.PNG |
https://confluence.cornell.edu/download/attachments/146918520/InsertPath_Full.PNG |
https://confluence.cornell.edu/download/attachments/146918520/PathDet_Full.PNG |
https://confluence.cornell.edu/download/attachments/146918520/DetTemp2_Full.PNG |
https://confluence.cornell.edu/download/attachments/146918520/PathTempResults_Full.PNG |
Now we are interested in calculating the heat flux through the bottom boundary. First, construct a path, following steps similar to those above, but with the start and end points at the bottom corners of the surface. (Right Click) Model > Insert > Construction Geometry. Next, (Right Click) Construction Geometry > Insert > Path. Then, set Number of Sampling Points to 200, set Start X Coordinate to 0, set Start Y Coordinate to 0, set End X Coordinate to 1, and set End Y Coordinate to 0 as shown below.
https://confluence.cornell.edu/download/attachments/146918520/PathDet_Full.PNG |
Similar to the Temperature inserted along the first path, now insert Directional Heat Flux results along Path 2. (Right Click) Solution > Insert > Thermal > Directional Heat Flux. Choose Path for the Scoping Method, set Path 2 for the Path and Y axis for Orientation, as seen below.
Now,(Click) Solve, , and ANSYS will find the Directional Heat Flux on the line y=0m as a function of x position. We would like to find the Total Heat Flux through the bottom, and to do this we will export the data to MATLAB. To do so, right click in the tabular data displayed in the lower righthand corner of the screen. Select all (Ctrl+A), right-click and select Export. Save the file as "qy_bot.txt" in your MATLAB working directory.
Next, open MATLAB and use the following code to integrate along the path:
clear all; clc;
qy_bot = dlmread('qy_bot.txt', '', 'B2..C50');
qy_bot_tot = trapz(qy_bot(:,1),qy_bot(:,2));
The dlmread function is used to read the data from the text file, while the trapz function performs numerical integration using trapezoids. The variable 'qy_bot_tot' calculated in MATLAB represents the total dimensionless heat flux through the bottom, y=0 line.
Save the project now.
Go to Step 7: Verification and Validation
See and rate the complete Learning Module
Go to all ANSYS Learning Modules