sdynpy.core.sdynpy_geometry.load

load(filename)

Loads a geometry from a numpy .npz or .unv file

The .npz file must have fields ‘node’, ‘coordinate_system’, ‘element’, and ‘traceline’, with each field storing the respective portion of the geometry

The .unv file will need to have the proper datasets specified to define a geometry

Parameters

filename (str) – Filename to load the geometry from.

Raises

AttributeError – Raised if the calling class does not have a from_unv method defined

Returns

Geometry constructed from the data in the loaded file

Return type

Geometry