|
Basilisk CFD
Adaptive Cartesian mesh PDE framework
|
Go to the source code of this file.
Functions | |
| void | levelset_to_vof (scalar d, scalar f) |
| void | event_init (void) |
| The initial volume fraction is computed from the initial distance field, which must be initialised by the user. | |
| void | event_properties (void) |
| The distance function is reinitialised at each timestep. | |
Variables | |
| scalar | d [] |
| scalar | f [] |
| scalar * | tracers = {d} |
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list). | |
The initial volume fraction is computed from the initial distance field, which must be initialised by the user.
Event: init (i = 0)
Definition at line 43 of file two-phase-levelset.h.
References d, f, and levelset_to_vof().
The distance function is reinitialised at each timestep.
Event: properties (i++)
Definition at line 54 of file two-phase-levelset.h.
References d, f, levelset_to_vof(), redistance(), and x.
Definition at line 30 of file two-phase-levelset.h.
References _i, d, f, fractions(), phi, and x.
Referenced by event_init(), and event_properties().
| scalar d[] |
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 levelset method. The signed distance to the interface is tracked by d. The volume fraction field f is computed from the signed distance.
Note that the coupled VOF and levelset solver should be prefered as it ensures much better mass conservation.
This solver can be combined with the integral formulation of surface tension.
The volume fraction in fluid 1 is \(f=1\) and \(f=0\) in fluid
Definition at line 26 of file two-phase-levelset.h.
Referenced by event_init(), event_properties(), and levelset_to_vof().
| scalar f[] |
Definition at line 26 of file two-phase-levelset.h.
Referenced by event_init(), event_properties(), and levelset_to_vof().
Here we set the gradient functions for each tracer (as defined in the user-provided tracers list).
See Al Saud et al., 2018 and Popinet & Zaleski, 1999 for details.
The surface tension field \(\sigma\) will be associated to each levelset tracer. This is done easily by adding the following field attributes.
Definition at line 26 of file two-phase-levelset.h.