|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Variables | |
| scalar | f [] |
| scalar * | interfaces = {f} |
| The height functions are stored in the vector field associated with each VOF tracer. | |
| scalar f[] |
This file helps setup simulations for flows of two fluids separated by an interface (i.e. immiscible fluids). It is typically used in combination with a Navier–Stokes solver.
The interface between the fluids is tracked with a Volume-Of-Fluid method. The volume fraction in fluid 1 is \(f=1\) and \(f=0\) in fluid
Definition at line 17 of file two-phase.h.
Referenced by event_cleanup(), event_defaults(), event_end_timestep(), event_init(), event_properties(), event_vof(), and fE_refine().
The height functions are stored in the vector field associated with each VOF tracer.
We will need basic functions for volume fraction computations.
They need to be updated every time the VOF field changes. For the centered Navier-Stokes solver, this means after initialisation and after VOF advection.
Note that strictly speaking this should be done for each sweep of the direction-split VOF advection, which we do not do here i.e. we use the normal at the beginning of the timestep and assume it is constant during each sweep. This seems to work fine.
Definition at line 17 of file two-phase.h.
Referenced by event_tracer_advection(), and event_vof().