oceanremotesensing / shallow_water2D

2D Shallow Water Equation Solver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:C++ 89.2%Language:MATLAB 7.1%Language:Makefile 2.5%Language:Shell 1.1%