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

mfem.gridfunction.getHessian

Computes the Hessian matrix of a grid function at a point within an element.

Syntax

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

Description

Computes the Hessian matrix of a grid function at a point within an element. The Hessian is the matrix of second partial derivatives: ``` H = | ∂²u/∂x² ∂²u/∂x∂y ∂²u/∂x∂z | | ∂²u/∂y∂x ∂²u/∂y² ∂²u/∂y∂z | | ∂²u/∂z∂x ∂²u/∂z∂y ∂²u/∂z² | ```

Parameters

NameDescription
gf- The grid function to evaluate
elemIdx- Element index (0-based)
ip- Integration point in reference element coordinates

Returns

HessianResult