2D wave simulation project.
This repository was created for the final project of the NYU "Numerical Methods II" class of the Spring 2016 semester. It runs a finite differencing 2D wave simulator on input xyz data.
I found a good source for xyz bathymetry data at: https://www.ngdc.noaa.gov/mgg/bathymetry/relief.html
-
Build
make
-
Run simulation
./wave_simulate.tsk -p sample/parameters.txt -o sample/out
-
Generate movie
cd scripts python wave.py ../sample/parameters.txt ../sample/out
parameters.txt is a parameter file that contains values for all the parameters needed for the simulation and sample/out will be used to name files generated at each step of the simulation:
sample/out_1.xyz
sample/out_2.xyz
...
If you want to run both the simulation and the movie builder at the same time you can use the run.sh script:
cd scripts
./run.sh sample/parameters.txt
This will run the simulator in the background, and the python script that builds the movie in the foreground.
This is a sample frame from a video generated using bathymetry data from the Tyrrhenian sea.