This library numerically simulates the motion of free surfaces and deformable droplets in two- and three-dimensional Cartesian domains using the finite-difference and volume-of-fluid methods. It is built on top of SimpleNSSolver
.
This solver shares the same dependencies as SimpleNSSolver
.
-
Prepare the workspace
mkdir -p /path/to/your/directory cd /path/to/your/directory
-
Clone the repository
git clone --recurse-submodules https://github.com/NaokiHori/SimpleVOFSolver cd SimpleVOFSolver
-
Set initial conditions
Python3
is used to initialize the flow fields conveniently. You can provideNPY
files differently underinitial_condition/output/
.cd initial_condition make output bash exec.sh cd ..
-
Build the solver
make output make all
-
Run the simulation
bash exec.sh
A brief overview of the free-surface treatment is available here. For additional details, please refer to the SimpleNSSolver
documentation.
The volume-of-fluid method implemented in this solver is based on the THINC/QQ scheme
with some modifications.