![]() |
programmer's documentation
|
Functions/Subroutines | |
subroutine | init_cavitation |
Default initialization of the module variables. More... | |
subroutine | cavitation_compute_source_term (pressure, voidf) |
Compute the vaporization source term ![]()
with | |
subroutine | cavitation_update_phys_prop (voidf, coavoi, cobvoi, ivoifl, bvoifl, crom, brom, viscl, imasfl, bmasfl) |
Compute the mixture density, mixture dynamic viscosity and mixture mass flux given the volumetric flux, the void fraction and the reference density and dynamic viscosity ![]() ![]()
. More... | |
subroutine | cavitation_correct_visc_turb (crom, voidf, visct) |
Modify eddy viscosity using the Reboud correction:
. More... | |
subroutine | cavitation_print_mass_budget (crom, croma, dt, imasfl, bmasfl) |
Print the global mixture mass budget:
. More... | |
Variables | |
double precision, save | rol |
reference density of the liquid phase in kg/m3 More... | |
double precision, save | rov |
reference density of the gas phase in kg/m3 More... | |
double precision, save | mul |
reference molecular viscosity of the liquid phase kg/(m s) More... | |
double precision, save | muv |
reference molecular viscosity of the gas phase kg/(m s) More... | |
double precision, save | presat |
reference saturation pressure in kg/(m s2) More... | |
double precision, save | linf |
reference length scale of the flow in meters More... | |
double precision, save | uinf |
reference velocity of the flow in m/s More... | |
double precision, save | cprod |
constant Cprod of the vaporization source term (Merkle model) More... | |
double precision, save | cdest |
constant Cdest of the condensation source term (Merkle model) More... | |
integer, save | icvevm |
activation of the eddy-viscosity correction (Reboud correction) More... | |
double precision, save | mcav |
constant mcav of the eddy-viscosity correction (Reboud correction) More... | |
integer, save | itscvi |
implicitation in pressure of the vaporization/condensation model More... | |
double precision, save | clvfmn |
clipping min. for the void fraction More... | |
double precision, save | clvfmx |
clipping max. for the void fraction More... | |
subroutine cavitation::cavitation_compute_source_term | ( | double precision, dimension(ncelet) | pressure, |
double precision, dimension(ncelet) | voidf | ||
) |
Compute the vaporization source term using the Merkle model:
with empirical constants,
a reference time scale and
the reference saturation pressure.
,
and
may be provided by the user (user function). Note that the r.h.s. of the void fraction transport equation is
.
[in] | pressure | Pressure array |
[in] | voidf | Void fraction array |
subroutine cavitation::cavitation_correct_visc_turb | ( | double precision, dimension(ncelet) | crom, |
double precision, dimension(ncelet) | voidf, | ||
double precision, dimension(ncelet) | visct | ||
) |
Modify eddy viscosity using the Reboud correction:
.
[in] | crom | Density array |
[in] | voidf | Void fraction array |
[in,out] | visct | Turbulent viscosity array |
subroutine cavitation::cavitation_print_mass_budget | ( | double precision, dimension(ncelet) | crom, |
double precision, dimension(ncelet) | croma, | ||
double precision, dimension(ncelet) | dt, | ||
double precision, dimension(nfac) | imasfl, | ||
double precision, dimension(nfabor) | bmasfl | ||
) |
Print the global mixture mass budget:
.
[in] | crom | Density at cell center array at current time step |
[in] | croma | Density at cell center array at previous time step |
[in] | dt | Time step |
[in] | imasfl | Mass flux at internal faces array |
[in] | bmasfl | Mass flux at internal boundary faces array |
subroutine cavitation::cavitation_update_phys_prop | ( | double precision, dimension(ncelet) | voidf, |
double precision, dimension(nfabor) | coavoi, | ||
double precision, dimension(nfabor) | cobvoi, | ||
double precision, dimension(nfac) | ivoifl, | ||
double precision, dimension(nfabor) | bvoifl, | ||
double precision, dimension(ncelet) | crom, | ||
double precision, dimension(nfabor) | brom, | ||
double precision, dimension(ncelet) | viscl, | ||
double precision, dimension(nfac) | imasfl, | ||
double precision, dimension(nfabor) | bmasfl | ||
) |
Compute the mixture density, mixture dynamic viscosity and mixture mass flux given the volumetric flux, the void fraction and the reference density and dynamic viscosity (liquid),
(gas). One have:
.
[in] | voidf | Void fraction array |
[in] | coavoi | Void fraction boundary coefficient array |
[in] | cobvoi | Void fraction boundary coefficient array |
[in] | ivoifl | Volumetric flux at internal faces array |
[in] | bvoifl | Volumetric flux at boundary faces array |
[out] | crom | Density at cell center array |
[out] | brom | Density at boudary faces array |
[out] | viscl | Dynamic viscosity array |
[out] | imasfl | Mass flux at internal faces array |
[out] | bmasfl | Mass flux at internal boundary faces array |
subroutine cavitation::init_cavitation | ( | ) |
Default initialization of the module variables.