Docs/Finite Element (MFEM)/mfem.gridfunction.getCurl
Back to Finite Element (MFEM)

mfem.gridfunction.getCurl

Computes the curl of a vector grid function at a point within an element.

Syntax

mfem.gridfunction.getCurl(gf, elemIdx, ip)

Description

Computes the curl of a vector grid function at a point within an element. The curl is computed in physical coordinates: - In 3D: curl = [∂Fz/∂y - ∂Fy/∂z, ∂Fx/∂z - ∂Fz/∂x, ∂Fy/∂x - ∂Fx/∂y] - In 2D: curl is a scalar (z-component of the 3D curl) This is typically used with H(curl) finite element spaces (Nedelec elements).

Parameters

NameDescription
gf- Vector GridFunction (e.g., from H(curl) space)
elemIdx- Index of the element containing the point (0-based)
ip- Integration point in reference coordinates

Returns

number[]