Skip to content

Heat transfer in solids

This page describes the available boundary conditions and couplings for heat transfer in solids in Allsolve. The weak formulation is stated up front; the full derivation is at the end of this page.

The weak form solved by Allsolve is

∫Ω  −ρCp∂T∂t  T′  dΩ+∫Ω  −κ∇T⋅∇T′  dΩ+∫Γ  (−q⋅n)  T′  dΓ+∫Ω  Q  T′  dΩ=0. \int_{\Omega}\; -\rho C_p \frac{\partial T}{\partial t} \; T^{\prime} \; d\Omega + \int_{\Omega}\; -\kappa \nabla T \cdot \nabla T^{\prime} \; d\Omega + \int_{\Gamma}\; (-\boldsymbol{q} \cdot \boldsymbol{n}) \; T^{\prime} \; d\Gamma + \int_{\Omega}\; Q \; T^{\prime} \; d\Omega = 0.

where TT is the temperature field, q\boldsymbol{q} the heat flux density, QQ the volumetric heat source, ρ\rho the density, CpC_p the specific heat capacity, and κ\kappa the thermal conductivity.

See Formulation derivation for the full strong-to-weak derivation.

Applies a fixed temperature TT to a node or region, enforcing a Dirichlet boundary condition for the heat equation. Use this to define fixed-temperature boundaries, such as a heat sink held at a constant temperature or a surface in contact with a thermal reservoir.

How to use Provide a scalar temperature value in Kelvins (K).
Example 300 applies a fixed temperature of 300 K to the selected node or region. See also Adding Heat-solid Constraint.
Unit Temperature in Kelvins (K)

Applies a heat source QQ to a region, acting as a source term in the heat equation. Used to model internally generated heat, such as resistive heating in conductors. Can be specified as a constant value or a spatially varying field. In Quanscient Allsolve, zero heat flux Neumann boundary condition Q=0Q = 0 is automatically applied to all boundaries where no other condition is set. There is no need to define it manually.

Example 1000 applies a heat source of 1000 W/m^regdim to the target region. See also Adding Heat source constraint.
Unit Heat source in Watts/m^regdim. The regdim is the dimension of the target regions. For volume targets, the unit is W/m^3 and for surface targets it is W/m^2.

Imposes periodic boundary conditions on the temperature field TT between two boundaries. Reduces the computational domain size for geometrically symmetric problems, avoiding the need to model the full geometry.

Example Periodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors

Applies a convective heat flux boundary condition on a surface or a curve, modeling heat exchange between the solid and a surrounding fluid. The heat flux is proportional to the difference between the surface temperature and the ambient fluid temperature, defined by Newton’s law of cooling:

q=h(T−T∞)q = h(T - T_{\infty})

where hh is the heat transfer coefficient and T∞T_{\infty} is the surrounding fluid temperature.

How to use Provide the heat transfer coefficient hh and the surrounding fluid temperature T∞T_{\infty}.
Example h=25 Wm2Kh = 25\: \frac{W}{m²K} and T∞=293 KT_{\infty} = 293\:K models natural air convection at room temperature.
Unit Heat transfer coefficient in Watts per square meter Kelvin Wm2K\frac{W}{m²K}, fluid temperature in Kelvins (K)

Applies a lumped temperature TT or heat power Φ\Phi to a specific region. Used to model simplified thermal elements where the detailed temperature distribution is not explicitly resolved, but replaced with an equivalent lumped temperature or heat flux.

How to use Specify the target region. From Actuation mode, select either temperature, heat power or circuit coupling. Fill in the value.
Example T=100T = 100 applies a temperature of 100 K100\:K to the specified region.
Unit Temperature in Kelvins (K) or heat power in Watts (W)

This formulation supports the following couplings:

  • Joule heating
    • Current flow
    • Magnetism H

In a conjugate heat transfer simulation, Heat solid resolves the temperature in the solid domain while Heat fluid resolves it in the fluid domain. The temperature field TT is continuous across the fluid and the solid domains, so the interaction is strongly coupled and no material specific suffixes are required.

Heat solid supports all analysis types: Static, Harmonic, Multiharmonic, Transient, and Eigenmode.

See the full compatibility table in Simulations overview.

Heat transfer in solids is a thermal conduction process that is governed by the equation

ρCp∂T∂t=−∇⋅q+Q\begin{align*} \rho C_p \frac{\partial T}{\partial t} = -\nabla \cdot \boldsymbol{q} + Q \tag{1} \end{align*}

where

  • ρ\rho is the material density (kg/m3kg/m^3)
  • CpC_p is specific heat capacity of the material (J/kg⋅KJ/kg \cdot K)
  • q\boldsymbol{q} is the heat flux density (W/m2W/m^2)
  • QQ is the volumetric heat source (W/m3W/m^3)
  • TT is the Temperature field (KK).

Heat flux density due to conduction is given by Fick’s law of diffusion

q=−κ∇T\begin{align*} \boldsymbol{q} = -\kappa \nabla T \tag{2} \end{align*}

where κ\kappa is the thermal conductivity of the material (W/m2KW/m^2 K).

The governing equation (1)\text{(1)} then becomes

−ρCp∂T∂t+∇⋅(κ∇T)+Q=0\begin{align*} -\rho C_p \frac{\partial T}{\partial t} + \nabla \cdot (\kappa \nabla T) + Q = 0 \tag{3} \end{align*}

To obtain the weak form, multiply (3)\text{(3)} by the test function T′T^\prime and integrate over the domain Ω\Omega:

∫Ω  −ρCp∂T∂t  T′  dΩ+∫Ω  ∇⋅(κ∇T)  T′  dΩ+∫Ω  Q  T′  dΩ=0. \int_{\Omega}\; -\rho C_p \frac{\partial T}{\partial t} \; T^{\prime} \; d\Omega + \int_{\Omega}\; \nabla \cdot (\kappa \nabla T) \; T^{\prime} \; d\Omega + \int_{\Omega}\; Q \; T^{\prime} \; d\Omega = 0.

Applying Leibniz rule on the divergence term, we get

∫Ω  −ρCp∂T∂t  T′  dΩ+∫Ω  −κ∇T⋅∇T′  dΩ+∫Ω  ∇⋅(κ∇T  T′)  dΩ+∫Ω  Q  T′  dΩ=0. \int_{\Omega}\; -\rho C_p \frac{\partial T}{\partial t} \; T^{\prime} \; d\Omega + \int_{\Omega}\; -\kappa \nabla T \cdot \nabla T^{\prime} \; d\Omega + \int_{\Omega}\; \nabla \cdot (\kappa \nabla T \; T^{\prime}) \; d\Omega + \int_{\Omega}\; Q \; T^{\prime} \; d\Omega = 0.

Applying Divergence theorem on the divergence term, we get

∫Ω  −ρCp∂T∂t  T′  dΩ+∫Ω  −κ∇T⋅∇T′  dΩ+∫Γ  (κ∇T⋅n)  T′  dΓ+∫Ω  Q  T′  dΩ=0. \int_{\Omega}\; -\rho C_p \frac{\partial T}{\partial t} \; T^{\prime} \; d\Omega + \int_{\Omega}\; -\kappa \nabla T \cdot \nabla T^{\prime} \; d\Omega + \int_{\Gamma}\; (\kappa \nabla T \cdot \boldsymbol{n}) \; T^{\prime} \; d\Gamma + \int_{\Omega}\; Q \; T^{\prime} \; d\Omega = 0.

Substituting (2)\text{(2)} into the boundary term, we get the final weak formulation stated at the top of this page.