Skip to content

Heat transfer in solids

This page derives the weak formulation for heat transfer in solids and describes the available boundary conditions and couplings in Allsolve.

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

βˆ«Ξ©β€…β€Šβˆ’Ο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.

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 useProvide a scalar temperature value in Kelvins (K).
Example300 applies a fixed temperature of 300 K to the selected node or region. See also Adding Heat-solid Constraint.
UnitTemperature 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.

Example1000 applies a heat source of 1000 W/m^regdim to the target region. See also Adding Heat source constraint.
UnitHeat 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.

ExamplePeriodicity 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 useProvide the heat transfer coefficient hh and the surrounding fluid temperature T∞T_{\infty}.
Exampleh=25β€…Wm2Kh = 25\: \frac{W}{mΒ²K} and T∞=293β€…KT_{\infty} = 293\:K models natural air convection at room temperature.
UnitHeat 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 useSpecify the target region. From Actuation mode, select either temperature, heat power or circuit coupling. Fill in the value.
ExampleT=100T = 100 applies a temperature of 100β€…K100\:K to the specified region.
UnitTemperature in Kelvins (K) or heat power in Watts (W)

This formulation supports the following couplings:

  • Joule heating
    • Current flow
    • Magnetism H