The equation

This guide is devoted to thermal fields, which in general are nonstationary. Let us consider a small volume dVdV inside a body with boundary SS and outward unit normal n\vec{n} (figure 1.1). The idea is simple: the amount of heat accumulated in the volume per unit time equals the heat inflow through its boundary plus the heat released inside by internal sources. This equation is called the energy balance equation and follows from the law of conservation of energy. Through the boundary there can be not only an inflow of heat but also an outflow, which is mathematically described as a negative inflow; similarly with internal sources, which can be consumers.

A small volume of a body with its boundary, outward normal and heat flux
Fig. 1.1. The energy balance in the small volume dVdV: the heat flux q\vec{q} through the boundary SS and internal heat sources.

The formula for thermal energy is known dQdQ =cdmT= c \cdot dm \cdot T, where dQdQ is the thermal energy of the small volume [J][\text{J}], cc is the specific heat capacity [J/(kgK)][\text{J}/(\text{kg} \cdot \text{K})], dmdm is the mass of the small volume [kg][\text{kg}], TT is the temperature [K][\text{K}]. The mass of the small volume dVdV can be written in terms of the density ρ\rho [kg/m3][\text{kg}/\text{m}^3] and the volume itself dVdV [m3][\text{m}^3]: dmdm =ρdV= \rho \cdot dV. Then the energy stored in this small volume equals dQdQ =cρTdV= c \cdot \rho \cdot T \cdot dV. The rate of change of the thermal energy of the volume VV equals

tVcρTdV\displaystyle \frac{\partial}{\partial t} \int_V c \cdot \rho \cdot T \, dV =VcρTtdV.\displaystyle = \int_V c \cdot \rho \cdot \frac{\partial T}{\partial t} \, dV.
(1.1)

Now let us describe the heat transfer. Fourier's law states that the heat flux density q\vec{q} [W/m2][\text{W}/\text{m}^2] is proportional to the temperature gradient and directed against it — heat flows from hot regions to cold ones:

q\displaystyle \vec{q} =kT,\displaystyle = -k \, \nabla T,
(1.2)

where kk is the thermal conductivity [W/(mK)][\text{W}/(\text{m} \cdot \text{K})]. The minus sign precisely reflects the fact that the flux is directed toward decreasing temperature.

Let us assemble the energy balance. The rate of change of the energy of the volume equals the heat inflow through the boundary (the inward flux is qn-\vec{q} \cdot \vec{n}, since n\vec{n} is the outward one) plus the power of the internal sources with volume density FF [W/m3][\text{W}/\text{m}^3]:

VcρTtdV\displaystyle \int_V c \cdot \rho \cdot \frac{\partial T}{\partial t} \, dV =SqndS\displaystyle = -\oint_S \vec{q} \cdot \vec{n} \, dS +VFdV.\displaystyle + \int_V F \, dV.
(1.3)

The surface integral is inconvenient — we get rid of it by the Ostrogradsky–Gauss theorem, turning the flux through the boundary into a volume integral of the divergence:

SqndS\displaystyle \oint_S \vec{q} \cdot \vec{n} \, dS =VdivqdV.\displaystyle = \int_V \operatorname{div} \vec{q} \, dV.
(1.4)

Substituting (1.4) into (1.3) and collecting everything under one integral, we obtain

V(cρTt+divqF)dV\displaystyle \int_V \left( c \cdot \rho \cdot \frac{\partial T}{\partial t} + \operatorname{div} \vec{q} - F \right) dV =0.\displaystyle = 0.
(1.5)

The volume VV was chosen arbitrarily, and the integral over any such volume equals zero — hence the integrand itself equals zero. Substituting Fourier's law (1.2), we arrive at the equation in differential form:

cρTt\displaystyle c \cdot \rho \cdot \frac{\partial T}{\partial t} =div ⁣(kT)\displaystyle = \operatorname{div}\!\left( k \cdot \nabla T \right) +F.\displaystyle + F.
(1.6)

It remains to use the assumption made above. The medium is homogeneous and isotropic, so the thermal conductivity kk is the same at all points and in all directions — it can be taken outside the divergence sign, and div\operatorname{div} \nabla Δ\equiv \Delta is the Laplace operator:

cρTt\displaystyle c \cdot \rho \cdot \frac{\partial T}{\partial t} =kΔT\displaystyle = k \cdot \Delta T +F.\displaystyle + F.
(1.7)

Dividing both sides by cρc \cdot \rho and denoting a2a^2 =kcρ= \dfrac{k}{c \cdot \rho} — the thermal diffusivity [m2/s][\text{m}^2/\text{s}] — and ff =Fcρ= \dfrac{F}{c \cdot \rho} the reduced source density [K/s][\text{K}/\text{s}], we finally obtain the heat conduction equation:

T(M,t)t\displaystyle \frac{\partial T(M, t)}{\partial t} =a2ΔT(M,t)\displaystyle = a^2 \cdot \Delta T(M, t) +f(M,t),\displaystyle + f(M, t),
(1.8)

where a2a^2 is the thermal diffusivity, Δ\Delta is the Laplace operator, MM is the geometry, tt is time [s][\text{s}], T(M,t)T(M, t) is the sought solution — the temperature field [K][\text{K}], f(M,t)f(M, t) is the heat source density function inside the body [K/s][\text{K}/\text{s}].

Equation (1.8) is an inhomogeneous equation, since the right-hand side contains the heat source density function f(M,t)f(M, t). The corresponding homogeneous equation has the form

T(M,t)t\displaystyle \frac{\partial T(M, t)}{\partial t} =a2ΔT(M,t).\displaystyle = a^2 \cdot \Delta T(M, t).
(1.9)

The importance of the homogeneous equation will become apparent later, when we obtain the general solution by the Fourier method of separation of variables.

For the test problems we will consider the following coordinate systems and Laplace operators.

In the one-dimensional case the Cartesian coordinate system is used MM x\equiv x:

Δ\displaystyle \Delta 2x2.\displaystyle \equiv \frac{\partial^2}{\partial x^2}.
(1.10)

In the two-dimensional case the polar coordinate system is used MM (r,θ)\equiv (r, \theta):

Δ\displaystyle \Delta 2r2\displaystyle \equiv \frac{\partial^2}{\partial r^2} +1rr\displaystyle + \frac{1}{r} \cdot \frac{\partial}{\partial r} +1r22θ2.\displaystyle + \frac{1}{r^2} \cdot \frac{\partial^2}{\partial \theta^2}.
(1.11)

In the three-dimensional case the spherical coordinate system is used MM (r,θ,ϕ)\equiv (r, \theta, \phi):

Δ\displaystyle \Delta 2r2\displaystyle \equiv \frac{\partial^2}{\partial r^2} +2rr\displaystyle + \frac{2}{r} \cdot \frac{\partial}{\partial r} +1r2sinθθ ⁣(sinθθ)\displaystyle + \frac{1}{r^2 \sin\theta} \cdot \frac{\partial}{\partial\theta} \!\left(\sin\theta \cdot \frac{\partial}{\partial\theta}\right) +1r2sin2 ⁣θ2ϕ2.\displaystyle + \frac{1}{r^2 \sin^2\!\theta} \cdot \frac{\partial^2}{\partial\phi^2}.
(1.12)