/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Version:  OpenFoam-9 (commit f8d11b031)
    \\  /    A nd           | Multiphase-org: A Wikki Brasil project
     \\/     M anipulation  | Version:  v21.12
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
    default                             Euler;
}

gradSchemes
{
    default                             Gauss linear;
    //grad(p_rgh)                         faceLimited pointCellsLeastSquares 1; 
}

divSchemes
{
    default                             none;
    "div\(phi,alpha.*\)"                Gauss upwind; // don't change
    "div\(phir,alpha.*\)"               Gauss upwind; // don't change

    "div\(alphaRhoPhi.*,Yi\)"           Gauss Minmod;
        
    "div\(alphaRhoPhi.*,U.*\)"          Gauss upwind;
    "div\(phi.*,U.*\)"                  Gauss upwind;

    "div\(alphaRhoPhi.*,(h|e).*\)"      Gauss limitedLinear 1;
    "div\(alphaRhoPhi.*,K.*\)"          Gauss limitedLinear 1;
    "div\(alphaRhoPhi.*,\(p\|thermo:rho.*\)\)" Gauss limitedLinear 1;

    "div\(\(\(\(alpha.*\*thermo:rho.*\)*nuEff.*\)\*dev2\(T\(grad\(U.*\)\)\)\)\)" Gauss linear;
}

laplacianSchemes
{
    default                             GaussV linear corrected;
}

interpolationSchemes
{
    default                             linear;
    interpolate(alpha)                  upwind phi;
    interpolate(alpha.oil)              upwind phi.oil;
    interpolate(alpha.water)            upwind phi.water;
    interpolate(alpha.gas)              upwind phi.gas;
    interpolate(alpha.steam)            upwind phi.steam; 
    
    interpolate(S.oil)                  fixedBlended 0.8 Minmod phi.oil upwind phi.oil;
    interpolate(S.water)                fixedBlended 0.8 Minmod phi.water upwind phi.water;
    interpolate(S.gas)                  fixedBlended 0.8 Minmod phi.gas upwind phi.gas;
    interpolate(S.steam)                fixedBlended 0.8 Minmod phi.steam upwind phi.steam; 

    "interpolate\(AU.*\)"               reverseLinear; 
}

snGradSchemes
{
    default                             corrected;
}


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