1 | | Using the MSL mass with stop and friction with a force (see attached example), Dymola detects a mixed system, which is handled as nonlinear system in OpenModelica. When looking at the equations, there is one linear equation, which depends on a boolean variable. Is there a mixed system detection and handling in OpenModelica? |
| 1 | Using the MSL mass with stop and friction with a force (see example below), Dymola detects a mixed system, which is handled as nonlinear system in OpenModelica. When looking at the equations, there is one linear equation, which depends on a boolean variable. Is there a mixed system detection and handling in OpenModelica? |
| 2 | |
| 3 | model TestModel |
| 4 | Modelica.Mechanics.Translational.Components.MassWithStopAndFriction |
| 5 | massWithStopAndFriction(m=1); |
| 6 | Modelica.Mechanics.Translational.Sources.Force force; |
| 7 | Modelica.Blocks.Sources.Sine sine; |
| 8 | |
| 9 | equation |
| 10 | connect(force.flange, massWithStopAndFriction.flange_a); |
| 11 | connect(sine.y, force.f); |
| 12 | |
| 13 | end TestModel; |