194
5 Modeling of Mechanical Oscillatory Systems …
Fig. 5.62 Program code of a mechanical system with two springs and a block with zero initial
conditions (attributes of state variables)
requires you to remove the load after 5 s of the experiment, which will bring our
system out of balance.
Here it is necessary to pay attention to the fact that an additional condition for
instant removal of cargo turns our model into a hybrid one. Take this into account
when writing code.
parameter SI.Mass ML0 = 10;
SI.Mass ML;
ML = if time < 5 then ML0 else 0;
(Mp + ML)*der(v3) = F1 + F2 - g*(Mp + ML);
Précédent

- 205/274

Suivant