Skip to content

Add annotation "unbounded" to 1D mechanical sources #3635

Open
@markusandres3DS

Description

@markusandres3DS

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:

Result_BasicTest

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.Speed setting a unbounded = 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.Position
  • Modelica.Mechanics.Rotational.Sources.Speed
  • Modelica.Mechanics.Translational.Sources.Position
  • Modelica.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

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions