Video

PLEASE VIEW MY VIDEO HERE IT GLITCHED AND I COULDN'T DOWNLOAD IT https://docs.google.com/videos/d/1fASR2zYmmvMs5yftzCpf5niV2lAD_Un-835rrcuZhO4/edit?scene=id.p#scene=id.p

Inspiration

My inspiration for this project came from learning NetLogo Friday in my math class. I explored more of the program Friday night and found one pre-made model (Percolation) that modeled oil flowing through dirt with different porosity values. I decided to take the oil spreading portion of that model and wanted to model oil spills in the ocean. I then learned NetLogo over the weekend and used the application to write a model of ocean spreading in the ocean over time and in different conditions.

What it does

You can run the program by uploading it here: [link]https://netlogoweb.org/ or by downloading the NetLogo app and uploading it there. This program models oil spreading in the ocean with the following variables (with their respective uses):

starting-radius: This variable determines what radius the oil spill starts with. This determines how large the initial spill or pipe burst was. water-temp: This variable determines how much random movement there is in the system. This is similar to how particles move around randomly in real life. total-oil-spilled: This variable determines the 'cap' oil in the system. Once the current oil hits this number the program stops. wind-velocity: This variable determines how often the oil moves toward the chosen wind direction. This models either waves in the ocean or a surface current. wind-direction: As described above, this determines the direction in which the wind moves in the program. spread-rate: This determines how likely it is for the oil to spread to each successive location. Since different oils have different physical traits this models different types of oils.

How we built it

I built this program in NetLogo by building components separately and then putting it all together in order to model what it actually looks like in real time. I didn't use any AI on this project, and was able to troubleshoot by using the netlogo dictionairy (link) to find the commands that I needed to do what I needed to do.

Challenges we ran into

For the program itself, I didn't know the language and that made it very difficult to troubleshoot any accidental errors that I had. Additionally, I was on a solo team and that made the process really difficult. This was my first hackathon, and I wasn't really sure what to expect for this. Despite all of these challenges I was really proud of what I submitted.

Accomplishments that we're proud of

As I stated above, I was really proud of what I submitted even with all of the setbacks that I had to deal with. Additionally, I was really proud of how I learned how to write code in NetLogo and how to model all of the different conditions in NetLogo just from looking at the NetLogo term dictionary.

What we learned

I learned how to write in NetLogo along with how to develop a basic idea into a more complicated project over the course of a short time span. I was also able to learn how to pitch an idea and manage my time in order to get everything submitted on time.

What's next for Oil Spill Simulator

Next, I want to add more color to the oil patches to show the height of the oil, since the oil starts at a high level and then slowly levels out until it's just a film over the ocean (since the density is higher).

Built With

  • netlogo
Share this project:

Updates