ogstools.meshlib.mesh_series module#
A class to handle Meshseries data.
- class ogstools.meshlib.mesh_series.MeshSeries[source]#
Bases:
object
A wrapper around pyvista and meshio for reading of pvd and xdmf timeseries.
Will be replaced by own module in ogstools with similar interface.
- read(timestep, lazy_eval=True)[source]#
Lazy read function.
- Parameters:
timestep (int) –
lazy_eval (bool) –
- Return type:
UnstructuredGrid
- property timesteps: range#
Return the timesteps of the timeseries data.
- property timevalues: list[float]#
Return the timevalues of the timeseries data.
- closest_timestep(timevalue)[source]#
Return the corresponding timestep from a timevalue.
- Parameters:
timevalue (float) –
- Return type:
int
- closest_timevalue(timevalue)[source]#
Return the closest timevalue to a timevalue.
- Parameters:
timevalue (float) –
- Return type:
float