Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 600 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 600 Bytes

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