Negative displacements of translational springs should be permitted #446
Labels
bug
Critical/severe issue
L: Mechanics.Translational
Issue addresses Modelica.Mechanics.Translational
Milestone
Reported by beutlich on 29 Oct 2010 11:11 UTC
The partial models
Modelica.Mechanics.Translational.Interfaces.PartialCompliant
andModelica.Mechanics.Translational.Interfaces.PartialCompliantWithRelativeStates
haves_rel
as component which is of typeModelica.SIunits.Distance
which means that the minimum length is zero.From the simulation point of view there is no actual need to restict the spring displacement of model
Modelica.Mechanics.Translational.Components.Spring
(which is derived fromModelica.Mechanics.Translational.Interfaces.PartialCompliant
) to non-negative values (beside that real physical springs always have a positive dimension). Thus the relative displacements_rel
should instead be of typeModelica.SIunits.Position
to allow negative spring displacements and hence to generalize the element usage.Some example: It is common modeling practice that for instance the translational spring is connected to a model
Modelica.Mechanics.MultiBody.Joints.Prismatic
to implement a massless spring in MBS. Now the two displacement variablesModelica.Mechanics.Translational.Components.Spring.s_rel
andModelica.Mechanics.MultiBody.Joints.Prismatic.s
are identified by the Modelica simulation tool. However,Modelica.Mechanics.MultiBody.Joints.Prismatic.s
is of the typeModelica.SIunits.Position
where no such length requirement is to be met.Migrated-From: https://trac.modelica.org/Modelica/ticket/446
The text was updated successfully, but these errors were encountered: