This information is part of the Modelica Standard Library maintained by the Modelica Association.

# Spring

Linear translational spring with optional mass

CONNECTORS

CLOSE ALL
Name | Type | Description | |
---|---|---|---|

frame_a | Frame_a | Coordinate system fixed to the component with one cut-force and cut-torque | |

frame_b | Frame_b | Coordinate system fixed to the component with one cut-force and cut-torque |

PARAMETERS

Name | Type | Default Value | Description |
---|---|---|---|

animation | Boolean | true | = true, if animation shall be enabled |

showMass | Boolean | true | = true, if point mass shall be visualized as sphere if animation=true and m>0 |

c | TranslationalSpringConstant | Spring constant | |

s_unstretched | Length | 0 | Unstretched spring length |

m | Mass | 0 | Spring mass located on the connetion line between the origin of frame_a and the origin of frame_b |

lengthFraction | Real | 0.5 | Location of spring mass with respect to frame_a as a fraction of the distance from frame_a to frame_b (=0: at frame_a; =1: at frame_b) |

numberOfWindings | Integer | 5 | Number of spring windings |

USED IN EXAMPLES

Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings 3-dim. springs in series and parallel connection | |

Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass Point mass hanging on a spring | |

Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem Mass attached with a spring to the world frame | |

Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem Simple spring/damper/mass system | |

Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses Two point masses in a point gravity field (rotation of bodies is neglected) | |

Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper Simple spring/damper/mass system | |

Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant Determine spring constant such that system is in steady state at given position | |

Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody Free flying body attached by two springs to environment |