Skip to content
Explicit scheme for CFD
C++ CMake C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Explicit scheme for CFD using a new finite element scheme. At the moment limited to incompressible Navier-Stokes in 2D and 3D.

  • Programming language: C++
  • C++ standard: C++11 (or above)
  • Required third-party libraries: 1.) Eigen 2.) VTK (This is optional. Can output in VTK legacy format by defining the VTK_LEGACY_FORMAT variable in the compiler options.

Compilation and building

  • Create build and bin directories.
  • Modify the CMakeLists.txt file accordingly.
    • Change the paths to the compilers, Eigen and VTK libraries.
    • Change the path to bin.
  • Run the following commands (from the repository folder)
    • mkdir build
    • cd build
    • cmake ..
    • make install


./incexplicitSerial <inpfileprefix>

One input file for the 2D lid-driven cavity benchmark is provided; this input is for the mesh B, Figure 13(b) in the paper. The control parameters in control-parameters.dat file are set to produce the results for Re=1000.

You can also test this by running the Python program This program makes a system call to the execution of the CFD program with the corresponding input file and compares the convergence data once the simulation is finished.

The simulation also produces 320 VTK files.

You can’t perform that action at this time.