modelFreeBodiesEnforceStatesFalse

Test whether enforceStates=false give any undesired output

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This test case is made with the intent of verifying what choices are made by the compiler in terms of state selection when wrong indications are given, here all the bodies have the flag enforceStates=false but the bodies positions and velocities are the only possible states.


Dymola ignores the flag and uses bodies variables as states.

Parameters

TypeNameDefaultDescription
Booleananimationtrue= true, if animation shall be enabled

Components

TypeNameDefaultDescription
MultiBody.Worldworld
MultiBody.Parts.FixedTranslationbar2
MultiBody.Forces.Springspring1
MultiBody.Parts.BodyShapebodyShape
MultiBody.Forces.Springspring2
MultiBody.Parts.Bodybody
MultiBody.Forces.Springspring3
MultiBody.Parts.BodyBoxbodyBox
MultiBody.Forces.Springspring4
MultiBody.Forces.Springspring5
MultiBody.Parts.BodyCylinderbodyCylinder
MultiBody.Parts.PointMasspointMass
MultiBody.Forces.Springspring6