CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Post-Processing

yPlusLES: compressible flow

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 16, 2013, 07:12
Question yPlusLES: compressible flow
  #1
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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!
openfoammaofnepo is offline   Reply With Quote

Old   May 18, 2013, 13:41
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi openfoammaofnepo,

I managed to remember two details:
  1. The yPlusLES and yPlusRAS should both have the "-compressible" option, but I've taken a look into it and only the yPlusRAS has got one. You can check by running:
    Code:
    yPlusRAS -help
  2. This problem isn't new. You can calculate yPlusLES in a compressible simulation, by using a function object, while the solver is running. For more information about this and the report about the missing feature: http://www.openfoam.org/mantisbt/view.php?id=802
Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   May 18, 2013, 14:16
Default
  #3
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
Thank you wyldckat!

I am using OF211, but this problem has been fixed in OF210 maybe.

Quote:
Originally Posted by wyldckat View Post
Hi openfoammaofnepo,

I managed to remember two details:
  1. The yPlusLES and yPlusRAS should both have the "-compressible" option, but I've taken a look into it and only the yPlusRAS has got one. You can check by running:
    Code:
    yPlusRAS -help
  2. This problem isn't new. You can calculate yPlusLES in a compressible simulation, by using a function object, while the solver is running. For more information about this and the report about the missing feature: http://www.openfoam.org/mantisbt/view.php?id=802
Best regards,
Bruno
openfoammaofnepo is offline   Reply With Quote

Old   May 18, 2013, 14:41
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi openfoammaofnepo,

Quote:
Originally Posted by openfoammaofnepo View Post
I am using OF211, but this problem has been fixed in OF210 maybe.
I forgot to mention the version... In OpenFOAM 2.2.0 you can use yPlusLES as a function object in a compressible simulation, as indicated here: http://www.openfoam.org/version2.2.0...processing.php - this link is shown in the other link in the previous posts.

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
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   May 18, 2013, 17:51
Default
  #5
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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:
Originally Posted by wyldckat View Post
Hi openfoammaofnepo,


I forgot to mention the version... In OpenFOAM 2.2.0 you can use yPlusLES as a function object in a compressible simulation, as indicated here: http://www.openfoam.org/version2.2.0...processing.php - this link is shown in the other link in the previous posts.

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
openfoammaofnepo is offline   Reply With Quote

Old   May 19, 2013, 06:49
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
Then compare with the source code on OpenFOAM 2.2, namely this file: https://github.com/OpenFOAM/OpenFOAM...LES/yPlusLES.C - compare the methods "calcIncompressibleYPlus" with "calcCompressibleYPlus", with the ones on the application you've got.

As to modifying an OpenFOAM application, check this tutorial: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   May 26, 2013, 18:32
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   September 18, 2013, 14:33
Default Can not get some post processing
  #8
New Member
 
Join Date: Jan 2013
Location: Lisboa-Funchal
Posts: 20
Rep Power: 5
guilha is on a distinguished road
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:
--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/guilha/Desktop/cavidade_les/cavidade_128kx24_les_smagorinsky_galego_96-32_processadores/constant/transportProperties at line 0.
I saw the previous posts, and typed for the compressible case, but it said it was an invalid option. And I also saw the code, and seeing that the transport properties is used for incompressible, I think my version does not have the possibility to compute y+ for compressible flow in this way.

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.)
__________________
Se Urso Vires Foge Tocando Gaita Para Hamburgo
guilha is offline   Reply With Quote

Old   September 21, 2013, 15:04
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings guilha,

Try following the latest instructions given here: https://github.com/wyldckat/yPlusLES...ble/tree/of210

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   December 16, 2013, 16:35
Default
  #10
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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:
Originally Posted by wyldckat View Post
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
openfoammaofnepo is offline   Reply With Quote

Old   December 16, 2013, 20:28
Default
  #11
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 8
owayz is on a distinguished road
Send a message via MSN to owayz
y+ and u+ values with low-Re RANS turbulence models: utility + testcase

Zou can also have a look at this thread.
owayz is offline   Reply With Quote

Old   December 27, 2013, 01:05
Question
  #12
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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:
Originally Posted by wyldckat View Post
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
openfoammaofnepo is offline   Reply With Quote

Old   December 27, 2013, 15:08
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

@owayz: I had no idea someone else had already provided a compressible y+ for LES!

@openfoammaofnepo:
Quote:
Originally Posted by openfoammaofnepo View Post
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!
I need to know:
  1. The exact instructions you have followed to try and install "yPlusLESWCompressible".
  2. Which exact version of OpenFOAM are you using and how you installed it.
  3. Which Linux Distribution are you using.
  4. What is the complete output that you get. That last error message is far from enough to figure out what's wrong .
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 27, 2013, 15:40
Question
  #14
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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:
Originally Posted by wyldckat View Post
Greetings to all!

@owayz: I had no idea someone else had already provided a compressible y+ for LES!

@openfoammaofnepo:

I need to know:
  1. The exact instructions you have followed to try and install "yPlusLESWCompressible".
  2. Which exact version of OpenFOAM are you using and how you installed it.
  3. Which Linux Distribution are you using.
  4. What is the complete output that you get. That last error message is far from enough to figure out what's wrong .
Best regards,
Bruno
openfoammaofnepo is offline   Reply With Quote

Old   December 27, 2013, 15:54
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi openfoammaofnepo,

Quote:
Originally Posted by openfoammaofnepo View Post
[...]

I put the install package in the folder:
/users/openfoammaofnepo/OpenFOAM/openfoammaofnepo-2.1.1/utilities/yPlusLESWCompressible-of21x/yPlusLESWCompressible

[...]

4, The complete output info is (after inputting the command wmake yPlusLESWCompressible)
make: *** No rule to make target `yPlusLESWCompressible'. Stop.
OK OK, got it. You did not perfectly follow the instructions written on the page
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
unzip yPlusLESWCompressible.zip
cd yPlusLESWCompressible-of21x
wmake yPlusLESWCompressible
The detail here is that you are running the wmake command from within the folder "yPlusLESWCompressible" and not from its parent folder. This is why you get that error message.

You have two possible solutions:
  1. While you are still within the folder "yPlusLESWCompressible-of21x/yPlusLESWCompressible", simply run:
    Code:
    wmake
  2. Or while you are still within the folder "yPlusLESWCompressible-of21x/yPlusLESWCompressible", go back to the parent folder and build as originally described. In other words, run:
    Code:
    cd ..
    wmake yPlusLESWCompressible
Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   December 27, 2013, 17:46
Default
  #16
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
Hi wyldckat, successfully installed. Thanks.

Quote:
Originally Posted by wyldckat View Post
Hi openfoammaofnepo,


OK OK, got it. You did not perfectly follow the instructions written on the page
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
unzip yPlusLESWCompressible.zip
cd yPlusLESWCompressible-of21x
wmake yPlusLESWCompressible
The detail here is that you are running the wmake command from within the folder "yPlusLESWCompressible" and not from its parent folder. This is why you get that error message.

You have two possible solutions:
  1. While you are still within the folder "yPlusLESWCompressible-of21x/yPlusLESWCompressible", simply run:
    Code:
    wmake
  2. Or while you are still within the folder "yPlusLESWCompressible-of21x/yPlusLESWCompressible", go back to the parent folder and build as originally described. In other words, run:
    Code:
    cd ..
    wmake yPlusLESWCompressible
Best regards,
Bruno
wyldckat likes this.
openfoammaofnepo is offline   Reply With Quote

Old   December 29, 2013, 00:55
Default
  #17
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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.
openfoammaofnepo is offline   Reply With Quote

Old   December 29, 2013, 08:27
Default
  #18
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi openfoammaofnepo,
Quote:
Originally Posted by openfoammaofnepo View Post
When we run wmake in the folder yPlusLESWCompressible-of21x/yPlusLESWCompressible, which file or executable is run for this command? Thank you very much.
I'm not sure I understand your question, because the "obvious" answer would be: it's wmake, it's a script that will take care of building the application on demand. You can find more information about this in the User Guide: http://www.openfoam.org/docs/user/co...plications.php

Best regards,
Bruno
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Old   January 8, 2014, 12:08
Default
  #19
Senior Member
 
Join Date: Jan 2013
Posts: 252
Rep Power: 6
openfoammaofnepo is on a distinguished road
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>>


--> FOAM FATAL ERROR: 
Unknown basicThermo type hsPsiMixtureThermo<singleStepReactingMixture<gasThermoPhysics>>

Valid basicThermo types are:

26
(
ePsiThermo<pureMixture<constTransport<specieThermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<eConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
ePsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hPsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hPsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<incompressible>>>>>
hRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<isobaricPerfectGas>>>>>
hRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hRhoThermo<pureMixture<icoPoly3ThermoPhysics>>
hRhoThermo<pureMixture<icoPoly8ThermoPhysics>>
hRhoThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<isobaricPerfectGas>>>>>
hRhoThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hRhoThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<isobaricPerfectGas>>>>>
hRhoThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsPsiThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
hsRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<isobaricPerfectGas>>>>>
hsRhoThermo<pureMixture<constTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsRhoThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<isobaricPerfectGas>>>>>
hsRhoThermo<pureMixture<sutherlandTransport<specieThermo<hConstThermo<perfectGas>>>>>
hsRhoThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<isobaricPerfectGas>>>>>
hsRhoThermo<pureMixture<sutherlandTransport<specieThermo<janafThermo<perfectGas>>>>>
)
The version of OF is 2.1.1, and I think the thermodyanmic library should be fine for my case. But I am not sure why this error comes from. Do you have the problem when you use it? Thank you so much.

Last edited by wyldckat; January 12, 2014 at 13:35. Reason: Added [CODE][/CODE]
openfoammaofnepo is offline   Reply With Quote

Old   January 12, 2014, 13:40
Default
  #20
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,215
Blog Entries: 35
Rep Power: 94
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
__________________
___
I'll be at OFW11 in Portugal
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compressible flow, no data at the outlet mireis FLUENT 6 September 3, 2015 02:10
Natural Convection using Compressible Flow (chtMultiRegionFOAM) msarkar OpenFOAM 2 September 7, 2010 00:13
help with compressible flow BC's (need subsonic flow) meangreen Main CFD Forum 5 July 24, 2010 13:16
Compressible Fluid Flow in COMSOL Multiphysics BBG Main CFD Forum 1 November 19, 2008 15:05
Solving unsteady compressible low speed flow atit Main CFD Forum 8 July 31, 2000 13:19


All times are GMT -4. The time now is 21:00.