CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   yPlus for cavitatingFoam (https://www.cfd-online.com/Forums/openfoam-post-processing/172871-yplus-cavitatingfoam.html)

SPH_CFD June 8, 2016 06:40

yPlus for cavitatingFoam
 
Dear all

I am running a case using cavitatingFoam. However, I have a problem when I want to check yPlus. It is always "command not found". Do you know some ways to get this value?
Thank you in advance.

Lorena2fdez June 8, 2016 08:07

Quote:

Originally Posted by SPH_CFD (Post 603872)
Dear all

I am running a case using cavitatingFoam. However, I have a problem when I want to check yPlus. It is always "command not found". Do you know some ways to get this value?
Thank you in advance.

You need to use the comands "yPlusRAS" or "yPlusLES". Use "yPlusRAS --help" for their options. Look at simulationType in turbulenceProperties for know which use.

Best regards,
Lorena

SPH_CFD June 8, 2016 10:54

Quote:

Originally Posted by Lorena2fdez (Post 603899)
You need to use the comands "yPlusRAS" or "yPlusLES". Use "yPlusRAS --help" for their options. Look at simulationType in turbulenceProperties for know which use.

Best regards,
Lorena

Thank you for your answer. However, I cannot perform that command and get "command not found". I do not know that yPlusRas is possible for mixture model in OF or not?
I see here for openFOAM 1.5. They say that yPlusRAS only exist for singlephase.
http://www.cfd-online.com/Forums/ope...-yplusras.html

Is it true?

Lorena2fdez June 8, 2016 12:10

Quote:

Originally Posted by SPH_CFD (Post 603940)
Thank you for your answer. However, I cannot perform that command and get "command not found". I do not know that yPlusRas is possible for mixture model in OF or not?
I see here for openFOAM 1.5. They say that yPlusRAS only exist for singlephase.
http://www.cfd-online.com/Forums/ope...-yplusras.html

Is it true?

If you loaded correctly OpenFOAM your wouldn't have the problem "command not found". I use OpenFOAM-2.3.0 and the comand "yPlusRAS" is recognized.

Generally there's a problem with the function yPlusRAS. It say that don't read the value of nu. You need to change the constant/transportProperties and write in the initial lines the value of nu. Remember restart the file for run the case. For the tutorial example of cavitatingFoam:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.3.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

mul            mul [ 1 -1 -1 0 0 ] 0.0065;

muv            muv [ 1 -1 -1 0 0 ] 5.953e-06;

## Only for yPlusRAS ##
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 7.831e-06;
## Only for yPlusRAS ##

phases (vapour water);

water
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 7.831e-06;
    rho            rho [ 1 -3 0 0 0 0 0 ] 830;
    CrossPowerLawCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        m              m [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }

    BirdCarreauCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        k              k [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }
}

vapour
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 4.252e-05;
    rho            rho [ 1 -3 0 0 0 0 0 ] 0.14;
    CrossPowerLawCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        m              m [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }

    BirdCarreauCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        k              k [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }
}


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

The idea of the problem of yPlusRAS is like the function don't read transportProperties after "phases (vapour water);" and it doesn't get the respective values.

Best regards,
Lorena

SPH_CFD June 9, 2016 13:14

Quote:

Originally Posted by Lorena2fdez (Post 603958)
If you loaded correctly OpenFOAM your wouldn't have the problem "command not found". I use OpenFOAM-2.3.0 and the comand "yPlusRAS" is recognized.

Generally there's a problem with the function yPlusRAS. It say that don't read the value of nu. You need to change the constant/transportProperties and write in the initial lines the value of nu. Remember restart the file for run the case. For the tutorial example of cavitatingFoam:

Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.3.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    location    "constant";
    object      transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

mul            mul [ 1 -1 -1 0 0 ] 0.0065;

muv            muv [ 1 -1 -1 0 0 ] 5.953e-06;

## Only for yPlusRAS ##
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 7.831e-06;
## Only for yPlusRAS ##

phases (vapour water);

water
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 7.831e-06;
    rho            rho [ 1 -3 0 0 0 0 0 ] 830;
    CrossPowerLawCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        m              m [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }

    BirdCarreauCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        k              k [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }
}

vapour
{
    transportModel  Newtonian;
    nu              nu [ 0 2 -1 0 0 0 0 ] 4.252e-05;
    rho            rho [ 1 -3 0 0 0 0 0 ] 0.14;
    CrossPowerLawCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        m              m [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }

    BirdCarreauCoeffs
    {
        nu0            nu0 [ 0 2 -1 0 0 0 0 ] -999;
        nuInf          nuInf [ 0 2 -1 0 0 0 0 ] -999;
        k              k [ 0 0 1 0 0 0 0 ] -999;
        n              n [ 0 0 0 0 0 0 0 ] -999;
    }
}


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

The idea of the problem of yPlusRAS is like the function don't read transportProperties after "phases (vapour water);" and it doesn't get the respective values.

Best regards,
Lorena

Hi Lorena. Thank you so much !!! it works !!!


All times are GMT -4. The time now is 12:29.