compressibleVoF: Replaced twoPhaseChangeModel with the VoFCavitation fvModel

Replacing the specific twoPhaseChangeModel with a consistent and general fvModel
interface will support not just cavitation using the new compressible
VoFCavitation fvModel but also other phase-change and interface manipulation
models in the future and is easier to use for case-specific and other user
customisation.

Class
    Foam::fv::compressible::VoFCavitation

Description
    Cavitation fvModel

Usage
    Example usage:
    \verbatim
    VoFCavitation
    {
        type    VoFCavitation;

        libs    ("libcompressibleVoFCavitation.so");

        model   SchnerrSauer;

        KunzCoeffs
        {
            pSat    2300;   // Saturation pressure

            UInf    20.0;
            tInf    0.005; // L = 0.1 m
            Cc      1000;
            Cv      1000;
        }

        MerkleCoeffs
        {
            pSat    2300;   // Saturation pressure

            UInf    20.0;
            tInf    0.005;  // L = 0.1 m
            Cc      80;
            Cv      1e-03;
        }

        SchnerrSauerCoeffs
        {
            pSat    2300;   // Saturation pressure

            n       1.6e+13;
            dNuc    2.0e-06;
            Cc      1;
            Cv      1;
        }
    }
    \endverbatim

The cavitating ballValve tutorial has been updated to use the new VoFCavitation
fvModel.
This commit is contained in:
Henry Weller
2022-09-28 13:02:47 +01:00
parent d3df91a5eb
commit 9dc91eb479
58 changed files with 667 additions and 888 deletions

View File

@ -9,21 +9,26 @@ FoamFile
{
format ascii;
class dictionary;
object phaseChangeProperties;
location "constant";
object fvModels;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phaseChangeModel SchnerrSauer;
pSat 2364;
SchnerrSauerCoeffs
VoFCavitation
{
n 1.6E+13;
dNuc 2.0E-06;
Cc 1.0;
Cv 1.0;
type VoFCavitation;
libs ("libcompressibleVoFCavitation.so");
model SchnerrSauer;
pSat 2300;
n 1.6e+13;
dNuc 2.0e-06;
Cc 1;
Cv 1;
}
// ************************************************************************* //
//************************************************************************* //