Skip to content

Ch1L1/ims_project

Repository files navigation

Oil Spill Simulation

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.

Features

  • 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.

Getting Started

  1. Clone repository:

    git clone git@github.com:Ch1L1/ims_project.git
  2. Build the program:

    make
  3. 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).

Authors

Tomáš Homola,

Daniel Záležák

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors