I am simulating a 2 phase cavitating flow problem and would like to check the yplus value of my grid. But, when i execute the standard yPlusRAS option available in OpenFAOM v1.5 i receive an error message:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create mesh for time = 0
Time = 0
Reading field U
Reading/calculating face flux field phi
keyword transportModel is undefined in dictionary "/usr2/daten/enallap/ansa/ventil.simple.dlay/constant/transportProperties"
file: /usr2/daten/enallap/ansa/ventil.simple.dlay/constant/transportProperties from line 17 to line 65.
From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.
i am attaching my transportPropertiesdict file for reference.
i think yPlusRAS is only valid for singlephase flow. this means that your transportProperties-dict is not appropriate for this app.
maybe you could try to define another dict.
I'm not sure if you are still interested but when I had the same problem with 2-phase-flow I modified the yPlusRas tool for OF-1.5. Now it only checks the liquid phase but normally that's the interesting one in your cavitation case.
If you want I can upload it here. But it's no big thing, it just reads the values from another sub-dictionary....
Can you please upload your modified yPlusRAS tool that you created?
here is the little tool. But please take care since it only uses the first phase mentioned in the transportProperties file.
Hope the tool helps you a bit,
thanks for the post julius, it was really helpful. do you by any chance know how to compute forces in two phase flow?
just look into Mark Couwenbergs solver "shipFoam" he presented in the forum some time ago.
there you find the necessary files with the integrations over the surfaces and everything. For example in the first revision of "shipFoam" there is the "hullforces.H" which calculates the forces.
For 2-phase flow no explicit gamma (alpha1) term is necessary because the density is already implemented in the pressure term.
Good day to everyone,
Could anyone please take a look how to modify the tool for use with OpenFOAM 1.7? I tried to tackle it on my own, but no success. I'm not sure where to go from there.
Any help is highly appreciated.
Have a great day everyone!
|All times are GMT -4. The time now is 17:11.|