pysdic.Mesh.to_meshio#
- Mesh.to_meshio(*, save_properties=True)[source]#
Convert the mesh to a
meshio.Meshwith a single cell block.The element type must be set and the mesh must not be empty.
The following fields are written:
vertices →
mesh.points,connectivity →
mesh.cells[0],vertex properties →
mesh.point_data,element properties →
mesh.cell_data.
See also
from_meshio()for the reverse operation.
- Parameters:
save_properties (bool, optional (default:
True)) – If False, the properties are not saved.- Returns:
The meshio representation of the mesh.
- Return type:
meshio.Mesh- Raises:
ValueError – If the mesh is empty or has no element type.