Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.33 KB

File metadata and controls

48 lines (31 loc) · 1.33 KB

Wave

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

Quick start

  1. Build

     make
    
  2. Run simulation

     ./wave_simulate.tsk -p sample/parameters.txt -o sample/out
    
  3. 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
    ...

Quicker start

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.

Sample

This is a sample frame from a video generated using bathymetry data from the Tyrrhenian sea. samplewave