sdynpy.core.sdynpy_geometry.from_exodus

from_exodus(exo: Exodus, blocks=None, local=False, preferred_local_orientation=array([0., 0., 1.]), secondary_preferred_local_orientation=array([1., 0., 0.]), local_nodes=None)

Generate a geometry from exodus file data

Parameters
  • exo (Exodus or ExodusInMemory) – The exodus data from which geometry will be created.

  • blocks (iterable, optional) – Iterable containing a set of block ids to import when creating the geometry. The default is None, which uses all blocks in the model.

  • local (bool, optional) – Flag to specify whether or not to create local coordinate systems for each node in the model. This can be useful when creating instrumnetation positions from a finite element model, where the sensor will be oriented perpendicular to the surface it is mounted on. The default is False, which returns all data in a single global coordinate system.

  • preferred_local_orientation (np.ndarray, optional) – A preferred direction for the local coordinate system. The first constraint is that the local Z+ axis is perpendicular to the surface. The coordinate system will then try to align itself as much as it can with this direction. The default is np.array((0.0,0.0,1.0)), which points the local coordinate systems along the global Z+ axis.

  • secondary_preferred_local_orientation (np.ndarray, optional) – A secondary preferred direction is only used if the surface normal direction is parallel to the primary preferred_local_orientation. The default is np.array((1.0,0.0,0.0)), which points the local coordinate system along the local Z+ axis.

  • local_nodes (np.ndarray, optional) – If specified, only create local coordinate systems at the specified nodes.

Returns

A geometry consisting of the finite element nodes and element connectivity.

Return type

Geometry