Window.mo 481 B

12345678910111213141516171819
  1. model Window
  2. parameter Real r = 0.11;
  3. parameter Real b = 10;
  4. input Real speed;
  5. input Real displacement;
  6. input Real reaction_force;
  7. output Real reaction_torque;
  8. output Real height;
  9. Real v;
  10. output Real friction;
  11. equation
  12. reaction_torque = reaction_force * r + friction;
  13. height = r * displacement;
  14. v = r * speed;
  15. friction = b * v;
  16. annotation(
  17. experiment(StartTime = 0, StopTime = 1, Tolerance = 1e-06, Interval = 0.002));
  18. end Window;