Back to Finite Element (MFEM)
mfem.gridfunction.getAllNodalValues
Gets the values of a grid function at all vertices of the mesh.
Syntax
mfem.gridfunction.getAllNodalValues(gf, vdim?)
Description
Gets the values of a grid function at all vertices of the mesh. This returns one value per vertex for the entire mesh, which is useful for visualization or post-processing. For vector-valued grid functions, you can specify which component to extract.
Parameters
| Name | Description |
|---|---|
| gf | - The grid function to evaluate |
| vdim(optional) | - Vector component to extract (1-based, default 1 for scalar) |
Returns
Float64Array