Back to Finite Element (MFEM)
mfem.fespace.createHdiv
Creates an H(div) (Raviart-Thomas) finite element space.
Syntax
mfem.fespace.createHdiv(mesh, order)
Description
Creates an H(div) (Raviart-Thomas) finite element space. H(div) spaces are designed for vector fields where the divergence is well-defined and square-integrable. They are essential for: - Fluid flow (velocity fields) - Mixed finite element methods - Darcy flow and porous media - Magnetic flux density in electromagnetics The normal component is continuous across element faces while the tangential component may be discontinuous.
Parameters
| Name | Description |
|---|---|
| mesh | - The mesh on which to define the space (must be 2D or 3D) |
| order | - Polynomial order (0 = lowest order RT, etc.) |
Returns
Promise<FiniteElementSpace>