newton.utils.CableStiffness#
- class newton.utils.CableStiffness(stretch, bend, twist)[source]#
Bases:
NamedTuplePer-joint Kirchhoff rod stiffness for a circular isotropic cross-section.
Returned by
create_cable_stiffness_from_elastic_moduli()when the caller supplies eitherpoissons_ratioorshear_modulus.Fields:
stretch– axial stiffnessE * A / L[N/m]bend– bending stiffnessE * I / L[N*m / rad]twist– torsional stiffnessG * J / L[N*m / rad]
For a circular cross-section the two bending axes are equivalent (
EI1 == EI2 == EI); the singlebendfield is used for both axes when assembling the per-joint cable stiffness vector.No
shearfield, by design. Set a sufficiently large finiteshear_stiffnessseparately to approximate an unshearable Kirchhoff rod.Being a
typing.NamedTuple, instances support both attribute access (stiffness.bend) and tuple unpacking (stretch, bend, twist = stiffness).