Systems on a shape¶
This page explains how pdemagic solves a stationary system of equations on a region of the plane. The mesh, the weak form and the elimination are those of one equation, which are explained under spectral elements. A system in time is stepped: see several unknowns.
Several unknowns at once¶
A stationary system has an equation for each unknown that holds the second derivatives of that unknown, and the other unknowns with their values and first derivatives. On an element, the weak form of equation \(a\) gives a block for each unknown \(b\): the block of an elliptic operator for \(b = a\), and for \(b \ne a\) the block of an operator without second derivatives. Together they are a matrix whose rows and columns run over the unknowns and, for each, over the points of the element.
The elimination is the same as for one unknown. The points inside an element are eliminated for all unknowns at once, and what is left couples the points that elements share, for all unknowns. That sparse system is factorized directly. Each unknown has its own conditions: a given value fixes the points of that unknown on the piece, and a given slope enters the rows of the equation that holds its second derivatives.
Because the solve is direct, the coupling may be as strong as it likes. A plate, \(\nabla^4 w = q\), written as \(\nabla^2 w = m\) and \(\nabla^2 m = q\), is such a system. On the unit disk under an even load, resting on its edge, the deflection is \((r^4 - 4r^2 + 3)/64\), and is reached to \(3\cdot10^{-15}\) in half a second.
With nonlinear terms the system is solved by Newton’s method, as one equation is: the slopes of each term along each unknown are added to the blocks, and each step is one linear system.
On the disk with a hole, for \(\nabla^2 u + 2v + v_x = f\) and \(\nabla\cdot((2 + x)\nabla v) - u + x\,u_y = g\) with the exact solutions of the table for one equation, on elements of the size 1/2:
Degree |
4 |
6 |
8 |
10 |
|---|---|---|---|---|
Error |
\(3\cdot10^{-5}\) |
\(7\cdot10^{-8}\) |
\(7\cdot10^{-11}\) |
\(8\cdot10^{-14}\) |
The mesh shrinks towards the corners at which a solution has a singularity. In a system the conditions differ from unknown to unknown, and so do the corners: the mesh follows the unknown with the strongest singularity.
Limits¶
In a system each equation holds the second derivatives of one unknown, and each condition on the boundary one unknown. A stationary system must have one solution: one that is fixed up to a constant, with slopes given all around and no term that holds a value, is refused.