Incompressible Flow Solver for Complex Deformable Geometries in 2D.
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++
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`"
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.
In order to run a simulation go to the launch directory for some preset cases