UncontrolledScenario.mo 432 B

12345678910111213141516
  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.omega_input = power.omega;
  9. window.theta_input = power.theta;
  10. power.tau = -(window.tau + obstacle.F*window.r);
  11. obstacle.x = window.x;
  12. obstacle.v = window.v;
  13. annotation(
  14. experiment(StartTime = 0, StopTime = 10, Tolerance = 1e-06, Interval = 0.004));
  15. end UncontrolledScenario;