Equana

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

mfem.gridfunction.getValue

Evaluates a grid function at a point within a specific element.

Syntax

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

Description

Evaluates a grid function at a point within a specific element. The point is specified in reference (local) coordinates of the element. For most elements, these coordinates range from 0 to 1.

Parameters

NameDescription
gf- GridFunction to evaluate
elemIdx- Index of the element containing the point (0-based)
ip- Integration point in reference coordinates

Returns

number