CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   thermophysicalProperties (http://www.cfd-online.com/Forums/openfoam/110815-thermophysicalproperties.html)

samiam1000 December 21, 2012 07:48

thermophysicalProperties
 
Dear All,

how about thermophysicalProperties dictionary?

How can I modify it if - for instance - I'd like to use water instead of air?

Code:

air
{
    specie
    {
        nMoles          1;
        molWeight      28.96;
    }
    thermodynamics
    {
        Cp              1004.5;
        Hf              2.544e+06;
    }
    transport
    {
        mu              1.8e-05;
        Pr              0.7;
    }
}

Could you help? Thanks a lot,
Samuele

Ahmed Khattab December 26, 2012 14:40

Quote:

Originally Posted by samiam1000 (Post 398540)
Dear All,

how about thermophysicalProperties dictionary?

How can I modify it if - for instance - I'd like to use water instead of air?

Code:

air
{
    specie
    {
        nMoles          1;
        molWeight      28.96;
    }
    thermodynamics
    {
        Cp              1004.5;
        Hf              2.544e+06;
    }
    transport
    {
        mu              1.8e-05;
        Pr              0.7;
    }
}

Could you help? Thanks a lot,
Samuele

the best way to copy this file from this tutorial case

tutorials/heatTransfer/chtMultiRegionFoam/multiRegionLiquidHeater/constant/bottomWater/thermophysicalProperties

it is like this
Code:

thermoType
hRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<incompressible>>>>>;

mixture
{
    specie
    {
        nMoles          1;
        molWeight      18;
    }
    equationOfState
    {
        rho            1000;
    }
    thermodynamics
    {
        Cp              4181;
        Hf              0;
    }
    transport
    {
        mu              959e-6;
        Pr              6.62;
    }
}

happy Foaming :)


All times are GMT -4. The time now is 22:48.