As a model problem for an elliptic partial differential equation we consider the so called Poisson problem with Robin boundary conditions where we seek for a solution such that Note that the Robin boundary conditions above are equivalent to the more abstract form with .
In a partial differential equation of second order, i.e., the above Poisson equation, the solutions must be twice differentiable functions . In many situations of pratical interest however, such smooth solutions does not exist. In order to reduce the smoothness requirement, the concept of a weak solution was introduced. To find such a solution, one first need to derive the weak formulation of a partial differential equation. This is usually done by carrying out the following steps:
1. Multiply the PDE by a test function from a reasonable space . 2. Integrate the equation over the domain . 3. Apply partial integration, i.e. the theorm of Gauss. 4. Substitute the boudnary conditions. |
For the above Poisson equation we derive its weak formulation as follows. We first multiply the PDE by a test function , integrate over the domain and get By partially integrating the left hand side we then obtain where the dot between the gradients of and denotes the Euclidean inner product. Note that this equation does not contain a second derivative of anymore.
Inserting the Robin boundary conditions yields
We define the symmetric bilinearform and the linear functional ,
such that we can write the weak formulation in a compact way:
We seek for a weak solution such that |
Many elliptic partial differential equations, in particular those describing stable stationary states of physical systems such as heat conduction or solid mechanics, can be reformulated as minimizing its energy. The total energy can be desrcibed by a so called variational functional. Solving the simplest elliptic equation, the above Poisson equation with source term and Robin boundary conditions on a domain for example, is equivalent to minimizing the functional,
in the space .
This means that we can solve the minimzation problem and get a solution for the Poisson problem with Robin boundary conditions.
Expanding the solution space to the Sobolev space enables us to use important results about the existence and uniqueness of a solution. For an in-depth treatment, we refer to DeuflhardWeiser2012.
To find such a solution we must make sure that it fulfills the following necessary condition,
where is the directional derivative of at in the direction of and defined as the limit .
Taking the directional derivatives of will lead to the weak formulation above. Solving the minimization problem is therefore also equivalent to solving the weak formulation in .
Solving a PDE in Kaskade 7 is either based on minimizing the variational functional or solving the weak formulation.
In more complex situations, such as solid mechanics, the variable can be vectorial, i.e. it contains components (for solid mechanics, would be the displacement with components, usually ). In other situations, such as the Stokes system for incompressible viscous flow, there may be several variables , each of which can be scalar or vectorial (for Stokes, this would be the vectorial fluid velocity and the scalar pressure ). The general form of a variational functional is then
For treatment in Kaskade 7, such problems like the Possoin problem are specified by defining the variational functional , i.e. defining the functions and , and the first and second directional derivatives of . The second directional can be used for the newton method to find the roots of the first directional derivative of .
In section Problem Definition: Variational Functionals we describe how this is done in general and you can find a Kaskade 7 implementation for solving the Poisson equation with homogenous Dirichlet boundary conditions in Examples: Poisson’s Equation.
However, not every differential equation yields a variational functional that describes the energy of a physical system. For nonsymmetric problems such as advection-diffusion equations which do not correspond to a functional to be minimized, one derives and solves their weak formulation as described above. Hence, for implementation, we have to distinguish between problems for which a variational formulation or only a weak formulation exists (see section Problem Definition: Variational Functionals).
Kaskade 7 mainly supports Robin boundary conditions.
The most popular boundary conditions are Dirichlet boundary conditions , Neumann boundary conditions on and their combination, Robin conditions on . The latter ones introduce a boundary integral into the variational functional as we have seen before: A great benefit of the Robin boundary conditions is that threy treat Dirichlet as well as Neumann boundary conditions.
In the limit , Robin conditions approximate Dirichlet conditions (known as penalty approach) because minimizing the functional for will force the solution to be as close to as possible on to make the difference small. On the other hand they result in Neumann conditions for and . We refer the interested readers to Weiser2016.