Rotational.Spring
This component extends from PartialCompliant
Usage
TranslatedComponents.Rotational.Spring(c=100000, phi_rel0=0)
Parameters:
| Name | Description | Units | Default value |
|---|---|---|---|
c | Spring constant | N.m/rad | 100000 |
phi_rel0 | Unstretched spring angle | rad | 0 |
Connectors
flange_a- This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)flange_b- This connector represents a rotational spline with angle and torque as the potential and flow variables, respectively. (Spline)
Variables
| Name | Description | Units |
|---|---|---|
phi_rel | Relative rotation angle (= flange_b.phi - flange_a.phi) | rad |
tau | Torque between flanges (= flange_b.tau) | N.m |
Behavior
Source
dyad
component Spring
extends PartialCompliant
# Spring constant
parameter c::Dyad.RotationalSpringConstant(final min = 0) = 100000
# Unstretched spring angle
parameter phi_rel0::Dyad.Angle = 0
relations
tau = c * (phi_rel - phi_rel0)
endFlattened Source
dyad
component Spring
flange_a = Spline()
flange_b = Spline()
# Relative rotation angle (= flange_b.phi - flange_a.phi)
variable phi_rel::Dyad.Angle
# Torque between flanges (= flange_b.tau)
variable tau::Dyad.Torque
# Spring constant
parameter c::Dyad.RotationalSpringConstant(final min = 0) = 100000
# Unstretched spring angle
parameter phi_rel0::Dyad.Angle = 0
relations
phi_rel = flange_b.phi - flange_a.phi
flange_b.tau = tau
flange_a.tau = -tau
tau = c * (phi_rel - phi_rel0)
metadata {}
endTest Cases
No test cases defined.
Related
Examples
Experiments
Analyses