This page was generated from unit-2.9-fourthorder/fourthorder.ipynb.
2.9 Fourth order equations¶
We consider the Kirchhoff plate equation: Find \(w \in H^2\), such that
A conforming method requires \(C^1\) continuous finite elements. But there is no good option available, and thus there is no \(H^2\) conforming finite element space in NGSolve.
We have the following two alternatives:
Hybridized \(C^0\)-continuous interior penalty method:¶
A simple way out is to use continuous elements, and treat the missing \(C^1\)-continuity by a Discontinuous Galerkin method. A DG formulation is
[Baker 77, Brenner Gudi Sung, 2010]
We consider its hybrid DG version, where the normal derivative is a new, facet-based variable:
The facet variable is the normal derivative \(n_E \cdot \nabla w\), what is oriented along the arbitrarily chosen edge normal-vector. We cannot use the FacetSpace since it does not have the orientation, but we can use the normal traces of an HDiv space. We don’t need inner basis functions, so we set order inner to 0:
[1]:
import netgen.gui
from ngsolve import *
from netgen.geom2d import unit_square
mesh = Mesh (unit_square.GenerateMesh(maxh=0.1))
[5]:
order = 3
V1 = H1(mesh, order=order, dirichlet="left|bottom|right|top")
# V2 = NormalFacetFESpace(mesh, order=order-1, orderinner=0, dirichlet="left|bottom|right|top")
V2 = HDiv(mesh, order=order-1, orderinner=0, dirichlet="left|bottom|right|top")
V = FESpace ([V1,V2])
w,what = V.TrialFunction()
v,vhat = V.TestFunction()
Some proxy-functions and gridfunctions provide additional differential operators. We can get them via the Operator function. w.Operator("hesse") provides the Hessian, a matrix-valued function. Note that we can use the InnerProduct(.,.) for \(\nabla^2 w : \nabla^2 v\):
[6]:
n = specialcf.normal(2)
h = specialcf.mesh_size
def jumpdn(v,vhat):
return n*(grad(v)-vhat)
def hesse(v):
return v.Operator("hesse")
def hessenn(v):
return InnerProduct(n, hesse(v)*n)
dS = dx(element_boundary=True)
a = BilinearForm(V)
a += InnerProduct (hesse(w), hesse(v)) * dx \
- hessenn(w) * jumpdn(v,vhat) * dS \
- hessenn(v) * jumpdn(w,what) * dS \
+ 3*order*order/h * jumpdn(w,what) * jumpdn(v,vhat) * dS
a.Assemble()
f = LinearForm(V)
f += 1*v*dx
f.Assemble()
[7]:
u = GridFunction(V)
u.vec.data = a.mat.Inverse(V.FreeDofs()) * f.vec
Draw (u.components[0], mesh, "disp_DG")
Draw (grad (u.components[0]), mesh, "grad")
Draw (hesse (u.components[0]), mesh, "hesse")
The Hellan-Herrmann-Johnson Mixed Method:¶
[Hellan 67, Herrmann 67, Johnson 73, Arnold+Brezzi 85, Comodi 89]
We introduce the bending moments as a new, matrix valued variable \(\sigma = \nabla^2 w\). Then we can write the plate equation as a saddle point problem:
Integration by parts in upper-right and lower-left terms:
The Hellan-Herrmann-Johnson method uses finite elements \(\sigma_h\) which have continuous normal-normal component. Then, the term \(<\Div \tau, \nabla w>\) must be understood in distributional form:
Since \(\sigma_{nn}\) is continuous, the jump occurs only in the tangential component of \(\sigma_n\). Luckily, it hits the tangential component of \(\nabla v\), which is single-valued for \(H^1\) finite elements. Thus, we can rewrite the term element-by-element:
The Hellan-Herrmann-Johnson method does not require access to the neighbour element as in DG methods. In [Pechstein-Schöberl 11] the function space \(H(\Div \Div)\) was introduced. The HHJ finite elements are (nearly) conforming for this space. A basis was also given in [PS11]
[ ]:
order = 3
V = HDivDiv(mesh, order=order-1)
Q = H1(mesh, order=order, dirichlet="left|bottom|top|right")
X = FESpace([V,Q])
print ("ndof-V:", V.ndof, ", ndof-Q:", Q.ndof)
sigma, w = X.TrialFunction()
tau, v = X.TestFunction()
n = specialcf.normal(2)
def tang(u): return u-(u*n)*n
a = BilinearForm(X, symmetric=True)
a += (InnerProduct (sigma, tau) + div(sigma)*grad(v) \
+ div(tau)*grad(w) - 1e-10*w*v )*dx \
+ (-(sigma*n) * tang(grad(v)) - (tau*n)*tang(grad(w)))*dx(element_boundary=True)
a.Assemble()
f = LinearForm(X)
f += -1 * v * dx
f.Assemble()
gfu = GridFunction(X)
gfu.vec.data = a.mat.Inverse(X.FreeDofs()) * f.vec
Draw (gfu.components[0], mesh, name="sigma")
Draw (gfu.components[1], mesh, name="disp")
[ ]:
[ ]: