Steady state heat transfer in solid materials - NAFEMS Benchmark
In this tutorial, a NAFEMS benchmark test for thermal analysis is set up and simulated. 1
Model definition
A steady-state thermal analysis is performed with different boundary conditions (BCs) including adiabatic (insulated or zero heat flux), Dirichlet BCs, and finite heat flux by natural convection specified by a known heat transfer coefficient.
The result is a steady-state temperature distribution in the spatial domain. The image below shows the schematic of the spatial domain with BCs.
Output Results
- Temperature at coordinates , which is on the right boundary exposed to ambient. The benchmark value is .
Material Data
Property | Value | Unit |
---|---|---|
Density | ||
Specific heat capacity | ||
Thermal conductivity |
Boundary conditions
Name | Type | Value | Unit |
---|---|---|---|
left boundary | heat flux | ||
bottom boundary | temperature | ||
right boundary | heat flux | ) | |
top boundary | heat flux | ) | |
ambient | temperature | ||
natural convection | heat transfer coefficient | ||
front boundary | heat flux | ||
back boundary | heat flux |
Step-by-step guide
Here you’ll find a detailed step-by-step tutorial on how to set up a NAFEMS thermal analysis simulation in Quanscient Allsolve.
Step 1 - Build the geometry
-
Create a new project and name it as
-
Start off with a
box
element. -
Edit the size of the box:
Name Element type Center point [m] Size [m] Rotation [deg] box Box X: 0
X: 0.6
X: 0
Y: 0
Y: 1.0
Y: 0
Z: 0
Z: 0.01
Z: 0
Step 2 - Define shared regions
-
Proceed to the
Properties
section. -
Define shared regions:
Region name Region type Target ConstantTemperature
Surface Y bottom surface 3
NaturalConvection
Surface X and Y top surfaces 2, 4
Step 3 - Define the material
-
Create a new material:
Name Abbreviation Description Color Target Solid NAFEMS material Dark grey Volume 1
-
Add properties to the material:
Property Value Density 1
Heat capacity 1
Thermal conductivity 52
Step 4 - Define shared expressions
Define shared expressions:
Expression type | Name | Description | Expression |
---|---|---|---|
Expression | h | Heat transfer coefficient (W/m^2/K) | 750 |
Expression | Tamb | Ambient temperature (K) | 273.15 |
Step 5 - Define physics and boundary conditions
-
Go to the
Physics
section. -
Add the
Heat solid
physics.Physics Target Heat solid Default (volume 1
) -
Add a
Constraint
interaction to Heat solid:Name Interaction type Target Value Constraint Constraint
ConstantTemperature
shared region (surface3
)375.15
-
Add a
Heat source
interaction to Heat solid:Name Interaction type Target Value Heat source Heat source
NaturalConvection
shared region (surfaces2, 4
)-h * (T - Tamb)
Step 6 - Generate the mesh
-
Go to the
Simulations
section. -
Create a new mesh.
-
Set Mesh quality to
Expert settings
. -
Scroll down to Structured meshing and add a
Volume
structured mesh entity: -
Select volume
1
as the structured mesh entity target.Structured mesh entity type Target Segments Volume
volume 1
A: 1
B: 50
C: 30
With these options, only one element is created in the Z-direction to mimic a 2-dimensional domain. Elements of length are created in the X- and Y-directions.
-
Generate the mesh and check the preview.
Step 7 - Apply simulation settings
-
Add a new simulation.
-
Set Analysis type to
Steady state
. -
Select the mesh you created in Step 6 as the mesh for your simulation.
-
Add a
T
temperature field output. -
Add a custom value output, which interpolates temperature at coordinates :
Name Output expression ProbeTemperature interpolate(reg.solid_target, T, [0.3, -0.3, 0])
-
Run the simulation.
-
To check the progress of the simulation, check the
Logs
. -
The relative change is increasing with each iteration, so the simulation will not converge.
Abort
the simulation.
Step 8 - Edit the script
To solve the convergence issue, the Script
needs some modification.
-
Open the
Script
and toggle onScripting mode
. -
Change
fld.T
in the Heat source interaction formulation toqs.dof(fld.T)
. Save the script. -
Run the simulation again.
This time the simulation converges within one iteration as seen from the Logs
.
Step 9 - See results
-
Add a visualization for the
T
field and render it. The steady-state temperature field distribution becomes visible. -
To check the
ProbeTemperature
value, check theSummary
. Temperature at the probe location(0.3, -0.3, 0.0)
m is291.77
K, which is very close to the benchmark value1 of291.4
K.Result accuracy scales with mesh density. An even more accurate result would be obtained with a finer mesh.