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/)
-   -   <solver> -postProcess -func yPlus (https://www.cfd-online.com/Forums/openfoam-post-processing/240964-solver-postprocess-func-yplus.html)

qutadah.r February 2, 2022 12:19

<solver> -postProcess -func yPlus
 
I am trying to find yPlus for my solver (multiphaseEulerFoam)


multiphaseEulerFoam -postProcess -func yPlus


, however it runs and the gives me following error. Any suggestions?
Thanks!


Code:

--> FOAM FATAL ERROR: 
Unable to find turbulence model in the database
 
    From function bool Foam::functionObjects::yPlus::execute()
    in file yPlus/yPlus.C at line 187.
 
FOAM exiting


HPE February 3, 2022 11:08

https://develop.openfoam.com/Develop.../-/issues/1978

https://www.cfd-online.com/Forums/op...tml#post792996

I think simply it is not available.

Ship Designer February 4, 2022 01:02

Do you have the turbulenceProperties or momentumTransport file in the constant/ folder of your case and is it set up properly?

qutadah.r February 22, 2022 03:35

Quote:

Originally Posted by HPE (Post 821538)


I dont think it is there too, maybe in the future it will be implemented. :)

qutadah.r February 22, 2022 03:36

Quote:

Originally Posted by Ship Designer (Post 821571)
Do you have the turbulenceProperties or momentumTransport file in the constant/ folder of your case and is it set up properly?




I have the momentumTransport.air and momentumTransport.water since im running two-phase simulations, and yes the setup is very correct, and running since a long time.


Note: I am using OpenFOAM- Version 9

saeed sangchooly June 29, 2022 12:59

Quote:

Originally Posted by qutadah.r (Post 822839)
I have the momentumTransport.air and momentumTransport.water since im running two-phase simulations, and yes the setup is very correct, and running since a long time.


Note: I am using OpenFOAM- Version 9

I'm facing the same problem.
haven't you figured it out ?

yi.feng November 3, 2022 10:07

Hi saeed,


This problem is caused by the name of the turbulence model. In single phase solvers and yPlus, the name of the turbulence model has no suffix. So, it's just turbulenceProperties. But in multiphase solvers, the name of the turbulence model dose have a suffix, and becomes turbulenceProperties.air or something else.


Therefore, this problem can be solved by adding the suffix to the name of turbulence model in yPlus.

saeed sangchooly November 25, 2022 17:14

Quote:

Originally Posted by yi.feng (Post 838763)
Hi saeed,


This problem is caused by the name of the turbulence model. In single phase solvers and yPlus, the name of the turbulence model has no suffix. So, it's just turbulenceProperties. But in multiphase solvers, the name of the turbulence model dose have a suffix, and becomes turbulenceProperties.air or something else.


Therefore, this problem can be solved by adding the suffix to the name of turbulence model in yPlus.

tnx. I'll check it out

qutadah.r January 12, 2023 18:12

did it work?

Sachin m August 1, 2023 02:03

I get the same issue now in openfoam 11. The yplus function worked well untill openfoam 10 . Now after the update the above error shoots up


Code:
--> FOAM FATAL ERROR:
Unable to find turbulence model in the database

From function bool Foam::functionObjects::yPlus::execute()
in file yPlus/yPlus.C at line 187.

FOAM exiting


Iam using DTChull tutorial

Elia38 August 8, 2023 10:03

Hi
To all those who had this problem, one solution is to add the following command to the end of the controlDict file:

functions
{
#includeFunc yPlus(phase=water)
}

And then let your problem to solve a few more iterations. It will create a folder called postProcessing and inside which will be the y plus values.
Note that with the above command, calculated y plus will be based on the water phase. You can change it to any phase you want.


All times are GMT -4. The time now is 13:07.