FEATool Multiphysics
v1.17.1
Finite Element Analysis Toolbox
|
Transient heat diffusion problem where a unit length rod is kept at fixed temperature T = 25 at the right end and losing heat from a constant outward heat flux qn = 1 at the other end. The computed results are compared with the analytic solution
\[ T_{ref} = (24+x) + \sum_{n=1}^\infty 8/(1-2n)^2/\pi^2cos((n-1/2)\pi x)e^{-((n-1/2)^2\pi^2)t} \]
This model is available as an automated tutorial by selecting Model Examples and Tutorials... > Heat Transfer > Transient Heat Diffusion in a Rod from the File menu. Or alternatively, follow the step-by-step instructions below. Note that the CFDTool interface differ slightly from the FEATool Multiphysics instructions described in the following.
Select the Heat Transfer physics mode from the Select Physics drop-down menu. (Note that for CFDTool the physics selection is done in the Equation settings dialog box.)
Press OK to finish and close the dialog box.
Press the Generate button to call the grid generation algorithm.
Enter 25
into the Initial condition for T edit field.
A convenient way to define and store coefficients, variables, and expressions is using the Model Constants and Expressions functionality. The defined expressions can then be used in point, equation, boundary coefficients, as well as postprocessing expressions, and can easily be changed and updated in a single place. Enter an the expression for the reference temperature Tref with two terms (n = 2).
Tref
into the edit field for the variable name.Enter (24+x) + 8/pi^2*cos(pi/2*x)*exp(-pi^2/4*t) + 8/9/pi^2*cos(3*pi/2*x)*exp(-(9/4*pi^2)*t)
into the edit field for the expression.
Enter -1
into the Inward heat flux edit field.
Enter 25
into the Temperature edit field.
0.01
into the Time step size edit field.Enter 0.2
into the Duration of time-dependent simulation (maximum time) edit field.
Press the Solve button.
The temperature at the final time is shown where one can see that the temperature is a constant 25 degrees at the right end and is losing heat towards the left.
Plot and visualize the difference between the computed and reference temperature fields.
Enter T-Tref
into the User defined surface plot expression edit field.
Enter 0 1 -1e-3 1e-3
into the Manual axis settings [xmin xmax ymin ymax] edit field.
Press OK to finish and close the dialog box.
The error already has a small magnitude of 10-3 but could be improved with a smaller grid size, higher element order, and smaller time step size.
The transient heat diffusion in a rod heat transfer model has now been completed and can be saved as a binary (.fea) model file, or exported as a programmable MATLAB m-script text file (available as the example ex_heattransfer7 script file), or GUI script (.fes) file.