yPlusLES: compressible flow
Hi All ,
I am new to openFOAM. I just finished a compressible LES with OpenFOAM. When I want to use yPlusLES to calculate the y+ in my case, I got the messege to provide nuSGS. I think this quantity is only for incompressible flows. Could anyone know how to calculate the y+ in compressible flows? Thank you so much! |
Hi openfoammaofnepo,
I managed to remember two details:
Bruno |
Thank you wyldckat!
I am using OF211, but this problem has been fixed in OF210 maybe. Quote:
|
Hi openfoammaofnepo,
Quote:
As for yPlusLES application itself, it has not yet been fixed to use compressible, not even in OpenFOAM 2.2.x, which is the very latest bug fix version of OpenFOAM. Best regards, Bruno |
Thank you wyldckat.
If I would like to calculate yPlus for compressible LES using OF211, how can I do it? Could you please give me some hints? thanks. Quote:
|
Hi openfoammaofnepo,
I've made a note to look into this next week. In the mean time, have a look into the source code of the "yPlusLES" application in your own OpenFOAM version. You can find it by running this command: Code:
find $FOAM_UTILITIES -name yPlusLES As to modifying an OpenFOAM application, check this tutorial: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam Best regards, Bruno |
Hi openfoammaofnepo,
Done! I've created the "yPlusLESWCompressible" utility for OpenFOAM 2.2.x and then back-ported to 2.1.x. Simply follow the instructions given here https://github.com/wyldckat/yPlusLES...swcompressible Hopefully everything will work as intended. At least the tests I've made seemed to indicate that everything was OK. Best regards, Bruno |
Can not get some post processing
Good afternoon,
I tried to get the y+ or the wall shear stress, in order to put some probes for some tests, but unsuccessfully. The simulation I did, was compressible LES, and the OpenFOAM version I am using is the 2.0.1 (maybe where the problem is). I tried to compute y+ with the command yPlusLES but it gave me this error: Code:
Is it possible to get what I need, without running the simulation again ? And if so, will I need the function object ? (Doing an upgrade in my version will be complicated.) |
Greetings guilha,
Try following the latest instructions given here: https://github.com/wyldckat/yPlusLES...ble/tree/of210 Best regards, Bruno |
Hi Bruno,
Thank you very much for your help. When I compiled it using wmake yPlusLESWCompressible, I got the following information: make: *** No rule to make target `yPlusLESWCompressible'. Stop. Do I need to add something in the Make folder? Thank you very much. Quote:
|
|
Hi wyldckat,
Sorry to bother you. Could you please give me some suggestions about how to compile the yPlusLESWCompressible package? When I compiled it I had the problem I mentioned in the last thread. I am not very familiar with C++ compilation. Thank you and happy new year! Quote:
|
Greetings to all!
@owayz: :eek: I had no idea someone else had already provided a compressible y+ for LES! @openfoammaofnepo: Quote:
Bruno |
Hi,
1, The install procedure is from the following: https://github.com/wyldckat/yPlusLES...swcompressible I put the install package in the folder: /users/openfoammaofnepo/OpenFOAM/openfoammaofnepo-2.1.1/utilities/yPlusLESWCompressible-of21x/yPlusLESWCompressible 2, The OF version is 2.1.1 3, the Linux version is Distributor ID: ScientificSL Description: Scientific Linux SL release 5.5 (Boron) Release: 5.5 4, The complete output info is (after inputting the command wmake yPlusLESWCompressible) make: *** No rule to make target `yPlusLESWCompressible'. Stop. Thank you very much. Quote:
|
Hi openfoammaofnepo,
Quote:
Whoops... and I forgot to write the command for unzipping it :( That explains why you didn't perfectly follow the instructions :( Sorry about that. OK, the exact instructions should be: Code:
wget "https://github.com/wyldckat/yPlusLESWCompressible/archive/of21x.zip" -O yPlusLESWCompressible.zip You have two possible solutions:
Bruno |
Hi wyldckat, successfully installed. Thanks.
Quote:
|
Hi wyldckat,
When we run wmake in the folder yPlusLESWCompressible-of21x/yPlusLESWCompressible, which file or executable is run for this command? Thank you very much. |
Hi openfoammaofnepo,
Quote:
Best regards, Bruno |
Dear Bruno,
When I run yPlusLESWCompressible -compressible, I found that there is an error information about my thermodynamics option: Code:
Selecting thermodynamics package hsPsiMixtureThermo<singleStepReactingMixture<gasThermoPhysics>> |
Hi openfoammaofnepo,
I need more specific information on how you have configured the "thermodynamicProperties" file and how you load your customized thermodynamics library. Best regards, Bruno |
Hi wyldckat,
Thank you very much for your help. For example, in the following tutorial: Code:
OpenFOAM/openfoammaofnepo-2.1.1/run/tutorials/combustion/XiFoam/les/pitzDaily3D Code:
yPlusLESWCompressible -time 0.0002 -compressible Code:
/*---------------------------------------------------------------------------*\ Quote:
|
Hi openfoammaofnepo,
Thanks for the detailed description! It a lot easier to reproduce the same error! I've updated the branch "of21x" on the repository. Follow the download and installation instructions once again from the updated page: https://github.com/wyldckat/yPlusLES...ble/tree/of21x The new utility is named "yPlusLESWCompressibleNCombustion", so try it instead of the utility "yPlusLESWCompressible". Best regards, Bruno |
Thank you so much, Bruno.
That can be used now. But it is specific for the thermophysical options. Thank you. |
Dear wyldckat,
Thank you so much for your help. In the utilities you upload recently: yPlusLESWCompressibleNCombustion In the following source files: Code:
yPlusLESWCompressibleNCombustion Code:
yPlus.boundaryField()[patchi] = Thank you so much. Quote:
|
Hi openfoammaofnepo,
Quote:
So my question is: what is the reasoning you've followed for making that suggestion? In addition: are you using the "-compressible" option for running the application? Best regards, Bruno |
Hello,
Thanks. I just followed the definition of yPlus like Code:
http://www.cfd-online.com/Wiki/Dimensionless_wall_distance_(y_plus) I use the option '-compressible' and it is OK. Thank you for your sharing. |
Hi openfoammaofnepo,
OK, let's see how I can manage LaTeX equations here on the forum... based on these wiki pages:
In contrast, the equation present on the utility is this (if I'm not mistaken): :) Yes, you are correct!!! It's missing a inside the square root! Feel free to report this at the official bug tracker: http://www.openfoam.org/bugs/ - since this problem is present in the original code of the function object "yPlusLES". If you don't want to report this yourself, I can report this for you. Best regards, Bruno |
Dear Bruno,
Thank you for your help. What do you mean by "original code"? We do not have the original compressible LES yPlus. In the incompressible version, the equation should be correct. If it is convenient for you, please help us to report this to them. I think we need to correct. Although the values of yPlus will not have big difference, however, conceptually it is not correct without rho. Thank you for your help. Best, op**po |
Hi openfoammaofnepo,
It's available as a function object, as explained here http://www.openfoam.org/version2.2.0...processing.php - and I quote: Quote:
OK, I'll report this in a minute and edit this post indicating the bug report. edit: Reported here: http://www.openfoam.org/mantisbt/view.php?id=1141 - I'll wait for them to fix the issue and then I'll propagate the fix to my repository. Best regards, Bruno |
OK, many thanks!
I always use OF211 and so I did not find that. Thank you for your help! Have a nice Sunday! |
Besides, just for curiosity, how did you input the equations in the thread? ......simple questions for you.
|
Quote:
There you'll find this thread: http://www.cfd-online.com/Forums/sit...ne-forums.html |
Got it, many thanks!!
|
Hello Bruno,
Any update from the bug report? Was it indeed a bug or just any other saying? Just for my knowledge. Thank you so much. |
Hi openfoammaofnepo,
Quote:
Best regards, Bruno |
Hi openfoammaofnepo,
I've done some more homework and prepared 2 test cases that solve pretty much the same simulation, but using compressible vs incompressible variants of the same solver, namely pimpleFoam vs rhoPimpleFoam. The cases are provided in the bug report and also in my repository. The conclusion is that I do believe that you are right in affirming that "rho" is missing inside the square root and these two test cases seem to prove that. Therefore, I've applied this fix to the source code in the utilities at my repository. Best regards, Bruno |
Thank you for your information, Bruno!
Have a nice day! |
Well, the bug fix has finally been implemented in 2.2.x: http://www.openfoam.org/mantisbt/view.php?id=1141
The commit can be viewed here: https://github.com/OpenFOAM/OpenFOAM...17f4ec1bde1348 The strange detail is that Henry chose to implemented the division by "rho" in both occurrences of "mu", instead of using the single multiplication by "rho" inside the square root. There are two possibilities for this:
|
Thank you, Bruno. I read their updated code of yPlusLES. At least from the the point of view of math, it is correct. I cannot say more in terms of numerical precision. Do they provide any awards for the bug reports? :-) :-)
|
Quote:
But usually the award is the feeling we get that when we feel that we're helping something we like to get even better. |
All times are GMT -4. The time now is 02:41. |