SpringSection

class compas_fea2.model.SpringSection[source]

Bases: FEAData

Section for use with spring elements.

Parameters:
forcesdict

Forces data for non-linear springs.

displacementsdict

Displacements data for non-linear springs.

stiffnessdict

Elastic stiffness for linear springs.

Notes

  • Force and displacement data should range from negative to positive values.

  • Requires either a stiffness dict for linear springs, or forces and displacement lists for non-linear springs.

  • Directions are ‘axial’, ‘lateral’, ‘rotation’.

Attributes:
keyint, read-only

Identifier of the element in the parent part.

forcesdict

Forces data for non-linear springs.

displacementsdict

Displacements data for non-linear springs.

stiffnessdict

Elastic stiffness for linear springs.

Inherited Methods

ToString

Converts the instance to a string.

copy

Make an independent copy of the data object.

data

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_name

jobdata

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

validate_data

Validate the data against the object's data schema.