Back to Finite Element (MFEM)
mfem.mesh.setCurvature
Sets the curvature order for high-order geometry representation.
Syntax
mfem.mesh.setCurvature(mesh, order)
Description
Sets the curvature order for high-order geometry representation. Converts the mesh to use high-order polynomial nodes for representing curved element boundaries. This is essential for accurately representing curved domains (circles, spheres, etc.) and achieving optimal convergence rates with high-order finite elements. Higher orders provide better approximation of curved boundaries but increase the number of geometry nodes per element.
Parameters
| Name | Description |
|---|---|
| mesh | - The mesh to set curvature on (modified in place) |
| order | - Polynomial order for geometry representation (≥ 1) |
Returns
void