Weak form of the heat equation[edit | edit source]
Let us now derive the weak form of the model of heat conduction in equations (16). It is more convenient to use the form of the governing equation given in equation (10). The equation is
![{\displaystyle \rho ~C_{v}~{\frac {\partial T}{\partial t}}-{\boldsymbol {\nabla }}\bullet [{\boldsymbol {\kappa }}{\boldsymbol {\nabla T]}}=s~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/59d74cedfd4af113030a0af59e1607bb827c6059)
Let
be the space of weighting functions (or test functions). Then any
(
) is continuously differentiable. The weighting functions also satisfy
on
. Recall that we called a similar set of functions
in our discussion of the Poisson problem. We can write

Let
be the set of trial solutions. Then any trial function
has to satisfy the essential boundary conditions on
. This is written as

To get the weak form, we multiply the governing equation by the weighting function and integrate over the volume to get
![{\displaystyle {\text{(28)}}\qquad \int _{\Omega }\left(\rho ~C_{v}~{\frac {\partial T}{\partial t}}\right)~w~dV-\int _{\Omega }\left[{\boldsymbol {\nabla }}\bullet ({\boldsymbol {\kappa }}{\boldsymbol {\nabla T)}}\right]~w~dV=\int _{\Omega }s~w~dV~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/22e91cb8a7d4e42a620f27ddae5ecee2e6301edb)
The second term in the equation has second-order derivatives. We will convert these into first order derivatives using the divergence theorem and the identity

From the identity we get
![{\displaystyle {\text{(29)}}\qquad w\left[{\boldsymbol {\nabla }}\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]={\boldsymbol {\nabla }}\bullet \left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]-({\boldsymbol {\nabla }}w)\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0e8fe64ea27c7b4e313abeccc9c7df85029058d0)
Substitute (29) into the second term in (28) to get
![{\displaystyle {\text{(30)}}\qquad \int _{\Omega }\left[{\boldsymbol {\nabla }}\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]~w~dV=\int _{\Omega }{\boldsymbol {\nabla }}\bullet \left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]~dV-\int _{\Omega }({\boldsymbol {\nabla }}w)\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)~dV~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9179e3fca51c1176cf5025cbccf3f998f0f750d9)
Apply the divergence theorem to the first term on the right hand side of (30). You will get
![{\displaystyle {\text{(31)}}\qquad \int _{\Omega }{\boldsymbol {\nabla }}\bullet \left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]~dV=\int _{\Gamma }\left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]\bullet \mathbf {n} ~dA}](https://wikimedia.org/api/rest_v1/media/math/render/svg/93b26b6ed3be8574c547bdcabc680a05d545da84)
where
is the unit outward normal to the boundary
.
Since
on
, equation (31) becomes
![{\displaystyle {\text{(32)}}\qquad \int _{\Omega }{\boldsymbol {\nabla }}\bullet \left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]~dV=\int _{\Gamma _{q}}\left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]\bullet \mathbf {n} ~dA~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b7553ddd603031db0973cde6c1645acbfca7011e)
Substitute (31) into (30) and (30) back into (28). You will get
![{\displaystyle {\text{(33)}}\qquad \int _{\Omega }\left(\rho ~C_{v}~{\frac {\partial T}{\partial t}}\right)~w~dV-\int _{\Gamma _{q}}\left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]\bullet \mathbf {n} ~dA+\int _{\Omega }({\boldsymbol {\nabla }}w)\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)~dV=\int _{\Omega }s~w~dV~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/fa83f7aefe3b36ffd962e86fd8d62ae49c179eab)
After rearrangement, we get the exact weak form of the heat equation
![{\displaystyle {\text{(34)}}\qquad {\int _{\Omega }\left(\rho ~C_{v}~{\frac {\partial T}{\partial t}}\right)~w~dV+\int _{\Omega }({\boldsymbol {\nabla }}w)\bullet ({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)~dV=\int _{\Omega }s~w~dV+\int _{\Gamma _{q}}\left[w~({\boldsymbol {\kappa }}\bullet {\boldsymbol {\nabla }}T)\right]\bullet \mathbf {n} ~dA~.}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/cd8a945147119b46b621b7ec800778f202b47e3d)
Recall that equation (15) gives us

Therefore equation (34) can be written as

In more compact notation

Following the same process for the initial condition, we get
![{\displaystyle {\text{(37)}}\qquad {\int _{\Omega }w~\left[\rho ~C_{v}~T(0)\right]~dV=\int _{\Omega }w~\left[\rho ~C_{v}~T_{0}\right]~dV~.}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/389c2482a633de40016a38c4fbf50e08b000275d)
In compact notation,

The variation initial boundary value problem for heat conduction can then be stated as follows.
Well-posedness of the boundary value problem[edit | edit source]
Unless
has a simple geometry - square, spherical or cylindrical, it is very difficult to solve the BVP in closed form (using separation of variables, for instance). For some BVPs, it may not be possible at all to get a closed form solution. In fact, it may not even be obvious that a solution exists or is unique or that the solution depends continuously on the data.
A well-posed problem is one that satisfied the three conditions :
- a solution exists.
- the solution is unique.
- the solution depends continuously on the data (that is, smallchanges in the data do not cause wild fluctuations in the solution).
BVPs can be used to get reliable results only when they are well-posed.
Let us look at an example. Recall the BVP for the Poisson equation.
Assume that
. That means that the heat flux is given on the entire boundary.
Suppose
is a solution. Then
is also a solution, where
is a constant. To see why, compute the Laplacian of
.
![{\displaystyle \nabla ^{2}(T+c)={\boldsymbol {\nabla }}\bullet [{\boldsymbol {\nabla (T+c)]}}={\boldsymbol {\nabla }}\bullet ({\boldsymbol {\nabla T)}}=\nabla ^{2}T~.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d539570bea559d37c5491bc1e3e12f61a0d5a000)
So the solution
satisfies the PDE.
How about the boundary conditions?Plug in
into the boundary condition to get
![{\displaystyle {\frac {\partial (T+c)}{\partial n}}=[{\boldsymbol {\nabla }}(T+c)]\bullet \mathbf {n} =({\boldsymbol {\nabla }}T)\bullet \mathbf {n} ={\frac {\partial T}{\partial n}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/aa5f3e7fbf2b85cb29770f3cd17a82048a788feb)
So the boundary conditions are also satisfied. That means that if
, then the solution is not unique. We can add any constant temperature to the body and the solution will be consistent with the governing equations.
We can also check the conditions under which a solution will exist for this problem. Integrate the Poisson equation over
to get

Apply the divergence theorem to the Laplacian. We get

From the boundary condition,

Therefore, we have

The boxed equation is called a compatibility condition and a solution
does not exist unless this condition is satisfied.
In the context of the steady heat conduction problem, the compatibility
condition says that the heat generated in the body must equal the heat
flux. A similar (but more complicated) exercise can be used to show
the existence and uniqueness of solutions for the full heat equation.