Back to Finite Element (MFEM)
mfem.fespace.createDG
Creates a Discontinuous Galerkin (DG) finite element space.
Syntax
mfem.fespace.createDG(mesh, order, vdim?)
Description
Creates a Discontinuous Galerkin (DG) finite element space. This is an alias for . DG spaces are L2 spaces used in Discontinuous Galerkin methods, where numerical fluxes connect elements. DG methods are popular for: - Hyperbolic conservation laws - Advection-dominated transport - Problems with sharp gradients or shocks - hp-adaptivity
Parameters
| Name | Description |
|---|---|
| mesh | - The mesh on which to define the space |
| order | - Polynomial order (0 = piecewise constant, 1 = linear, etc.) |
| vdim(optional) | - Vector dimension (default 1 for scalar fields) |
Returns
Promise<FiniteElementSpace>