Back to Finite Element (MFEM)
mfem.fespace.createH1Positive
Creates an H1 finite element space with positive (Bernstein) basis.
Syntax
mfem.fespace.createH1Positive(mesh, order, vdim?)
Description
Creates an H1 finite element space with positive (Bernstein) basis. Bernstein basis functions are non-negative and form a partition of unity, making them ideal for applications requiring positivity preservation: - Concentration fields that must remain positive - Probability distributions - NURBS-like representations The space has the same approximation properties as standard H1 but with different basis function properties.
Parameters
| Name | Description |
|---|---|
| mesh | - The mesh on which to define the space |
| order | - Polynomial order (1 = linear, 2 = quadratic, etc.) |
| vdim(optional) | - Vector dimension (default 1 for scalar fields) |
Returns
Promise<FiniteElementSpace>