Download presentation
Presentation is loading. Please wait.
1
Introduction to Adevs continuous modeling
Lee, Hojun
2
Contents Adevs classes for continuous modeling
An Example : cherry bomb Another example for practice Ref. Adevs manual:
3
Adevs classes for continuous modeling
Basic : adevs_dess.h discrete_output_func() discrtet_action_func() evolve_func() next_event_func() state_changed() Modified : adevs_rk4.h/ adevs_rk45.h der_func() state_event_func() time_event_func() discrete_action() discrete_output()
4
An Example: Cherry Bomb(1/2)
A cherry bomb is dropped from a height of 1 meter and bounces until it explodes or is doused with water Move only up and down and perfectly elastic. Explode in 2 seconds after it is lit. Dousing is an input event which gets the fuse off, “boom” message comes out as an output when it explodes.
5
An Example: Cherry Bomb(2/2)
Continuous state variables: height(h), velocity(v), time(t) Discrete state variable: phase(lit, douse, explode) Differential equations dv/dt = -9.8 m/s dh/dt = v Condition If (h=0 & v <0) then v = -v;
6
Another example for practice(1/2)
Track generator (2D cartesian coordinate) A target moves in the x direction starting from (0, 0) at velocity of 100m/s From 1 sec to 1.5 sec it turns left by 10 degree No input, No output
7
Another example for practice(2/2)
Continuous state variables : x , y, angle(theta), time(t) Discrete state variable: phase (start, stop) Differential Equ. dx/dt = velocity*cos(theta); dy/dt = velocity*sin(theta); Condition If (t >=1.0&&t <1.5) then theta = 10 degree; else theta = 0;
8
Thank you Questions?
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.