visualdynamics.io.sdynpy_shapes¶
sdynpy_shapes
¶
Importer for sdynpy mode shape files (.npy).
A structured numpy array with one record per mode and fields 'frequency' (Hz), 'damping' (fraction of critical), 'coordinate' ((node, direction) pairs, one per DOF), 'shape_matrix' (a coefficient per DOF), 'modal_mass' and 'comment1'..'comment5'.
The file does not record which mass unit the shapes were normalized
against, so they import unit-less unless mass_unit is declared.
Functions:
| Name | Description |
|---|---|
save |
Write mode shapes in sdynpy's own .npy layout. |
Classes¶
Functions:¶
save
¶
save(
shapes: ShapeSet,
path: str | PathLike,
unit_system: UnitSystem | None = None,
) -> None
Write mode shapes in sdynpy's own .npy layout.
Values go out in unit_system's mass unit, or as stored without one.
The format records neither the unit nor the normalization.