Solves the two-dimensional incompressible Navier-Stokes equations on a staggered mesh system.
I have updated this version to build on MacOS and Linux with GCC gfortran.
To build using GCC on Mac or Linux:
ln -s gcc.mak Makefile
make
cd test
../mkgrid
128 128
0 0
../stag < test.inp
- Uses OpenBLAS which you can install using homebrew on MacOS
- Automatically builds a subset of SLATEC that is needed
- Visualize the results using Paraview -- STAG generates both a
grid.xyz
andoutput.q.*
files in Plot3d format.
The test
directory contains a simple vortex rebound problem used to
test STAG. The README.md
file therein describes the test case and how
to run and visualize it.
This code was developed primarily for educational purposes and comes in several versions that demonstrate different capabilities and levels of complexity.
Version | Notes |
---|---|
3 | Stable solver |
4 | Multiple pressure solvers |
5 | REAL defines added to version 3 |
6 | Immersed boundary conditions added to version 3 |
Vortex rebound, contours of vorticity.
S. Scott Collis
flow.physics.simulation@gmail.com