Length parameters incorrectly declared as distance #526
Labels
bug
Critical/severe issue
duplicate
Duplicate issue
L: Mechanics.Translational
Issue addresses Modelica.Mechanics.Translational
Milestone
Reported by jriel on 11 Apr 2011 19:10 UTC
The partial models
Modelica.Mechanics.Translational.Interfaces.PartialCompliantWithRelativeStates
Modelica.Mechanics.Translational.Interfaces.PartialCompliant
incorrectly declare the variable
SI.Distance s_rel(start=0) "relative distance (= flange_b.s - flange_a.s)";
This should be declared as SI.Length. The Distance type specifies a minimum value of 0, which is not relevant for this variable (the spring equations are valid regardless whether the spring is compressed past the 0 length).
Migrated-From: https://trac.modelica.org/Modelica/ticket/526
The text was updated successfully, but these errors were encountered: