newton.utils.create_cable_stiffness_from_elastic_moduli#
- newton.utils.create_cable_stiffness_from_elastic_moduli(youngs_modulus, radius, segment_length)[source]#
Create per-joint rod/cable stiffness parameters from elastic moduli.
For a circular cross-section, this computes material stiffnesses and converts them to the per-joint stiffness values expected by
ModelBuilder.add_rod()andModelBuilder.add_rod_graph():stretch_stiffness = E * A / L [N/m]
bend_stiffness = E * I / L [N*m]
where: - A = pi * r^2 - I = (pi * r^4) / 4 (area moment of inertia for a solid circular rod) - L = segment_length