Back to Finite Element (MFEM)
mfem.gridfunction.save
Exports a grid function to MFEM format string.
Syntax
mfem.gridfunction.save(gf)
Description
Exports a grid function to MFEM format string. The returned string can be saved to a file and later loaded back using MFEM's GridFunction constructor that takes a mesh and input stream. The format includes the finite element collection type, ordering, and all DOF values.
Parameters
| Name | Description |
|---|---|
| gf | - GridFunction to export |
Returns
string