Hybrid System Simulation (Winter 2009,
Math 275 course project)
The project report slides
describing the system.
The
following describes the system being simulated:
•2D space with a heat distribution
which evolution is governed by the heat equation with 0 boundary conditions on
the rectangular domain
•Spaceship moves by choosing a random
direction to accelerate at every time instance
•Rockets pursue spaceship by accelerating
towards it
•Gravity pulls all objects towards
origin
•Spaceship is prevented from leaving
the display square
•Spaceship generates heat
•Heat decelerates rockets
•Once a rocket reaches spaceship an
explosion is created and the rocket stops its pursuit for 5 time units
•Heat sink
This is a logic
program defining the system: rockets.txt.
This is a
slightly modified program: rockets2.txt.
This is a Java applet that
will run “rockets.txt” example.
This is a Java applet that
will run “rockets2.txt” example.
This is a Java applet that will
not immediately run an example (a new window with graphics will open).
To
load the file rockets.txt, set the time step to 0.4 and run the simulation for
1000 iterations please do the following after starting the applet (please type
into the small window on the bottom)
loadLink("http://math.ucsd.edu/~abrik/rockets.txt")
dt=0.4
next(1000)
OR
loadLink("http://math.ucsd.edu/~abrik/rockets2.txt")
dt=0.4
next(1000)