GeneralDisplacement
- class compas_fea2.problem.GeneralDisplacement[source]
Bases:
FEAData,FrameableGeneral imposed displacement.
Represents imposed displacements or restraints on degrees of freedom in a local coordinate frame. Supports translation and rotation components.
- Parameters:
- x, y, zbool, optional
Translational displacement restraints along local x, y, z axes.
- xx, yy, zzbool, optional
Rotational displacement restraints about local x, y, z axes.
- frameFrame or None, optional
Local coordinate frame for the displacement.
Notes
This class only handles boolean restraint flags and an optional local frame. There are no numeric magnitudes to unit-normalize here, so no units decorator is applied.
Methods
Return linear constraint equations in global translational DOFs implied by local restraints.
Inherited Methods
Converts the instance to a string.
Clear the local frame, reverting to GLOBAL_FRAME.
Make an independent copy of the data object.
Return local axes expressed as global vectors (x, y, z).
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Return True if local frame coincides with GLOBAL frame within tolerance.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert a local point to the global frame.
Convert a local vector to the global frame.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Convert a global point to the local frame.
Convert a global vector to the local frame.
Get the transformation from this object's local frame to another frame.
Validate the data against the object's data schema.