|
[Sponsors] |
Wrong results after Modifying yPlus.C & OP 1.6-ext |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 22, 2013, 08:47 |
Wrong results after Modifying yPlus.C & OP 1.6-ext
|
#1 |
Senior Member
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15 |
Hi Foamers ,
I am using OP 1.6-ext . I understood yPlusRAS have a bug and Actually it calculates Y* instead of Y+ . So I searched in the forums and I didn't find any correct yPlus.C for 1.6-ext . {there was some codes for standard versions}. I modified the yPlus.C for 1.6-ext and after compiling I checked this utility for a case but unfortunately I got zero values for Y+ everywhere in all times. I attached this code . Please anybody help me for finding the problem in this code . I appreciate any help from you. Thanks and best regards, Sasan. P.S. I only changed compressible and incompressible parts and I didn't change two phase part . |
|
September 22, 2013, 10:48 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Dear Sasan
prepare a simple test case which we can examine your code there
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
September 22, 2013, 10:57 |
|
#3 |
Senior Member
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15 |
Hi Dr.Sam
I attached a cavity case that the solver of that is rhoPisoFoam so you should use yPlusRAS -compressible for getting Y+ . Thank you very much best regards sasan |
|
September 22, 2013, 12:56 |
|
#4 | |||
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
Hello Dear Sasan
i feel the code should be like that : Quote:
Quote:
Quote:
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
||||
September 22, 2013, 15:03 |
|
#5 |
Senior Member
Sasan Ghomi
Join Date: Sep 2012
Location: Denmark
Posts: 292
Rep Power: 15 |
I really appreciate your help and your attention replacing RASModel->mu().boundaryField()[patchi] eliminate the problem in the code.I think this formula is good for Y+<5 because when Y+ is lower than 5 So mut is very low comparing to mu . Do you know about order of Y+ in openfoam? is it similar to fluent or not ? Actually I can't set Y+ between 30 and 300 in my case (engine) .In my case the order of Y+ is low. So I want to set it lower than 5 and I want to know this order of Y+ in openfoam for standard wall Functions is acceptable or not ?
Anyway thank you very much Dr.Sam Your help solved the problem. Best regards, Sasan. |
|
September 22, 2013, 15:11 |
|
#6 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
you can define muEff = mu + mut
However as i said before im not turbulent expert , so i dont know
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM - Validation of Results | Ahmed | OpenFOAM Running, Solving & CFD | 10 | May 13, 2018 19:28 |
k-omega-SST model (OF 1.6) - turbulent flat plate | cboss | OpenFOAM Running, Solving & CFD | 25 | August 9, 2016 10:53 |
BuoyantBoussinesqSimpleFoam and axial-symmetric results wrong mass flow | Thomas Baumann | OpenFOAM | 6 | December 21, 2009 11:31 |
why dynamic mesh method give wrong results? | weiyang1980 | Main CFD Forum | 0 | September 22, 2009 22:06 |
[OpenFOAM] 'integrate variables' filter on a polyhedral mesh gives wrong results... | jbf | ParaView | 0 | September 4, 2009 05:08 |