This code solves the Navier-Stokes Equations for 2D Open Channel Flow. The equations are discretized using the finite volume method. The Resulting System of Algebraic Equations is solved using the Successive Over-Relaxation (SOR) Method
Ubuntu 20.04
.
This project uses make
to generate the executable: Get make from the GNU Project.
You may need to install this:
- Updates:
$ sudo apt-get update
- Install:
$ sudo apt-get install make
The compiler used for this software is gfortran
: Get gfortran from GNU.
To install it:
- Updates:
$ sudo apt-get update
- Install:
$ sudo apt-get install gfortran-9
- Clone the repository:
$ git clone https://github.com/MRLintern/NavierStokes-2D-ChanelFlow.git
$ make
$./NavierStokes-2D-ChanelFlow
Once the program has been run, a file called RESULTS.dat
will be generated
with the solution. For visualization, ParaView is a good choice.
If you need help go to ParaView Tutorial.
If you don't want to run the program, RESULTS.dat
is included.
You can save the output data to CSV instead; change it in the source file. I've used CSV files for ParaView; never checked if dat files can be used but they probably can be.
Tried running the application again after some time away; problems r.e. saving output data; to be fixed.