sdynpy.core.sdynpy_shape.from_exodus
- from_exodus(exo, x_disp='DispX', y_disp='DispY', z_disp='DispZ', x_rot=None, y_rot=None, z_rot=None, timesteps=None)
Reads shape data from displacements in an Exodus file
- Parameters
exo (Exodus or ExodusInMemory) – The exodus data from which geometry will be created.
x_disp (str, optional) – String denoting the nodal variable in the exodus file from which the X-direction displacement should be read. The default is ‘DispX’. Specify None if no x_disp is to be read.
y_disp (str, optional) – String denoting the nodal variable in the exodus file from which the Y-direction displacement should be read. The default is ‘DispY’. Specify None if no y_disp is to be read.
z_disp (str, optional) – String denoting the nodal variable in the exodus file from which the Z-direction displacement should be read. The default is ‘DispZ’. Specify None if no z_disp is to be read.
x_rot (str, optional) – String denoting the nodal variable in the exodus file from which the X-direction rotation should be read. The default is None which results in the X-direction rotation not being read. Typically this would be set to ‘RotX’ if rotational values are desired.
y_rot (str, optional) – String denoting the nodal variable in the exodus file from which the Y-direction rotation should be read. The default is None which results in the Y-direction rotation not being read. Typically this would be set to ‘RotY’ if rotational values are desired.
z_rot (str, optional) – String denoting the nodal variable in the exodus file from which the Z-direction rotation should be read. The default is None which results in the Z-direction rotation not being read. Typically this would be set to ‘RotZ’ if rotational values are desired.
timesteps (iterable, optional) – A list of timesteps from which data should be read. The default is None, which reads all timesteps.
- Returns
Shape data from the exodus file
- Return type