modelSpringDamper
Linear 2D translational spring damper model
Extends from BaseClasses.TwoConnectorShapes (Partial base class containing two frames and cylinder shapes at these frames), Modelica.Thermal.HeatTransfer.Interfaces.PartialElementaryConditionalHeatPort (Partial model to include a conditional HeatPort in order to dissipate losses, used for textual modeling, i.e., for elementary models).
Information
A linear translational spring-damper. x- and y direction stiffness and damping can be parameterized.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | useHeatPort (from PartialElementaryConditionalHeatPort) | false | = true, if heatPort is enabled |
| SI.Temperature | T (from PartialElementaryConditionalHeatPort) | 293.15 | Fixed device temperature if useHeatPort = false |
| SI.TranslationalSpringConstant | c_x | Spring constant in x dir | |
| SI.TranslationalSpringConstant | c_y | Spring constant in y dir | |
| SI.RotationalSpringConstant | c_phi | Spring constant in phi dir | |
| SI.TranslationalDampingConstant | d_x | Damping constant in x dir | |
| SI.TranslationalDampingConstant | d_y | Damping constant in y dir | |
| SI.RotationalDampingConstant | d_phi | Damping constant in phi dir | |
| SI.Position | s_relx0 | 0 | Unstretched spring length |
| SI.Position | s_rely0 | 0 | Unstretched spring length |
| SI.Angle | phi_rel0 | 0 | Unstretched spring angle |
| Animation | |||
| Boolean | animate (from TwoConnectorShapes) | true | Enable animation |
| Animation › if animation = true | |||
| SI.Length | zPosition (from TwoConnectorShapes) | planarWorld.defaultZPosition | Position z of cylinder representing the fixed translation |
| Animation › Connectors (if animation = true) | |||
| Boolean | animateConnectors (from TwoConnectorShapes) | true | =true, if connectors a and b should be animated as cylinders |
| SI.Diameter | diameterConnector_a (from TwoConnectorShapes) | planarWorld.defaultJointWidth | Diameter of connector at frame_a |
| SI.Diameter | diameterConnector_b (from TwoConnectorShapes) | planarWorld.defaultJointWidth | Diameter of connector at frame_b |
| Advanced | |||
| StateSelect | stateSelect | StateSelect.default | Priority to use phi, w and a as states |
| SI.Position | s_small | 1.E-10 | Prevent zero-division if distance between frame_a and frame_b is zero |
| Boolean | enableAssert | true | Cause an assert when the distance between frame_a and frame_b < s_small |
| Animation › Spring coil (if animation = true) | |||
| Integer | numberOfWindings | 5 | Number of spring windings |
| Animation › Damper cylinders (if animation = true) | |||
| SI.Length | length_a | planarWorld.defaultForceLength | Length of cylinder at frame_a side |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Frame_a | frame_a (from PartialTwoFrames) | Coordinate system fixed to the component with one cut-force and cut-torque | |
| Frame_b | frame_b (from PartialTwoFrames) | Coordinate system fixed to the component with one cut-force and cut-torque | |
| HeatTransfer.Interfaces.HeatPort_a | heatPort (from PartialElementaryConditionalHeatPort) | Optional port to which dissipated losses are transported in form of heat |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| MB.Types.SpecularCoefficient | specularCoefficient (from TwoConnectorShapes) | planarWorld.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |
| MB.Types.Color | colorConnector_a (from TwoConnectorShapes) | Types.Defaults.RodColor | Color of connector at frame_a |
| MB.Types.Color | colorConnector_b (from TwoConnectorShapes) | Types.Defaults.RodColor | Color of connector at frame_a |
| SI.Power | lossPower (from PartialElementaryConditionalHeatPort) | Loss power leaving component via heatPort (> 0, if heat is flowing out of component) | |
| SI.Temperature | TheatPort (from PartialElementaryConditionalHeatPort) | Temperature of heatPort | |
| SI.Velocity | v_relx | Spring velocity | |
| SI.Velocity | v_rely | Spring velocity | |
| SI.AngularVelocity | w_rel | Spring anglular velocity | |
| SI.Position | s_relx | Spring length | |
| SI.Position | s_rely | Spring length | |
| SI.Angle | phi_rel | Spring angle | |
| SI.Force | f_x | Force in x direction | |
| SI.Force | f_y | Force in y direction | |
| SI.Torque | tau | Torque between frames (= frame_b.f) | |
| SI.Length | width | planarWorld.defaultJointWidth | Width of spring |
| SI.Length | coilWidth | width/10 | Width of spring coil |
| MB.Types.Color | color | Types.Defaults.SpringColor | Color of spring |
| SI.Diameter | diameter_a | planarWorld.defaultForceWidth | Diameter of cylinder at frame_a side |
| SI.Diameter | diameter_b | 0.6*diameter_a | Diameter of cylinder at frame_b side |
| MB.Types.Color | color_a | {100, 100, 100} | Color of cylinder at frame_a side |
| MB.Types.Color | color_b | {155, 155, 155} | Color of cylinder at frame_b side |
| SI.Length | length | Distance between the origin of frame_a and the origin of frame_b | |
| SI.Position[3] | r_rel_0 | Position vector (3D) from frame_a to frame_b resolved in multibody world frame | |
| Real[3] | e_rel_0 | Unit vector (3D) in direction from frame_a to frame_b, resolved in multibody world frame |
Revisions
Developed 2010 at the DLR Institute of System Dynamics and Control