# Boundary Value Problems/Derivation of Heat Equation

Boundary Value Problems
C - Heat Capacity Joules per degree Kelvin
c - specific heat capacity is C per unit mass so j/(gm deg)
A quick derivation of heat equation.
First Principles
The $-\nabla u=v$ is a vector field the provides a direction and magnitude for the heat flow at any point in the volume.
Let $\Delta V$ be a small volume in $\mathbf {V}$. Choose $S_{1}{\mbox{ and }}S_{2}$ represent two parallel end areas of this volume. Each end area has a normal $n_{1}{\mbox{ and }}n_{2}$ . The net flow through the end area $\Delta A$ is the amount of flow $v$ normal to the surface $S_{1}$ times the surface area $\Delta A$ of $S_{1}$
For a cubic volume the net flux through each side area $S_{B}$ will be $\lim _{N\to \infty }\sum _{i=1}^{N}-k\nabla u_{i}\cdot n\Delta A_{i}=\int \int _{S_{B}}-k\nabla u_{i}\cdot ndA$
If there are any sources or sinks in the block these are included as an additive term $E=\int _{B}f(x,y,z,t)dV$.The total flux for the cube will be a double integral over the closed surface of the cube volume.
${\mbox{Net Flux}}=\int \int _{S_{B}}-k\nabla u_{i}\cdot ndA+\int _{B}f(x,y,z,t)dV$
There are three results for the integration: 1) The net flux is positive, which implies more flux is leaving the cube than entering it. An example would be the radiation from a radioactive source enclosed in a block of cement. 2) The net flux is zero, which implies the in flux equals the out flux. Even if there are sources in the cube there are also sinks that absorb the addition flux. An example would be putting water in a barrel while it flows out through the bottom at the same rate as the entry rate. 3) The net flux is negative, which implies more flux is entering the cube than leaving it. An example would be a material that absorbs heat applied to it's surface, such as melting ice.
Another way of looking at the heat energy stored in a piece of material: A mass will hold heat. The amount of heat in an incremental mass is estimated by the expression:
c - specific heat capacity is C per unit mass so j/(gm deg)
The total heat, $\displaystyle H$ , in the total mass will be $\displaystyle H=\int _{B}cu\rho dV$
The change in heat per unit time is ${\frac {dH}{dt}}={\frac {d}{dt}}\int _{B}cu\rho dV=\int _{B}c{\frac {du}{dt}}\rho dV$. The change in the heat is the net flux ${\mbox{Net Flux}}=\int \int _{S_{p}}-k\nabla u\cdot ndA$ so by equivalence:
$\int _{B}c{\frac {du}{dt}}\rho dV=\int \int _{S_{p}}-k\nabla u\cdot ndA+\int _{B}fdV$.
$\int _{B}c{\frac {du}{dt}}\rho dV=\int _{B}\nabla \cdot (k\nabla u)dV+\int _{B}fdV$.
Dividing through by $c\rho$ and labeling the factor $\alpha ^{2}={\frac {k}{c\rho }}$ the integral equation becomes.
$\int _{B}{\frac {du}{dt}}dV=\int _{B}\alpha ^{2}\nabla \cdot \nabla udV+\int _{B}{\frac {f}{\rho c}}dV$.
Pull all the integrals together on the right:
$\int _{B}{\frac {du}{dt}}dV=\int _{B}\alpha ^{2}\nabla ^{2}u+{\frac {f}{\rho c}}dV$.
Without proving it we will state ${\frac {du}{dt}}=\alpha ^{2}\nabla ^{2}u+{\frac {f}{\rho c}}$. This is the heat equation without convection (strictly conduction).
$\alpha ^{2}$ is the material's diffusivity. And $F={\frac {f}{\rho c}}$ is the heat source/sink density in the material.
The temperature $u(x,y,z,t)$ is a scalar field associated with the points in the volume. As with ODE's we consider the initial state of the system (initial value)as part of the solution process. For this problem the initial value is associated with every point in the volume at $t=0$.
The initial value is $u(x,y,z,t=0)=g(x,y,z)$ where $g$ is a given function.
In addition to the initial conditions there will be equations that define the flow of heat across the boundary of the surface.
Three things can happen at a boundary:
1) Flux can flow in a positive direction from the body out across the boundary at a point. If $\nabla u\cdot {\hat {n}}>0$ at a point on the surface then the flow is from the interior to the exterior of the volume, across the surface. This condition occurs if the interior is at a higher temperature than the exterior.
2) Flux can flow in across the boundary at a point on the surface, If $\nabla u\cdot {\hat {n}}<0$ at a point on the surface then the flow is from the exterior to the interior of the volume, across the surface. This occurs if the exterior temperature is higher than the interior.
3) Flux does not flow cross the boundary.If $\nabla u\cdot {\hat {n}}=0$. Interior temperature at the boundary equals the exterior temperature at the boundary.
These cases occur for fixed boundary conditions: $\displaystyle u_{\delta \Omega }(t)=T$ , the temperature at the boundary $\displaystyle u_{\delta \Omega }(t)$ is held at a constant exterior temperature, $\displaystyle T$.