pysdic.Mesh.to_dict#

Mesh.to_dict(*, save_properties=True)[source]#

Convert the mesh to a flat dictionary.

The coordinates are stored under the key "coordinates", the elements under "elements", the element type (if set) under "element_type" and the properties under "_vertex_property/{name}" and "_element_property/{name}". All the arrays are copies.

Note

The dictionary is flat (one level), as required by the NPZ format. See pysdic.NpzSerializerMixin.

Parameters:

save_properties (bool, optional (default: True)) – If False, the properties are not included.

Returns:

The dictionary representation of the mesh.

Return type:

Dict[str, Any]