-
Notifications
You must be signed in to change notification settings - Fork 176
Open
Labels
L: Mechanics.RotationalIssue addresses Modelica.Mechanics.RotationalIssue addresses Modelica.Mechanics.RotationalduplicateDuplicate issueDuplicate issue
Description
I did some investigation on the unbounded annotation in Dymola and found that it would likely be a good addition for some MSL components.
The tests were carried out using Modelica.Mechanics.Rotational.Sources.Speed, with focus on the behavior when angles get relatively big (but still reasonable). This results in numerical issues pretty quickly, as shown below:
There are three variables plotted:
- unbounded=false: based on
Modelica.Mechanics.Rotational.Sources.Speed - unbounded=true: based on a modified version on
Modelica.Mechanics.Rotational.Sources.Speedsetting aunbounded = true - Reference (hidden behind the curve for unbounded=true): based on the orignal version
Modelica.Mechanics.Rotational.Sources.Speed, but the offset in the angle is added by a block after the actual integration instead of an initial value. This makes the state itself have small values.
Due to the above observations, I think it would be good to add the annotation to the MSL. Of the top of my head, I think this should be done for a couple of elements in the MSL:
Modelica.Mechanics.Rotational.Sources.PositionModelica.Mechanics.Rotational.Sources.SpeedModelica.Mechanics.Translational.Sources.PositionModelica.Mechanics.Translational.Sources.Speed- ...
The results can be reproduced using Dymola 2021 with this package. A quick test done with MSL 4.0.0 shows that there is no change regarding this property.
Metadata
Metadata
Assignees
Labels
L: Mechanics.RotationalIssue addresses Modelica.Mechanics.RotationalIssue addresses Modelica.Mechanics.RotationalduplicateDuplicate issueDuplicate issue
