Steady-state thermal solution and derived quantities
SteadyStateThermalResults object contains
the temperature and temperature gradient values in a form convenient for plotting and
The temperature and its gradients are calculated at the nodes of the triangular or
tetrahedral mesh generated by
generateMesh. Temperature values at the nodes
appear in the
Temperature property. The three components of the
temperature gradient at the nodes appear in the
Solve a steady-state thermal problem using the
solve function. This function returns a steady-state thermal solution as
Mesh— Finite element mesh
Finite element mesh, returned as a FEMesh Properties object.
Temperature— Temperature values at nodes
Temperature values at nodes, returned as a vector.
XGradients— x-component of temperature gradient at nodes
x-component of the temperature gradient at nodes, returned as a vector.
YGradients— y-component of temperature gradient at nodes
y-component of the temperature gradient at nodes, returned as a vector.
ZGradients— z-component of temperature gradient at nodes
z-component of the temperature gradient at nodes, returned as a vector.
|Evaluate heat flux of a thermal solution at nodal or arbitrary spatial locations|
|Evaluate integrated heat flow rate normal to specified boundary|
|Evaluate temperature gradient of a thermal solution at arbitrary spatial locations|
|Interpolate temperature in a thermal result at arbitrary spatial locations|
Solve a 3-D steady-state thermal problem.
Create a thermal model for this problem.
thermalmodel = createpde('thermal');
Import and plot the block geometry.
importGeometry(thermalmodel,'Block.stl'); pdegplot(thermalmodel,'FaceLabel','on','FaceAlpha',0.5) axis equal
Assign material properties.
Apply a constant temperature of to the left side of the block (face 1) and a constant temperature of to the right side of the block (face 3). All other faces are insulated by default.
Mesh the geometry and solve the problem.
generateMesh(thermalmodel); thermalresults = solve(thermalmodel)
thermalresults = SteadyStateThermalResults with properties: Temperature: [12691x1 double] XGradients: [12691x1 double] YGradients: [12691x1 double] ZGradients: [12691x1 double] Mesh: [1x1 FEMesh]
The solver finds the temperatures and temperature gradients at the nodal locations. To access these values, use
thermalresults.XGradients, and so on. For example, plot temperatures at nodal locations.