Skip to content

oceanremotesensing/shallow_water2D

 
 

Repository files navigation

shallow_water2D

2D Shallow Water Equation Solver alt text

Requirements

apt-get install libnetcdf libnetcdf-dev apt install libnetcdf-c++4-dev libnetcdf-cxx-legacy-dev

Compilation and Run

$make

$./main.x

or

$sh Allrun.sh

plot and save png

ncview output.nc

or edit x and y spacing in animation.m. eta*.png files will be saved in png folder)

$octave animation.m

$convert -delay 10 ./png/*.png anim.gif

Parameters file

1st row : x spacing

2nd row : y spacing

3rd : timestep

4th : total time

About

2D Shallow Water Equation Solver

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.3%
  • MATLAB 7.1%
  • Makefile 2.5%
  • Shell 1.1%