UncontrolledScenario.mo 549 B

1234567891011121314151617
  1. model UncontrolledScenario
  2. PowerSystem power();
  3. Window window();
  4. Obstacle obstacle();
  5. equation
  6. power.u = 1.0;
  7. power.d = 0.0;
  8. window.speed = power.omega;
  9. window.displacement = power.theta;
  10. window.reaction_force = obstacle.F;
  11. power.tau = window.reaction_torque;
  12. obstacle.disp = window.height;
  13. annotation(
  14. experiment(StartTime = 0, StopTime = 6, Tolerance = 1e-06, Interval = 0.0024),
  15. __OpenModelica_simulationFlags(jacobian = "coloredNumerical", s = "dassl", lv = "LOG_STATS"));
  16. end UncontrolledScenario;