2021-11-19 Mixed methods¶
Last time¶
Community presentations
Petrov-Galerkin stabilization
Mass lumping for time dependent problems
Examples of finite element interfaces
Today¶
Community presentations
More finite element interfaces: Deal.II and MOOSE
Vector problems and mixed finite elements
Finite element interfaces: Deal.II¶
Deal.II step-7
for e in elems:
fe_values.reinit()
for q in q_points:
for i in test_functions:
for j in trial_functions
K_e[i,j] += ...
f_e[i] += ...
for f in e.faces:
if f.at_boundary():
fe_face_values.reinit()
for q in q_points:
...
Finite element interfaces: MOOSE¶
Materials¶
Can be written without knowledge of finite elements
Registration allows libraries of materials (some in MOOSE, others packaged separatle)
Example: crystal plasticity
Code is C++, so can do dirty things
table lookups, proprietary code
implicit materials (Newton solve at each quadrature point)
Composition in configuration files¶
Add fields and coupling
Select materials from libraries
Multiphysics composition
Multiscale coupling
Periodic table of finite elements¶
Exactly satisfies discrete identities like¶
Generalized concept: Finite Element Exterior Calculus (FEEC)
Improved stability or numerical properties
Higher order of accuracy for quantity of interest despite non-smooth problem
Problems with constraints¶
Stokes equation: (slow) incompressible flow
where \(\nabla^s \mathbf u\) is the symmetric part of the \(3\times 3\) gradient \(\nabla \mathbf u\).
Weak form: find \((\mathbf u, p)\) such that