This project implements a solver based on finite differences for the Navier-Stokes equations. The solver can be used both on a default cubic domain as well as on an input original mesh which exploits the Brinkmann penalization method.
To compile and run the project, make sure you have the following tools and libraries installed and configured:
- Compiler: GCC with C++20 support
- Libraries:
- PETSc
- VTK
- Eigen
- Load the required modules:
Before compiling or running the program, load the necessary modules. Ensure that your environment is correctly set up by running:source /u/sw/etc/bash.bashrc module load gcc-glibc module load eigen module load vtk module load petsc
- Compile the project:
After loading the modules, compile the project by running:
make
- Usage
To run the solver, execute the following command:
For the Brinkmann solver the name of the .stl has to be indicated. An Example one is given, to run the solver on the example mesh execute the following command:
./bin/main
The program will compute the solution and store the results in the results directory./bin/main caroitd.stl