Spring
Linear 2D translational spring
Library
PlanarMechanics/Parts
Description
A linear translational spring. x- and y direction stiffness can be parameterized.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_animate | animate | Enable animation | Scalar | true |
mo_c_x | c_x | Spring constant in x dir | Scalar | |
mo_c_y | c_y | Spring constant in y dir | Scalar | |
mo_c_phi | c_phi | Spring constant | Scalar | |
mo_s_relx0 | s_relx0 | Unstretched spring length | Scalar | |
mo_s_rely0 | s_rely0 | Unstretched spring length | Scalar | |
mo_phi_rel0 | phi_rel0 | Unstretched spring angle | Scalar | |
mo_s_relx | s_relx | s_relx | Structure | |
mo_s_relx/fixed | fixed | Cell of scalars | true | |
mo_s_relx/start | start | Cell of scalars | ||
mo_s_rely | s_rely | s_rely | Structure | |
mo_s_rely/fixed | fixed | Cell of scalars | true | |
mo_s_rely/start | start | Cell of scalars | ||
mo_phi_rel | phi_rel | phi_rel | Structure | |
mo_phi_rel/fixed | fixed | Cell of scalars | true | |
mo_phi_rel/start | start | Cell of scalars |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_zPosition | zPosition | Position z of cylinder representing the fixed translation | Scalar | |
mo_specularCoefficient | specularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) | Scalar | |
mo_animateConnectors | animateConnectors | =true, if connectors a and b should be animated as cylinders | Scalar | true |
mo_diameterConnector_a | diameterConnector_a | Diameter of connector at frame_a | Scalar | |
mo_diameterConnector_b | diameterConnector_b | Diameter of connector at frame_b | Scalar | |
mo_colorConnector_a | colorConnector_a | Color of connector at frame_a | Vector of size 3 | |
mo_colorConnector_b | colorConnector_b | Color of connector at frame_a | Vector of size 3 | |
mo_numberOfWindings | numberOfWindings | Number of spring windings | Scalar | |
mo_width | width | Width of spring | Scalar | |
mo_coilWidth | coilWidth | Width of spring coil | Scalar | |
mo_color | color | Color of spring | Vector of size 3 |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo_stateSelect | stateSelect | Priority to use phi and w as states | Structure | |
mo_stateSelect/choice1 | StateSelect.never | Number | 0 | |
mo_stateSelect/choice2 | StateSelect.avoid | Number | 0 | |
mo_stateSelect/choice3 | StateSelect.default | Number | 0 | |
mo_stateSelect/choice4 | StateSelect.prefer | Number | 0 | |
mo_stateSelect/choice5 | StateSelect.always | Number | 0 | |
mo_s_small | s_small | Prevent zero-division if distance between frame_a and frame_b is zero | Scalar | |
mo_enableAssert | enableAssert | Cause an assert when the distance between frame_a and frame_b < s_small | Scalar | true |
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
mo__nmodifiers | Number of Modifiers | Specifies the number of modifiers | Number | |
mo__modifiers | Modifiers | Add new modifier | Structure | |
mo__modifiers/varname | Variable name | Cell of strings | 'f_x' | |
mo__modifiers/attribute | Attribute | Cell of strings | 'start' | |
mo__modifiers/value | Value |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
frame_a | implicit | Coordinate system fixed to the component with one cut-force and cut-torque | input | 1 |
frame_b | implicit | Coordinate system fixed to the component with one cut-force and cut-torque | input | 2 |