openradioss#
OpenRadioss VTK data source for drop test mesh pipelines.
Reads per-timestep VTK files produced by OpenRadioss anim_to_vtk
converter and yields Mesh objects for use
in curator pipelines.
Each source index maps to one simulation run directory containing multiple VTK files (one per timestep). The resulting mesh carries:
points— (N, 3) reference coordinates at t=0cells— (E, nodes_per_cell) element connectivitypoint_data—thickness(N,) (zeros for solid elements) plusdisplacement_t{idx:03d}(N, 3) for each timestepcell_data(optional) —stress_vm_t{idx:03d}(E,) and other per-element fields for each timestepglobal_data—num_timestepsscalar
Examples
>>> source = OpenRadiossSource(input_dir="/data/drop_test_runs")
>>> len(source)
50
>>> mesh = next(source[0])
Attributes#
Classes#
Read drop test simulation meshes from OpenRadioss VTK files. |
Module Contents#
- class physicsnemo_curator.domains.mesh.sources.openradioss.OpenRadiossSource(
- input_dir: str,
- vtk_glob: str = '*.vtk',
- read_stress: bool = False,
- read_velocity: bool = False,
- read_acceleration: bool = False,
- read_temperature: bool = False,
- cell_type: str = 'tet',
Bases:
physicsnemo_curator.core.base.Source[physicsnemo.mesh.Mesh]Read drop test simulation meshes from OpenRadioss VTK files.
Scans
input_dirfor subdirectories containing VTK files matchingvtk_glob. Each subdirectory is one simulation run. The source reads node coordinates from each timestep file, computes displacements relative to t=0, and optionally extracts stress/strain fields.- Parameters:
input_dir (str) – Root directory containing run subdirectories, each with VTK files.
vtk_glob (str) – Glob pattern for VTK files within each run directory. Default is
"*.vtk"which matches all VTK files.read_stress (bool) – If
True, read nodal stress from point data (GPS_SIGXX, etc.) and compute Von Mises stress. Default isFalse.read_velocity (bool) – If
True, read velocity fields from point data. Default isFalse.read_acceleration (bool) – If
True, read acceleration fields from point data. Default isFalse.read_temperature (bool) – If
True, read temperature fields from point data. Default isFalse.
Examples
>>> source = OpenRadiossSource( ... input_dir="/data/drop_test_runs", ... vtk_glob="Cell_Phone_Drop*.vtk", ... read_stress=True, ... ) >>> len(source) 50
Initialize the OpenRadioss source.
- Parameters:
input_dir (str) – Root directory containing run subdirectories.
vtk_glob (str) – Glob pattern for VTK files.
read_stress (bool) – Read von Mises stress from element data.
read_velocity (bool) – Read velocity fields from point data.
read_acceleration (bool) – Read acceleration fields from point data.
read_temperature (bool) – Read temperature fields from point data.
cell_type (str) – VTK cell type to extract: ‘tet’, ‘tri’, ‘all’, or ‘mixed’.
- classmethod params() list[physicsnemo_curator.core.base.Param]#
Return parameter descriptors for the OpenRadioss source.
- physicsnemo_curator.domains.mesh.sources.openradioss.logger#