Chapter 04#
Exercise 04.01 - Heat transfer in a thin rod#
Task
Let us consider a thin rod of length \(L\), having temperature \(t_0\) at the endpoint \(x=0\) and insulated at the other endpoint \(x=L\). Let us suppose that the cross-section of the rod has constant area equal to \(A\) and that the perimeter of \(A\) is \(p\). The temperature \(t\) of the rod at a generic point \(x \in (0,L)\) then satisfies the following mixed boundary-value problem:
having denoted by \(k\) the thermal conducitivity coefficient and by \(\sigma\) the convective transfer coefficient.
Verify that the exact solution of this problem is
with \(m = \sqrt{\sigma p / k A}\). Write the weak formulation of (1), then its Galerkin-finite element approximation. Show how the approximation error in the \(H^1_0 (0, L)\)-norm depends on the parameters \(k\), \(\sigma\), \(p\), and \(t_0\).
Finally, solve this problem using linear and quadratic finite elements on uniform grids, then evaluate the approximation error.
Let us evaluate the derivatives of \(\hat{t}\) to check if is the solution of (1).
Then
and the boundary conditions are satisfied, so \(\hat{t}\) is a solution.
To derive the weak formulation, we first need to apply a lifting (see [Quarteroni, 2017, Section 3.2.2]). Let \(\Omega := (0, L)\), and \(y = t - R\), where the constant lifting function \(R\) is simply defined as \(R(x) = t_0\) in \(\Omega\). Then, since \(t = y + R\), we have
Hence, solving (1) is equivalent solving to the homogeneous problem
Now, let \(V = \{ v \in H^1 (\Omega) : v(0) = 0 \}\). We obtain the weak formulation of (2) after multiplying the differential equation for a test function \(\varphi \in V\) and integrating in \(\Omega\). In particular, we observe that
since \(y'\varphi\) is zero both in \(x=0\) (because \(\varphi(0)=0\)) and in \(x=L\) (because \(y'(L)=0\)).
Putting together the weak formulation of left and right hand side of (2), we get
The Galerkin approximation is obtained by defining an approximate space \(V_h\) and a basis \(\{ \varphi_j \}_{j=1}^{N_h}\) of \(V_h\). The space \(V_h\) is a Hilbert space with the norm of \(V\). The approximate problem is now
or equivalently
where
and
Notice that a solution to the Galerkin approximation exist for the Lax-Milgram lemma (see [Quarteroni, 2017, Lemma 3.1]), since:
\(a\) is bilinear (trivial to prove)
\(a\) is continuous:
\[ \left| a(u,v) \right| = \left| k A \int_\Omega u' v' \dx + \sigma p \int_\Omega u v \dx \right| \le \max\{ kA, \sigma p\} \| u \|_V \| v \|_V \]\(a\) is coercive:
\[ a(u,u) = k A \left| y \right|_{H^1(\Omega)} + \sigma p \| y \|_{L^2(\Omega)} \ge \min\{kA, \sigma p\} \| u \|_V \]\(f\) is linear (trivial to prove)
\(f\) is bounded (so continuous)
\[ \left| f(v) \right| \le \sigma p t_0 \| v \|_{L^2(\Omega)}. \]
Using the Céa Lemma (see [Quarteroni, 2017, (4.10)]), we get
where \(M\) is the continuity constant of \(a\), i.e. \(M = \max\{ kA, \sigma p\}\) and \(\alpha\) is the coercivity constant, i.e. \(\alpha = \min\{kA, \sigma p\}\). The rest of the estimate depends on the choice of the approximate space \(V_h\).
Exercise 04.02 - Temperature of a fluid between two parallel plates.#
Task
We consider a viscous fluid located between two horizontal parallel plates, at a distance of \(2H\). Suppose that the upper plate, which has temperature \(t_{\mathsf{sup}}\), moves at a relative speed of \(U\) with respect to the lower one, having temperature \(t_{\mathsf{inf}}\). In such case the temperature \(t: (0, 2H) \to \mathbb{R}\) of the fluid satisfies the following Dirichlet problem:
where \(\alpha = \frac{4 U^2 \mu}{H^4 k}\), \(k\) being the thermal conductivity coefficient and \(\mu\) the viscosity of the fluid. Find the exact solution \(t(x)\), then write the weak formulation and the Galerkin finite element formulation.
By integrating twice, we get
By applying the boundary values, we get
The system gives
and
So the solution reads
To derive the weak formulation, we first need to apply a lifting (see [Quarteroni, 2017, Section 3.2.2]). Let \(\Omega := (0, 2H)\), and \(y = t - R\), where the linear lifting function \(R\) is defined as
Then, since \(t = y + R\), we have \(t'' = y''\) for all \(x \in \Omega\).
Therefore, to solve (3) we can first solve the homogeneous problem
and then define \(t = y + R\).
Now, let us define \(V = \{ v \in H^1(\Omega) : v(0) = v(2H) = 0 \}\) and \(g(x) = \alpha (H - x)^2\) in \(\Omega\). We obtain the weak formulation of (4) after multiplying the differential equation for a test function \(\varphi \in V\) and integrating in \(\Omega\). By the divergence theorem and by using that \(\varphi\) is zero on the boundary, we get
So the weak formulation of (4) reads
Similarly to Exercise 1, the Galerkin formulation is
Exercise 04.03 - Deformation of a rope#
Task
Let us consider a rope with tension \(T\) and unit length, fixed at the endpoints. The function \(u(x)\), measuring the vertical displacement of the rope when subject to a transversal charge of intensity \(w\), satisfies the following Dirichlet problem:
having indicated with \(k\) the elasticity coefficient of the rope. Write the weak formulation and the Galerkin-finite element formulation.
Let \(\Omega := (0, 1)\), \(V = \{ v \in H^1(\Omega) : v(0) = v(2H) = 0 \}\), and \(g(x) = \frac{w}{T}\) in \(\Omega\). As in the previous exercises, we obtain the weak formulation of (5) after multiplying the differential equation for a test function \(\varphi \in V\) and integrating in \(\Omega\). By the divergence theorem and by using that \(\varphi\) is zero on the boundary, we get
So the weak formulation of (5) reads
Similarly to Exercise 1, the Galerkin formulation is