Skip to content

A flexible multiphysics PDE's solver, specialized in solving Evolutionary Incompressible NAvier-Stokes Equations with Brinkman contribute to handle general geometries. Current implementation allows also to solve many kind of problems, eg. Laplace, Parabolic, Inviscid Euler, Stokes, Heat, Advection

Notifications You must be signed in to change notification settings

galbiatidavide/Finite-Differences-Navier-Stokes

Repository files navigation

Finite Differences Navier-Stokes Solver

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.

Requirements

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

Installation

  1. 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
    
  2. Compile the project: After loading the modules, compile the project by running:
    make 
    
  3. Usage To run the solver, execute the following command:
    ./bin/main 
    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 caroitd.stl
    The program will compute the solution and store the results in the results directory

About

A flexible multiphysics PDE's solver, specialized in solving Evolutionary Incompressible NAvier-Stokes Equations with Brinkman contribute to handle general geometries. Current implementation allows also to solve many kind of problems, eg. Laplace, Parabolic, Inviscid Euler, Stokes, Heat, Advection

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published