Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
two-phase.h File Reference
#include "vof.h"
#include "two-phase-generic.h"
Include dependency graph for two-phase.h:

Go to the source code of this file.

Variables

scalar f []
 
scalarinterfaces = {f}
 The height functions are stored in the vector field associated with each VOF tracer.
 

Variable Documentation

◆ f

scalar f[]

Two-phase interfacial flows

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

  1. The densities and dynamic viscosities for fluid 1 and 2 are rho1, mu1*, rho2, mu2, respectively.

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().

◆ interfaces

scalar * interfaces = {f}

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().