• Stars
    star
    400
  • Rank 107,843 (Top 3 %)
  • Language
    C++
  • License
    MIT License
  • Created almost 5 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Finite volume solver for incompressible multiphase flows with surface tension. Foaming flows in complex geometries.

Aphros

Finite volume solver for incompressible multiphase flows with surface tension.

Key features:

  • implementation in C++14
  • scalability to thousands of compute nodes
  • fluid solver based on SIMPLE or Bell-Colella-Glaz methods
  • advection with PLIC volume-of-fluid
  • particle method for curvature estimation accurate at low resolutions [demo] [4]
  • Multi-VOF for scalable coalescence prevention [demo] [8] [11]

Gallery of interactive simulations

Gallery wiki Curvature Multi-VOF Electrochemistry Parser

Documentation

Online version and PDF generated in doc/sphinx.

Requirements

C++14, CMake

Optional dependencies: MPI, parallel HDF5, python3, python3-numpy

Bundled optional dependencies: hypre, overlap, fpzip

Clone and build

git clone https://github.com/cselab/aphros.git

First, follow deploy/README.md to prepare environment and install dependencies. Then build with

cd src
make

Docker

Instead of building the code in your system, you can build a Docker container and run a simulation example

docker build github.com/cselab/aphros --tag aphros
cd examples/202_coalescence/standalone
./conf
docker run -v `pwd`:`pwd` -w `pwd` aphros

Minimal build without CMake

Build without dependencies and tests on Unix-like systems (APHROS_PREFIX is the installation directory, with USE_MPI=1, USE_HDF=1, USE_OPENCL=1, USE_AVX=1 builds with MPI, parallel HDF5 library, OpenCL, and AVX extensions):

cd src
../make/bootstrap
make -f Makefile_legacy install APHROS_PREFIX=$HOME/.local USE_MPI=0 USE_HDF=0 USE_OPENCL=0 USE_AVX=0

on Windows using Microsoft C++ toolset (NMAKE, LINK, and CL):

cd src
../make/bootstrap # Requires sh and awk.
nmake /f NMakefile

Videos

Examples of simulations visualized using ParaView and OSPRay. Links [conf] lead to the solver configuration.

Coalescence of bubbles [conf] [4] Taylor-Green vortex with bubbles [2] [5]
Bubble jump-off [1] Electrochemical reactor [9]
Bubble trapped by vortex ring [5] Plunging jet [2]
Clustering of bubbles [conf] [6] [7] [11] Foaming waterfall [conf] [8] [11]
Bidisperse foam [conf] [11] Microfluidic crystals [conf] [11]
LAMMPS polymers in Taylor-Green vortex [conf] Bubble pipe optimization [10]
Bubbles through mesh
APS Gallery of Fluid Motion 2019 award winner
Breaking waves: to foam or not to foam? [6]
Collaboration with Jean M. Favre at CSCS.

Developers

Aphros is developed and maintained by researchers at ETH Zurich and Harvard University

under the supervision of

Other contributors are: Fabian Wermelinger (Cubism backend)

Publications

  1. Hashemi SMH, Karnakov P, Hadikhani P, Chinello E, Litvinov S, Moser C, Koumoutsakos P, Psaltis D. A versatile and membrane-less electrochemical reactor for the electrolysis of water and brine. Energy & environmental science. 2019 10.1039/C9EE00219G
  2. Karnakov P, Wermelinger F, Chatzimanolakis M, Litvinov S, Koumoutsakos P. A high performance computing framework for multiphase, turbulent flows on structured grids. Proceedings of the platform for advanced scientific computing conference on โ€“ PASC โ€™19. 2019 10.1145/3324989.3325727 [pdf]
  3. Karnakov P, Litvinov S, Koumoutsakos P. Coalescence and transport of bubbles and drops. 10th International Conference on Multiphase Flow (ICMF). 2019 [pdf]
  4. Karnakov P, Litvinov S, and Koumoutsakos P. A hybrid particle volume-of-fluid method for curvature estimation in multiphase flows. International journal of multiphase flow. 2020 10.1016/j.ijmultiphaseflow.2020.103209 arXiv:1906.00314
  5. Wan Z, Karnakov P, Koumoutsakos P, Sapsis T. Bubbles in Turbulent Flows: Data-driven, kinematic models with history terms. International journal of multiphase flow. 2020 10.1016/j.ijmultiphaseflow.2020.103286 arXiv:1910.02068
  6. Karnakov P, Litvinov S, Favre JM, Koumoutsakos P. V0018: Breaking waves: to foam or not to foam? Gallery of Fluid Motion Award video article
  7. Annual report 2019 of the Swiss National Supercomputing Centre (cover page) [link]
  8. Karnakov P, Wermelinger F, Litvinov S, Koumoutsakos P. Aphros: High Performance Software for Multiphase Flows with Large Scale Bubble and Drop Clusters. Proceedings of the platform for advanced scientific computing conference on โ€“ PASC โ€™20. 2020 10.1145/3394277.3401856 [pdf]
  9. Karnakov P. The multilayer volume-of-fluid method for multiphase flows across scales: breaking waves, microfluidics, and membrane-less electrolyzers. PhD thesis. ETH Zurich. 2021 10.3929/ethz-b-000547518
  10. Martin SM, Wรคlchli D, Arampatzis G, Economides AE, Karnakov P, Koumoutsakos P. Korali: Efficient and scalable software framework for Bayesian uncertainty quantification and stochastic optimization. Computer Methods in Applied Mechanics and Engineering. 2021 10.1016/j.cma.2021.114264
  11. Karnakov P, Litvinov S, Koumoutsakos P. Computing foaming flows across scales: from breaking waves to microfluidics. Science Advances. 2022 10.1126/sciadv.abm0590

Citing

If you use Aphros in your work, please consider using the following

@article{aphros2022,
  author = {Petr Karnakov  and Sergey Litvinov  and Petros Koumoutsakos},
  title = {Computing foaming flows across scales: From breaking waves to microfluidics},
  journal = {Science Advances},
  volume = {8},
  number = {5},
  pages = {eabm0590},
  year = {2022},
  doi = {10.1126/sciadv.abm0590},
  URL = {https://www.science.org/doi/abs/10.1126/sciadv.abm0590},
  eprint = {https://www.science.org/doi/pdf/10.1126/sciadv.abm0590},
}

More Repositories

1

smarties

Lightweight and scalable framework for Reinforcement Learning
C++
116
star
2

odil

Python
49
star
3

Mirheo

Computational Microfluidics
C++
49
star
4

MARL_LES

Repository for data and scripts of "Automating Turbulence Modeling by Multi-Agent Reinforcement Learning"
Python
27
star
5

Cubism-MPCF

C++
20
star
6

LED

Python
19
star
7

pi4u

Pi4U - High Performance Framework for Bayesian Uncertainty Quantification and Optimization
C
16
star
8

CubismNova

HPC library for structured uniform and adaptive multi resolution
C++
10
star
9

stitch

A scalable implementation of WobblyStitcher for 3D microscopy images
Python
8
star
10

old_korali

Optimization, Sampling, Uncertainty Quantification and Learning
C++
8
star
11

CubismUP_3D

Uniform resolution solver for incompressible 3D NS eq. in velocity-pressure formulation with multiple non-divergence-free self-propelled obstacles.
C++
8
star
12

MRAG-I2D

MRAG for 2D incompressible flows
C++
8
star
13

CUP3D

High-fidelity Navier-Stokes solver for incompressible flows around obstacles with distributed block-structured adaptively refined grids.
C++
7
star
14

corpuscles

Simulate cells and particles
Fortran
6
star
15

TScratch

TScratch is a software tool to automatically analyze wound healing assays (scratch assays), available as a stand-alone application for Macintosh and Windows and as a source code.
6
star
16

PyMLMC

Python
5
star
17

LED-Molecular

Python
5
star
18

CubismUP_2D

C++
5
star
19

gray-scott

implementation of the gray-scott model
Python
5
star
20

hierarchical-matlab

Matlab implementation of Hierarchical Bayesian Inference
MATLAB
5
star
21

FTLE2D

Code package for computing 2D FTLE fields with support for OpenCL on GPUs
C++
4
star
22

adaled

Adaptive Learning of Effective Dynamics
Python
4
star
23

Cubism

C++ template library for distributed block-structured adaptively refined grids.
C++
3
star
24

pypi4u

python code for pi4u
Python
2
star
25

medusa

C
2
star
26

CUP2D

High-fidelity Navier-Stokes solver for incompressible flows around obstacles with distributed block-structured adaptively refined grids.
C++
2
star
27

cut-marks-classification

code for the cut marks classification paper
MATLAB
2
star
28

wccnt

WCCNT is collection of TCL scripts to analyze/visualize trajectories of CNT (carbon nanotubes) and water in VMD
Perl
1
star
29

games

Agents play games on graphs
Python
1
star
30

msode

simple program to evolve microswimmer subject to external magnetic field
C++
1
star
31

tRBC-UQ

Python
1
star
32

CSZ_UQ_22_Korali

A set of examples for the Korali tutorial given at CSZ UQ block course
Python
1
star