Skip to content

aasoni/wave

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

2D wave numerical simulation and animation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published