|
[Sponsors] |
October 10, 2014, 15:06 |
PatchI VS patchi
|
#1 |
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
Hello,
I was reading the implementation of the wall function on Incompressible RAS models and i noticed that some of them call the faceI and others facei. What is the difference? I couldn't fing the file where they are defined. EDIT: btw what does this mean wfpsf.? |
|
October 11, 2014, 11:23 |
|
#2 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings ArathoN,
Quote:
Some somewhat clear examples are presented here: http://www.cfd-online.com/Forums/ope...tml#post375296 - start reading from post #4 till the end of the thread. Without any context, it could mean anything. With a quick search using Github's search function: https://github.com/OpenFOAM/OpenFOAM...search?q=wfpsf - I found this when I clicked in the first entry: Quote:
Bruno
__________________
|
|||
October 16, 2014, 04:15 |
|
#3 | ||
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
Quote:
Thank you very much, I thought that they could be the same thing seeing that they were defined similarly but i wanted to be sure. I think the hardest part in reading the code is understanding and finding out the meaning of the variables (some are really obscure) even though it's really an interesting reading, very illuminating especially after 5 year of theoretical studying with almost no practical involvement (dunno if this happens only in the unis in Italy or if it's the same worldwide, here our studies are heavily focused in the theories and almost nothing is done about programming only a bit of fortran and c) Quote:
I hope you can clear some other doubts that I had while reading the code, if possible obviously i don't want to abuse your kindness: - First I'm having a problem understanding all the code related to the meshes do you have in mind some useful textbook that would help me here, i've read somewhere that "Handbook of Grid Generation - Joe F. Thompson" might be useful but if can confirm it. I don't want to read an entire book for nothing. -reading a lot of thread in this forum i found different opinion about the utility yPusRAS then i decided to read the code about how it is calculated and i found out that it isn't true that il always calculate the yStar (as stated in almost all the thread i read) but it depends with what wall Function it was used on "/0/nut", because i noticed the utility does nothing but call the function "yPlus" from "nutWallFunctionFvPatchScalarField". Now reading the other WFs I noticed that they all are linking by this one "nutWallFunctionFvPatchScalarField"in fact the latter doesn't calculate directly the yPlus or nut but if depends on the real WF defined in the nut file. So am i right or not? and what does happen if i define nut in wall as "nutWallFunction"? -Lastly do you have any report or textbook about the yStar variable, i know how it is derived and the assumption but i didn't find any textbook about this variable and especially it's relation to ystar. I understood that they have a comparable behavior in the log layer knowing that the assumption for the ystar formulation is based on the log layer but nothing else. I really hope that you or somelse could shed some light about these doubts a searched into this forum and the web with scarce info. |
|||
October 18, 2014, 17:52 |
|
#4 | |||||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
There is that Chinese proverb: Quote:
Quote:
Quote:
The y* vs y+ issue is a bit confusing, because it can depend on the software being used. If I remember correctly, y+ used in OpenFOAM... better yet, read this post: http://www.cfd-online.com/Forums/ope...tml#post471818 - post #27 In essence, if I remember correctly, the current yPlus implemented in OpenFOAM is in accordance with the description on the wiki page mentioned on that post. I can't remember when and if it was ever changed in OpenFOAM As for LES vs RAS: in OpenFOAM is essentially structured the same way. As for "mu" vs "nu"... it's addressed in this bug report, related to the post I mentioned above: http://www.openfoam.org/mantisbt/view.php?id=1141 Quote:
Code:
ystar fluent Code:
Fluent users guide Looking a bit more into this...
Bruno |
||||||
October 20, 2014, 09:19 |
|
#5 | |||
Senior Member
ArathoN
Join Date: Jul 2011
Posts: 137
Rep Power: 16 |
First thank you for continuing to answer me, i really like such discussions i always improve greatly my knowledge.
Quote:
Quote:
Quote:
Thanks for the links finally i understood the relation between yStar and yPlus, I've found their definition but not their link that was the definition of uTau in an "Equilibrium turbulent boundary layer". From what i understood the yPlusRAS will only call the function yPLus of the specified wallFunction (they are all linked to nutWallFunctionFvPatchScalarField) Code:
const wallFunctionPatchField& mutPw = dynamic_cast<const wallFunctionPatchField&>(mutPatches[patchi]); yPlus.boundaryField()[patchi] = mutPw.yPlus(); const scalarField& Yp = yPlus.boundaryField()[patchi]; nutkWallFunction with yStar Code:
return pow025(Cmu_)*y*sqrt(kwc)/nuw; Code:
return y*sqrt(nuw*mag(Uw.snGrad()))/nuw; nutUSpaldingWallFunction with YPLus Code:
return y*calcUTau(mag(Uw.snGrad()))/nuw; IMO this is really messy and i don't know why they complicated it so much, maybe i'm missing something crucial. PS I started reading the LES models and i'm having difficulties with the delta definitions. In the books I've read there was almost nothing about the choice of delta (except van driest damping). do you use some papers/textbook or is it an iterative process to see which delta and its coefficients are the best to suit the simulation? I understood a bit the types of delta but dunno how to choose the coefficient. |
||||
January 25, 2015, 15:01 |
|
#6 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi ArathoN,
I've finally managed to look into this again. I see that you've continued your investigations into this, for example on this thread: http://www.cfd-online.com/Forums/ope...-re-model.html As for the questions regarding the various ways of calculating y+ in OpenFOAM: it's precisely because each model needs a different way of calculation. Some use estimations based on the turbulence model (k and epsilon, for example), while others rely on the laminar approach; all because it depends on the zone of operations for which each model was designed to work in. As for the reason OpenFOAM uses "nutWallFunctions": as far as I can understand, it's for a few major reasons:
I've only recently had to look a bit more deep into this and I haven't managed to figure out all of the tiny details that OpenFOAM relies on. All I can figure out is that it does make sense, but it's difference from many other CFD implementations. Best regards, Bruno |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[openSmoke] libOpenSMOKE | Tobi | OpenFOAM Community Contributions | 562 | January 25, 2023 10:21 |
label patchi and method facecells() | maybee | OpenFOAM Programming & Development | 0 | December 8, 2013 08:14 |
solidWallHeatTransfer - calculation of Cp(Tw, patchi) in basic Solid | klio | OpenFOAM Programming & Development | 0 | May 29, 2012 06:08 |