modelBarrierSpring

Non-linear spring acting as a barrier between frame_a and frame_b.

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.

Non-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.

This spring only exerts force when in compression. The force exerted increases exponentially as the spring length gets smaller, to prevent contact between frame_a and frame_b.

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.

model Examples.Elementary.SpringWithMass

Copyright © 2018
ATA ENGINEERING, INC.
ALL RIGHTS RESERVED

Parameters

TypeNameDefaultDescription
SI.TranslationalSpringConstantcSpring constant
SI.TranslationalDampingConstantd0Damping constant
SI.Lengths_unstretched0Unstretched spring length
Realnormal{0, 1, 0}Direction of barrier normal relative to frame_a
Modelica.Mechanics.MultiBody.Types.ResolveInFrameABresolveInFrameModelica.Mechanics.MultiBody.Types.ResolveInFrameAB.frame_aFrame in which input force is resolved (1: world, 2: frame_a, 3: frame_b, 4: frame_resolve)
Advanced
SI.Positions_small0.0000000001Prevent zero-division if distance between frame_a and frame_b is zero

Connectors

TypeNameDefaultDescription
Interfaces.Frame_aframe_a (from PartialTwoFrames)Coordinate system a fixed to the component with one cut-force and cut-torque
Interfaces.Frame_bframe_b (from PartialTwoFrames)Coordinate system b fixed to the component with one cut-force and cut-torque
Interfaces.Frame_resolveframe_resolveThe input signals are optionally resolved in this frame

Components

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Forces.Forceforce1
Modelica.Blocks.Sources.RealExpressionconst
SI.PositionlengthDistance between the origin of frame_a and the origin of frame_b
SI.Position[3]r_rel_0Position vector from frame_a to frame_b resolved in world frame
Realvec
Realf
Booleancompression=true, if in compression, otherwise in tension
Modelica.SIunits.Forcef_dDamping force