My Project
programmer's documentation
Data setting for the cavitation model

Introduction

The cavitation model is based on a homogeneous mixture model, and a sub-model of the Volume of Fluid model. The physical properties (density and dynamic viscosity) of the mixture depend on a resolved void fraction and constant reference properties of the liquid phase and the gas phase. The void fraction is given by an advection equation with a vaporization/condensation source/sink term. This term is modeled by the Merkle's model. The model also integrates the eddy-viscosity correction of Reboud.

Activation of the model

The module can be activated in cs_user_model in cs_user_parameters.c as show below:

Data structure is defined in VOF model for free surface flow or dispersed flow, Mixture properties and Cavitation model. Cavitation modelling main feature consists in modelling vaporisation/condensation with Merkle model providing source / sink term for the void fraction equation.

Cavitation module specific parameters.

When cavitation model is enabled, specific input parameters can be set in cs_user_parameters in cs_user_parameters.c file as shown below:

Homogeneous mixture physical properties

The reference density, in $ kg/m^3$ , and molecular viscosity, $ kg/(m\cdot s)$, of the liquid phase and the gas phase should be set. For instance:

/* Reference density, in kg/m3, and molecular viscosity, kg/(m s), of the
liquid phase */
vof_param->rho1 = 1.e3;
vof_param->mu1 = 1.e-3;
/* Reference density, in kg/m3, and molecular viscosity, kg/(m s), of the
gas phase */
vof_param->rho2 = 1.;
vof_param->mu2 = 1.e-5;

Other parameters, specific to cavitation are stored in cs_cavitation_parameters_t structure. A pointer to this structure should be retrieved as follows:

Model parameters of the vaporization term (Merkle model)

Merkle's model parameters should be set. Merkle's model is based on a barotropic law for the density (see cavitation.f90). In that way, its principal parameter is the saturation pressure of the fluid, in $ kg/(m\cdot s^2)$. For instance, the saturation pressure of the water at twenty celcius degrees is set below:

cavit_param->presat = 2.e3;

Merkle's model also requires a reference length scale and velocity of the flow. For instance:

cavit_param->linf = 0.1;
cavit_param->uinf = 1.;

These scales are integral scales. For instance, considering the cavitating flow across a foil in a duct, the reference velocity should be the bulk velocity and the reference length scale should be the chord of the foil.

Interaction with turbulence

The mixture eddy-viscosity correction proposed by Reboud can be accounted for as shown below:

cavit_param->icvevm = 1;

Using an eddy-viscosity model (see turbulence options), this option is recommended and is hence a default setting. Of course, this option has no effect for second moment closure or large eddy simulations. Note that the coefficent mcav of the reboud correction (see cavitation.f90) can also be adjusted in the cs_user_parameters function.

Numerical options

Advanced numerical parameters may also be set in this function, if necessary. The concerned variables are listed in Numerical parameters.

cs_vof_parameters_t::rho2
double rho2
Definition: cs_vof.h:88
cs_cavitation_parameters_t::linf
cs_real_t linf
Definition: cs_vof.h:103
cs_cavitation_parameters_t::icvevm
int icvevm
Definition: cs_vof.h:106
cs_vof_parameters_t
VOF model parameters. Void fraction variable tracks fluid 2.
Definition: cs_vof.h:81
cs_cavitation_parameters_t::presat
cs_real_t presat
Definition: cs_vof.h:101
CS_VOF_ENABLED
#define CS_VOF_ENABLED
Definition: cs_vof.h:60
cs_cavitation_parameters_t::uinf
cs_real_t uinf
Definition: cs_vof.h:102
cs_get_glob_cavitation_parameters
cs_cavitation_parameters_t * cs_get_glob_cavitation_parameters(void)
Definition: cs_vof.c:659
cs_vof_parameters_t::rho1
double rho1
Definition: cs_vof.h:86
CS_VOF_MERKLE_MASS_TRANSFER
#define CS_VOF_MERKLE_MASS_TRANSFER
Definition: cs_vof.h:66
cs_vof_parameters_t::mu1
double mu1
Definition: cs_vof.h:90
cs_cavitation_parameters_t
Cavitation model parameters.
Definition: cs_vof.h:99
cs_vof_parameters_t::vof_model
unsigned vof_model
Definition: cs_vof.h:83
cs_get_glob_vof_parameters
cs_vof_parameters_t * cs_get_glob_vof_parameters(void)
Definition: cs_vof.c:366
cs_vof_parameters_t::mu2
double mu2
Definition: cs_vof.h:92