Skip to content

A solver for the two-dimensional, incompressible, two-phase Navier-Stokes Equations based on a finite differences discretization on a staggered mesh using a Volume-of-Fluid method.

Notifications You must be signed in to change notification settings

gidonbauer/FluidSolver

Repository files navigation

Fluid Solver

A solver for the two-dimensional, incompressible, two-phase Navier-Stokes Equations based on a finite differences discretization on a staggered mesh using a Volume-of-Fluid method.

Quickstart

Configure and build using cmake:

$ cmake -Bbuild
$ cd build
$ make [-j]

Examples cases are in the example folder, tests are located in test and some benchmarks in bench. The examples can be run from within the build folder, e.g.

$ ./example/TwoPhaseSolver

The output is written into the folder output/<case name> relative to the current working directory. It can be written in VTK or XDMF2-format and inspected with ParaView. The latter one uses HDF5 as a backend to store the date.

Warning

The data in the HDF5 files is stored in Fortran-order even though HDF5 expects C-order. This is done due to constraints with ParaView and must be kept in mind when reading the data with other programs.

Tests

Test cases are implemented in the test folder and can be run by the command ctest in the build folder. The output of the test cases are written into test/output/<test case> and can be inspected with ParaView.

The implemented test cases are

  • Laminar channel flow
  • Couette flow
  • Taylor-Green vortex
  • VOF advection with constant velocity field
  • VOF advection with linear velocity field
  • VOF advection with Taylor-Green vortex
  • Moving drop with high density difference
  • Stationary drop with surface tension forces
  • Additional test on the source code

Dependencies

The dependencies are managed via git-submodules. The Interface Reconstruction Library has further dependencies on Eigen and Abseil. Eigen might need to be installed separately. HDF5 is optional and must also be installed separately.

About

A solver for the two-dimensional, incompressible, two-phase Navier-Stokes Equations based on a finite differences discretization on a staggered mesh using a Volume-of-Fluid method.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published