Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative displacements of translational springs should be permitted #446

Closed
modelica-trac-importer opened this issue Jan 14, 2017 · 6 comments
Assignees
Labels
bug Critical/severe issue L: Mechanics.Translational Issue addresses Modelica.Mechanics.Translational
Milestone

Comments

@modelica-trac-importer
Copy link

Reported by beutlich on 29 Oct 2010 11:11 UTC
The partial models Modelica.Mechanics.Translational.Interfaces.PartialCompliant and Modelica.Mechanics.Translational.Interfaces.PartialCompliantWithRelativeStates have s_rel as component which is of type Modelica.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 from Modelica.Mechanics.Translational.Interfaces.PartialCompliant) to non-negative values (beside that real physical springs always have a positive dimension). Thus the relative displacement s_rel should instead be of type Modelica.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 variables Modelica.Mechanics.Translational.Components.Spring.s_rel and Modelica.Mechanics.MultiBody.Joints.Prismatic.s are identified by the Modelica simulation tool. However, Modelica.Mechanics.MultiBody.Joints.Prismatic.s is of the type Modelica.SIunits.Position where no such length requirement is to be met.


Migrated-From: https://trac.modelica.org/Modelica/ticket/446

@modelica-trac-importer modelica-trac-importer added bug Critical/severe issue L: Mechanics.Translational Issue addresses Modelica.Mechanics.Translational labels Jan 14, 2017
@modelica-trac-importer
Copy link
Author

Comment by hubertus on 3 Dec 2010 22:50 UTC
Fixed in 07fdd0c for 3.1 maintenance branch

@modelica-trac-importer
Copy link
Author

Comment by hubertus on 3 Dec 2010 22:53 UTC
Fixed in bd9a17d for 3.2 maintenance branch

@modelica-trac-importer
Copy link
Author

Comment by hubertus on 3 Dec 2010 22:58 UTC
Fixed in 145462a for trunk, 3.3dev

@modelica-trac-importer
Copy link
Author

Comment by hubertus on 3 Dec 2010 22:59 UTC
Fixed in 3.1, 3.2, trunk, see previous comments for revisions

@modelica-trac-importer
Copy link
Author

Modified by dietmarw on 3 Dec 2010 23:57 UTC

@modelica-trac-importer
Copy link
Author

Comment by dietmarw on 8 Dec 2010 07:53 UTC
Also fixed (by Toni) in 1c80cd0, 7ee43e7 for 3.0 and 3.0.1 maintenance branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Mechanics.Translational Issue addresses Modelica.Mechanics.Translational
Projects
None yet
Development

No branches or pull requests

2 participants