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 calculation:Fatal Error saying turbulence model not found (https://www.cfd-online.com/Forums/openfoam-post-processing/232709-yplus-calculation-fatal-error-saying-turbulence-model-not-found.html)

atul1018 December 27, 2020 05:57

yPlus calculation:Fatal Error saying turbulence model not found
 
Hello Foamers


I am doing LES simulation (Smagorinsky model with VanDriest delta function) of BFS case. I wanted to calculate yPlus values as per provided mesh resolution using runtime postprocessing. In doing so, I included following in controlDict:


Code:

functions
{
    #includeFunc  residuals

    yPlus1
    {
        type            yPlus;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
    }
}


The simulation runs successful but it doesn't calculate yPluss and gives the following error:



Code:

--> FOAM Warning :
    From function virtual bool Foam::functionObjects::yPlus::execute()
    in file yPlus/yPlus.C at line 178
    Unable to find turbulence model in the database: yPlus will not be calculated
yPlus yPlus1 write:
    writing field yPlus
    patch walls y+ : min = 0, max = 0, average = 0
fieldAverage fieldAverage1 write:
    Calculating averages

    Writing average fields

End

Finalising parallel run


I also tried to calculate yPlus after the simulation has completed instead of runtime post processing but it gives same Fatal Error. Please let me know if i can fix this issue somehow.


PS: I am using OpenFOAM-v-1912 and running the simulation in parallel.


Best Regards
Atul Jaiswal

ms.hashempour July 12, 2021 07:47

Quote:

Originally Posted by atul1018 (Post 791673)
Hello Foamers


I am doing LES simulation (Smagorinsky model with VanDriest delta function) of BFS case. I wanted to calculate yPlus values as per provided mesh resolution using runtime postprocessing. In doing so, I included following in controlDict:


Code:

functions
{
    #includeFunc  residuals

    yPlus1
    {
        type            yPlus;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
    }
}


The simulation runs successful but it doesn't calculate yPluss and gives the following error:



Code:

--> FOAM Warning :
    From function virtual bool Foam::functionObjects::yPlus::execute()
    in file yPlus/yPlus.C at line 178
    Unable to find turbulence model in the database: yPlus will not be calculated
yPlus yPlus1 write:
    writing field yPlus
    patch walls y+ : min = 0, max = 0, average = 0
fieldAverage fieldAverage1 write:
    Calculating averages

    Writing average fields

End

Finalising parallel run


I also tried to calculate yPlus after the simulation has completed instead of runtime post processing but it gives same Fatal Error. Please let me know if i can fix this issue somehow.


PS: I am using OpenFOAM-v-1912 and running the simulation in parallel.


Best Regards
Atul Jaiswal



Just follow this terminal code (as an example:) )
simpleFoam -postProcess -func yPlus

saeed sangchooly June 29, 2022 10:09

Quote:

Originally Posted by atul1018 (Post 791673)
Hello Foamers


I am doing LES simulation (Smagorinsky model with VanDriest delta function) of BFS case. I wanted to calculate yPlus values as per provided mesh resolution using runtime postprocessing. In doing so, I included following in controlDict:


Code:

functions
{
    #includeFunc  residuals

    yPlus1
    {
        type            yPlus;
        libs            (fieldFunctionObjects);
        writeControl    writeTime;
    }
}


The simulation runs successful but it doesn't calculate yPluss and gives the following error:



Code:

--> FOAM Warning :
    From function virtual bool Foam::functionObjects::yPlus::execute()
    in file yPlus/yPlus.C at line 178
    Unable to find turbulence model in the database: yPlus will not be calculated
yPlus yPlus1 write:
    writing field yPlus
    patch walls y+ : min = 0, max = 0, average = 0
fieldAverage fieldAverage1 write:
    Calculating averages

    Writing average fields

End

Finalising parallel run


I also tried to calculate yPlus after the simulation has completed instead of runtime post processing but it gives same Fatal Error. Please let me know if i can fix this issue somehow.


PS: I am using OpenFOAM-v-1912 and running the simulation in parallel.


Best Regards
Atul Jaiswal

I also have this problem with multiphaseEulerFoam solver. have you figured it out?

atul1018 July 4, 2022 05:45

Hi

I was able to solve this problem but I dont remember exactly how. As far as I recall, changing the write control to outputTime solved the issue. So the following code should work:

yPlus1
{

type yPlus;
libs (fieldFunctionObjects);
writeControl outputTime;
writeInterval 1;

}

SAIKRISHNA N July 12, 2022 05:32

Quote:

Originally Posted by saeed sangchooly (Post 830694)
I also have this problem with multiphaseEulerFoam solver. have you figured it out?


I am also facing the same issue with multiphaseEulerFoam. Please let me know if anyone has a solution..

Major0412 October 13, 2022 07:27

As ms.hashempour said, you must add your solver name, for example:
yourSolverName -postProcess -func yPlus

Gavin Tall November 23, 2022 07:55

Quote:

Originally Posted by SAIKRISHNA N (Post 831517)
I am also facing the same issue with multiphaseEulerFoam. Please let me know if anyone has a solution..

Have you solved this problem? I now face the same problem.
I try to use pisoFoam and interFoam to calculate y+ :add a FOyPlus dictionary file to the system, and include the functions in controlDict, which can be calculated normally;
But it can't be calculated in reactingTwoPhaseEulerFoam.


All times are GMT -4. The time now is 09:24.