NaokiHori / EllipsesInFlows

Navier-Stokes Solver with moving elliptic bodies

Home Page:https://naokihori.github.io/EllipsesInFlows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ellipses in Flows

For circular (2D) or spherical (3D) objects, please refer to the other library.

License_ LastCommit_ CI_

image

Overview

This library numerically solves the motion of elliptic bodies governed by the Newton-Euler equations suspended in viscous liquid by means of the finite-difference and the immersed-boundary methods.

Please refer to the documentation for details.

Features

  • MPI-parallelised
  • Eulerian-based (no Lagrangian points) IBM
  • Collision model between ellipses

Dependency

Docker

Quick start

  1. Create working directory

    mkdir /path/to/your/working/directory
    cd    /path/to/your/working/directory
  2. Fetch source

    git clone https://github.com/NaokiHori/EllipsesInFlows
    cd EllipsesInFlows
  3. Build

    docker build -t simplenavierstokessolver:latest .
    docker run -it --rm --cpuset-cpus="0-1" -u runner -v ${PWD}:/home/runner simplenavierstokessolver:latest
    make output
    make all
  4. Run

    mpirun -n 2 ./a.out

Examples

Several examples can be found in the documentation.

  1. Migration of a circular object in a shear flow
  2. Segré-Silberberg effect
  3. Rotation of an ellipse in a shear flow
  4. Suspension in a plane Poiseuille flow

About

Navier-Stokes Solver with moving elliptic bodies

https://naokihori.github.io/EllipsesInFlows

License:MIT License


Languages

Language:C 94.4%Language:Python 4.1%Language:Makefile 0.9%Language:Shell 0.4%Language:Gnuplot 0.2%Language:Dockerfile 0.1%