Skip to content

Incompressible non-uniform density turbulent model for VOF not compatible with multiphaseStabilizedTurbulence fvOption

v2012 includes an incompressible non-uniform density turbulent model for VOF by adding

density variable;

in the turbulenceProperties dictionary (https://openfoam.com/releases/openfoam-v2012/solver-and-physics.php#solver-and-physics-multiphase-rho-turbulence).

This is not compatible with the multiphaseStabilizedTurbulence fvOption (https://openfoam.com/releases/openfoam-v1912/solver-and-physics.php#solver-and-physics-vof-turbulence-stabilization).

Modify damBreak tutorial (tutorials/multiphase/interFoam/RAS/damBreak) by adding system/fvOptions

/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  v2012                                 |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      fvOptions;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

multiphaseStabilizedTurbulence1
{
    type            multiphaseStabilizedTurbulence;
    active          yes;

    multiphaseStabilizedTurbulenceCoeffs
    {
        // Optional coefficients
        lambda2         0.1;   // A value of 0 sets the nut correction to 0
        Cmu             0.09;  // from k-epsilon model
        C               1.51;  // model coefficient from k-omega model
        alpha           1.36;  // 1/Prt
    }
}

// ************************************************************************* //

Error message:

Creating finite volume options from "system/fvOptions"

Selecting finite volume options type multiphaseStabilizedTurbulence
    Source: multiphaseStabilizedTurbulence1


--> FOAM FATAL ERROR: (openfoam-2012)
Unable to find incompressible turbulence model

    From Foam::fv::multiphaseStabilizedTurbulence::multiphaseStabilizedTurbulence(const Foam::word&, const Foam::word&, const Foam::dictionary&, const Foam::fvMesh&)
    in file sources/derived/multiphaseStabilizedTurbulence/multiphaseStabilizedTurbulence.C at line 121.

FOAM exiting
Edited by Brecht Devolder