Equana

Docs/Finite Element (MFEM)/mfem.mesh.refineLocal
Back to Finite Element (MFEM)

mfem.mesh.refineLocal

Locally refines specified elements in the mesh.

Syntax

mfem.mesh.refineLocal(mesh, elements)

Description

Locally refines specified elements in the mesh. Performs adaptive refinement by subdividing only the specified elements, leaving other elements unchanged. This is useful for adaptive mesh refinement (AMR) strategies where refinement is focused on regions with high error. The mesh maintains conformity by adding necessary transition elements between refined and unrefined regions.

Parameters

NameDescription
mesh- The mesh to refine (modified in place)
elements- Array of element indices to refine (0-based)

Returns

void