modelReleaseMechanism
Extends from Modelica.Mechanics.MultiBody.Interfaces.PartialTwoFrames (Base model for components providing two frame connectors + outer world + assert to guarantee that the component is connected).
Information
Attribution Notice
This model is an extension of the Spring block in the Mechanics.MultiBody.Forces package
of the Modelica Standard Library
Copyright © 1998-2016, Modelica Association and DLR.
Linear spring acting as line force between frame_a and frame_b. A force f is exerted on the origin of frame_b and with opposite sign on the origin of frame_a along the line from the origin of frame_a to the origin of frame_b according to the equation:
f = c*(s - s_unstretched);
where "c" and "s_unstretched" are parameters and "s" is the distance between the origin of frame_a and the origin of frame_b.
This spring exerts a force until the "release" condition is true. For the remainder of the simulation, it exerts no force.
Optionally, the mass of the spring is taken into account by a point mass located on the line between frame_a and frame_b (default: middle of the line). If the spring mass is zero, the additional equations to handle the mass are removed.
In the following figure a typical animation of the spring is shown. The blue sphere in the middle of the spring characterizes the location of the point mass.
Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | animation | true | = true, if animation shall be enabled |
| Boolean | showMass | false | = true, if point mass shall be visualized as sphere if animation=true and m>0 |
| SI.TranslationalSpringConstant | c | Spring constant | |
| SI.TranslationalDampingConstant | d | 0 | Damping constant |
| SI.Length | s_unstretched | 0 | Unstretched spring length |
| SI.Mass | m | 0 | Spring mass located on the connection line between the origin of frame_a and the origin of frame_b |
| Real | lengthFraction | 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) |
| Animation › if animation = true | |||
| Integer | numberOfWindings | 5 | Number of spring windings |
| Advanced › If enabled, can give wrong results, see MultiBody.UsersGuide.Tutorial.ConnectionOfLineForces | |||
| Boolean | fixedRotationAtFrame_a | false | =true, if rotation frame_a.R is fixed (to directly connect line forces) |
| Boolean | fixedRotationAtFrame_b | false | =true, if rotation frame_b.R is fixed (to directly connect line forces) |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.Frame_a | frame_a (from PartialTwoFrames) | Coordinate system a fixed to the component with one cut-force and cut-torque | |
| Interfaces.Frame_b | frame_b (from PartialTwoFrames) | Coordinate system b fixed to the component with one cut-force and cut-torque |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | released | ||
| SI.Distance | width | world.defaultForceWidth | Width of spring |
| SI.Distance | coilWidth | width/10 | Width of spring coil |
| Types.Color | color | Modelica.Mechanics.MultiBody.Types.Defaults.SpringColor | Color of spring |
| Types.SpecularCoefficient | specularCoefficient | world.defaultSpecularCoefficient | Reflection of ambient light (= 0: light is completely absorbed) |
| SI.Diameter | massDiameter | max(0, (width - 2*coilWidth)*0.9) | Diameter of mass point sphere |
| Types.Color | massColor | Modelica.Mechanics.MultiBody.Types.Defaults.BodyColor | Color of mass point |
| Forces.LineForceWithMass | lineForce | ||
| Springs.Translational.ReleaseSpring1D | spring | ||
| Modelica.Mechanics.MultiBody.Visualizers.Advanced.Shape | lineShape |