This program simulates the spread of an oil spill over a grid-based ocean environment. The simulation takes into account various factors such as wind speed and direction, water current speed and direction, and the initial distribution of the oil.
-
Cellular Automaton Model: The simulation uses a cellular automaton model to represent the ocean environment, where each cell in the grid holds information about the oil level and burning state.
-
Wind and Water Currents: The program considers the impact of wind and water currents on the spread of the oil spill. You can configure the wind and water current parameters through command-line options.
-
Fire Spread: The simulation introduces the concept of fire, which can spread through oil-covered cells. The spread of fire is influenced by the oil content of neighboring cells.
-
Visualization: The program provides a simple visualization of the oil spill over time, both in the terminal and by saving grid data to a text file.
-
Clone repository:
git clone git@github.com:Ch1L1/ims_project.git
-
Build the program:
make
-
Run simulation:
./oil_spill_simulation -w <wind_direction> -c <current_direction>
Replace <wind_direction> and <current_direction> with the desired wind and current directions.
-w <direction>:Set the wind direction (N, E, S, W, NE, NW, SE, SW).-c <direction>:Set the water current direction (N, E, S, W, NE, NW, SE, SW).
Tomáš Homola,
Daniel Záležák