CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   openfoam chtMultiRegionSimpleFoam gives rho always equals to 1 (https://www.cfd-online.com/Forums/openfoam/246983-openfoam-chtmultiregionsimplefoam-gives-rho-always-equals-1-a.html)

AlxB January 6, 2023 10:51

openfoam chtMultiRegionSimpleFoam gives rho always equals to 1
 
Hello,
I have an issue while using chtMultiRegionSimpleFoam on a very simple geometry with a 'solid' porous zone in the middle of a pipe where air is passing.

I set the air inlet condition as below:

Code:

U/ inlet
        {
                type                  flowRateInletVelocity;
                massFlowRate    $airMflowRate;
                value                uniform (0 0 0);
                rho                  rho;
                rhoInlet            $rhoInf;
        }

T/ inlet
    {
        type            fixedValue;
        value          uniform $Tairin;
    }

with
rhoInf = 0.36; // kg/m3
airMflowRate = 0.19; // kg/s
Tairin = 890; // K

and the thermophysicalProperties for the air as below:
Code:

thermoType
{
    type            heRhoThermo;
    mixture        pureMixture;
    transport      const;
    thermo          hConst;
    equationOfState perfectGas;
    specie          specie;
    energy          sensibleEnthalpy;
}

when I open the case in paraview I can see rho = 1 everywhere while I expect to see it around 0.36.

What could be wrong here ?

Thanks


All times are GMT -4. The time now is 23:40.