Documentation

### This is machine translation

Translated by
Mouseover text to see original. Click the button below to return to the English version of the page.

Steady-state thermal solution and derived quantities

## Description

A `SteadyStateThermalResults` object contains the temperature and temperature gradient values in a form convenient for plotting and postprocessing.

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 `XGradients`, `YGradients`, and `ZGradients` properties.

To interpolate the temperature or its gradients to a custom grid (for example, specified by `meshgrid`), use `interpolateTemperature` or `evaluateTemperatureGradient`.

To evaluate heat flux of a thermal solution at nodal or arbitrary spatial locations, use `evaluateHeatFlux`. To evaluate integrated heat flow rate normal to specified boundary, use `evaluateHeatRate`.

## Creation

Solve a steady-state thermal problem using the `solve` function. This function returns a steady-state thermal solution as a `SteadyStateThermalResults` object.

## Properties

expand all

Finite element mesh, returned as a FEMesh Properties object.

Temperature values at nodes, returned as a vector.

Data Types: `double`

x-component of the temperature gradient at nodes, returned as a vector.

Data Types: `double`

y-component of the temperature gradient at nodes, returned as a vector.

Data Types: `double`

z-component of the temperature gradient at nodes, returned as a vector.

Data Types: `double`

## Object Functions

 `evaluateHeatFlux` Evaluate heat flux of a thermal solution at nodal or arbitrary spatial locations `evaluateHeatRate` Evaluate integrated heat flow rate normal to specified boundary `evaluateTemperatureGradient` Evaluate temperature gradient of a thermal solution at arbitrary spatial locations `interpolateTemperature` Interpolate temperature in a thermal result at arbitrary spatial locations

## Examples

collapse all

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.

`thermalProperties(thermalmodel,'ThermalConductivity',80);`

Apply a constant temperature of $100{\phantom{\rule{0.16666666666666666em}{0ex}}}^{\circ }C$ to the left side of the block (face 1) and a constant temperature of $300{\phantom{\rule{0.16666666666666666em}{0ex}}}^{\circ }C$ to the right side of the block (face 3). All other faces are insulated by default.

```thermalBC(thermalmodel,'Face',1,'Temperature',100); thermalBC(thermalmodel,'Face',3,'Temperature',300);```

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.Temperature`, `thermalresults.XGradients`, and so on. For example, plot temperatures at nodal locations.

`pdeplot3D(thermalmodel,'ColorMapData',thermalresults.Temperature)`

평가판 신청