programmer's documentation
Modules | Functions/Subroutines | Variables
vof.f90 File Reference

Module for Volume-Of-Fluid method. More...

Modules

module  vof
 

Functions/Subroutines

subroutine init_vof
 Default initialization of the module variables. More...
 
subroutine vof_update_phys_prop (voidf, coavoi, cobvoi, ivoifl, bvoifl, crom, brom, imasfl, bmasfl)
 Compute the mixture density, mixture dynamic viscosity and mixture mass flux given the volumetric flux, the volume fraction and the reference density and dynamic viscosity $ \rho_l, \mu_l $ (liquid), $ \rho_v, \mu_v $ (gas) as follows:

\[ \rho_\celli = \alpha_\celli \rho_v + (1-\alpha_\celli) \rho_l, \]

\[ \mu_\celli = \alpha_\celli \mu_v + (1-\alpha_\celli) \mu_l, \]

\[ \left( \rho\vect{u}\cdot\vect{S} \right)_\ij = \\ \left\lbrace \begin{array}{ll} \rho_\celli (\vect{u}\cdot\vect{S})_\ij &\text{ if } (\vect{u}\cdot\vect{S})_\ij>0, \\ \rho_\cellj (\vect{u}\cdot\vect{S})_\ij &\text{ otherwise }, \end{array} \right. \]

\[ \left( \rho\vect{u}\cdot\vect{S} \right)_\ib = \\ \left\lbrace \begin{array}{ll} \rho_\celli (\vect{u}\cdot\vect{S})_\ib &\text{ if } (\vect{u}\cdot\vect{S})_\ib>0, \\ \rho_b (\vect{u}\cdot\vect{S})_\ib &\text{ otherwise }. \end{array} \right. \]

. More...

 
subroutine vof_print_mass_budget (crom, croma, brom, dt, imasfl_rel, bmasfl_rel)
 Print the global mixture mass budget:

\[ \sum_i\left( |\Omega_i|\dfrac{\alpha_i^n - \alpha_i^{n-1}}{\Delta t} + \sum_{j\in\Face{\celli}}\left(\rho\vect{u}\vect{S}\right)_{ij}^n \right). \]

. More...

 

Variables

double precision, save rho1
 reference density of fluid 1 (kg/m3). By convention, liquid phase for cavitation model. More...
 
double precision, save rho2
 reference density of fluid 2 (kg/m3). By convention, gas phase for cavitation model. More...
 
double precision, save mu1
 reference molecular viscosity of fluid 1 (kg/(m s)) More...
 
double precision, save mu2
 reference molecular viscosity of fluid 2 (kg/(m s)) More...
 
double precision, save clvfmn
 clipping min. for the volume fraction More...
 
double precision, save clvfmx
 clipping max. for the volume fraction More...
 

Detailed Description

Module for Volume-Of-Fluid method.