Skip to content
/ CUP2D Public

High-fidelity Navier-Stokes solver for incompressible flows around obstacles with distributed block-structured adaptively refined grids.

Notifications You must be signed in to change notification settings

cselab/CUP2D

Repository files navigation

CubismUP-2D

Incompressible Flow Solver for Complex Deformable Geometries in 2D.

Dependencies

CubismUP-2D has the following prerequisite libraries:

  • MPI, with the $MPICXX enviroment variable defined.
  • GSL, with the $GSL_ROOT environment variable defined.
  • HDF5, with the $HDF5_ROOT environment variable defined.

On Euler:

env2lmod
module load gcc
module load openmpi
module load hdf5
module load python
module load gsl
export MPICXX=mpic++

Compilation

With the above dependencies installed and associated environment variables set the code can be compiled by

cd makefiles
make

or

cd makefiles
make "MPICXX = mpicxx `pkg-config --libs --cflags hdf5-openmpi gsl`"

Compilation (cmake)

Compile the code using:

mkdir -p build
cd build
cmake ..
make

Run an example with the following commands, starting from the build folder:

cd ..
export PYTHONPATH=$(pwd):$(pwd)/build/:$PYTHONPATH
cd cubismup2d/examples/
./rectangle_and_operator.py

Output files will be stored in the output/ folder.

Running

In order to run a simulation go to the launch directory for some preset cases

About

High-fidelity Navier-Stokes solver for incompressible flows around obstacles with distributed block-structured adaptively refined grids.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published