Skip to content

2D Navier-Stokes Equation. Discretized using Finite Differences and solved via the Successive Over-Relaxation (SOR) Method.

Notifications You must be signed in to change notification settings

MRLintern/NavierStokes-2D-ChannelFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2D Navier-Stokes Equations Solver for 2D Channel Flow

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

Operating System

Ubuntu 20.04.

Make

This project uses make to generate the executable: Get make from the GNU Project. You may need to install this:

  1. Updates: $ sudo apt-get update
  2. Install: $ sudo apt-get install make

Compiler

The compiler used for this software is gfortran: Get gfortran from GNU. To install it:

  1. Updates: $ sudo apt-get update
  2. Install: $ sudo apt-get install gfortran-9

Running the Application

  1. Clone the repository: $ git clone https://github.com/MRLintern/NavierStokes-2D-ChanelFlow.git
  2. $ make
  3. $./NavierStokes-2D-ChanelFlow

Results

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.

TODO

Tried running the application again after some time away; problems r.e. saving output data; to be fixed.

About

2D Navier-Stokes Equation. Discretized using Finite Differences and solved via the Successive Over-Relaxation (SOR) Method.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published