compressibleVoF supports cavitation fvModels which provide a more physical and controllable approach to cavitation modelling than the simple homogeneous equilibrium approximation used in cavitatingFoam. The tutorials/multiphase/cavitatingFoam/RAS/throttle case has been converted to tutorials/modules/compressibleVoF/throttle which demonstrates how to update cases from cavitatingFoam to compressibleVoF. A cavitatingFoam script is provided to redirect users to update their cases to compressibleVoF.
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
/*--------------------------------*- C++ -*----------------------------------*\
|
|
========= |
|
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
|
\\ / O peration | Website: https://openfoam.org
|
|
\\ / A nd | Version: dev
|
|
\\/ M anipulation |
|
|
\*---------------------------------------------------------------------------*/
|
|
FoamFile
|
|
{
|
|
format ascii;
|
|
class volScalarField;
|
|
object alpha.vapour;
|
|
}
|
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
|
|
|
dimensions [0 0 0 0 0];
|
|
|
|
internalField uniform 0;
|
|
|
|
boundaryField
|
|
{
|
|
inlet
|
|
{
|
|
type fixedValue;
|
|
value $internalField;
|
|
}
|
|
|
|
outlet
|
|
{
|
|
type inletOutlet;
|
|
inletValue $internalField;
|
|
value $internalField;
|
|
}
|
|
|
|
walls
|
|
{
|
|
type zeroGradient;
|
|
}
|
|
|
|
frontBack
|
|
{
|
|
type empty;
|
|
}
|
|
}
|
|
|
|
// ************************************************************************* //
|