ogstools.mesh.ip_data module#
- class ogstools.mesh.ip_data.IPdict[source]#
Bases:
objectIPdict(order: int, num_components: int, values: numpy.ndarray)
- __init__(order, num_components, values)#
- ogstools.mesh.ip_data.ip_metadata(mesh)[source]#
return the IntegrationPointMetaData in the mesh’s field_data as a dict.
- class ogstools.mesh.ip_data.IPdata[source]#
Bases:
MutableMappingAn interface to the integration point data of a mesh.
Initialize an IPdata object
- Parameters:
mesh (
UnstructuredGrid) – Mesh, which should contain integration point metadataauto_sync (
bool) – By default, automatically syncs changes in this object with the given mesh. If set to False, sync should be manually called after all changes to IPdata.
- __init__(mesh, auto_sync=True)[source]#
Initialize an IPdata object
- Parameters:
mesh (
UnstructuredGrid) – Mesh, which should contain integration point metadataauto_sync (
bool) – By default, automatically syncs changes in this object with the given mesh. If set to False, sync should be manually called after all changes to IPdata.