Back to Finite Element (MFEM)
mfem.boundaryConditions.getPeriodicDofMapping
Get periodic DOF correspondence for a finite element space.
Syntax
mfem.boundaryConditions.getPeriodicDofMapping(fespace, options)
Description
Get periodic DOF correspondence for a finite element space. This function computes which DOFs are identified as equivalent due to periodicity, based on the provided translation vectors. DOFs whose coordinates differ by a translation vector (within tolerance) are identified as master/slave pairs. **Note:** In MFEM, periodic DOF identification is often handled internally through mesh vertex mapping when `Mesh::MakePeriodic` is called. This function provides explicit DOF mapping when needed for custom handling.
Parameters
| Name | Description |
|---|---|
| fespace | - FiniteElementSpace (typically on a periodic mesh) |
| options | - Configuration including translation vectors and tolerance |
Returns
Promise<PeriodicDofMapping>