Giter VIP home page Giter VIP logo

cup2d's Introduction

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 Piz Daint:

module swap PrgEnv-cray PrgEnv-gnu
module load daint-gpu 
moudle load cray-python
module load cray-hdf5 
module load GSL 
module load cdt-cuda
module load craype-accel-nvidia60
export MPICXX=CC
export CXX=CC
export NVCC=nvcc

On Euler:

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

On Panda/Falcon:

module load gnu mpich python hdf5
export GSL_ROOT=/usr

Compilation

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

cd makefiles
make -j

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

cup2d's People

Contributors

ikicic avatar michaich avatar novatig avatar vsamokhvalov avatar wadaniel avatar webepasc avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.