Spatial and temporal resolution#
Spatial resolution#
\(h\)-refinement refines the mesh (locally or globally) to achieve a smaller cell size \(h\) where desired.
\(p\)-refinement increases the polynomial degree \(p\) (locally or globally) of the finite element basis functions. However dolfinx has no support for local \(p\)-refinement.
\(hp\)-refinement combines both strategies.
Method of manufactured solutions#
The goal is to demonstrate that the error norm tends to zero as mesh cell cell size tends to zero. Asymptotically as \(h\to0\) for the error \(\mathcal{E}=u_{\text{e}} - u\), we expect
for some numerical factor \(C>0\) and convergence rate \(r>0\). The \(L_p\) and \(\ell_p\) norms are defined by
if \(\sum_jE_j\xi_j\) is the approximation of \(\mathcal{E}\) in the finite element function space spanned by basis functions \(\{\xi_j\}_j\).
Temporal resolution#
\(\Delta t\)-refinement uses a smaller constant time-step.
\(\Delta t\)-adaptivity computes an adaptive time-step based on constraints such as the CFL condition.
Adaptive time-steps for the advection-diffusion-reaction equation#
The precise value of Courant number necessary for stability can depend on the choice of discretization in space and time, as well as the number of spatial dimensions.
Method of manufactured solutions#
Given a fixed time-step \(\Delta t\) and mesh cell size \(h\), the error norm at time \(t\) is expected to scale as
with numerical factors \(C_{\Delta t}, C_h\) convergence rates \(r_\Delta, r_h\) themselves being time-dependent. The maximum-in-time error norm is given by