CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Caluculate y+ of LES

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By ykanani

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2017, 22:06
Default Caluculate y+ of LES
  #1
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9
Jingxue Wang is on a distinguished road
Dear all

I am simulating the wind pressures on buildings using LES in OpenFoam 3.0.1. I can input yPlus -latesttime and then the yPLus comes out. Now I want to see the the y+ in each time step and output its value together with residules. How can I do this?

I heard from somebody that I can input: simpleFoam -postProcess -func yPlus -time XX at the terminal when preforming calculation. But the errors always occur like this:

Code:
olmati@PO2:~/OpenFOAM/olmati-3.0.1/run/Wangjingxue/Flatroof5$ simpleFoam -postProcess -func yPlus

Usage: simpleFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: OpenFOAM-3.0.1 (see www.OpenFOAM.org)
Build: 3.0.1-119cac7e8750



--> FOAM FATAL ERROR: 
Wrong number of arguments, expected 0 found 1
Invalid option: -postProcess
Invalid option: -func

Could somebody has this exprience for this? I will really appreciate any help and suggestions.
Jingxue Wang is offline   Reply With Quote

Old   October 14, 2017, 22:14
Default
  #2
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9
Jingxue Wang is on a distinguished road
Could somebody have this experience before?Thanks in advance!

Quote:
Originally Posted by Jingxue Wang View Post
Dear all

I am simulating the wind pressures on buildings using LES in OpenFoam 3.0.1. I can input yPlus -latesttime and then the yPLus comes out. Now I want to see the the y+ in each time step and output its value together with residules. How can I do this?

I heard from somebody that I can input: simpleFoam -postProcess -func yPlus -time XX at the terminal when preforming calculation. But the errors always occur like this:

Code:
olmati@PO2:~/OpenFOAM/olmati-3.0.1/run/Wangjingxue/Flatroof5$ simpleFoam -postProcess -func yPlus

Usage: simpleFoam [OPTIONS]
options:
  -case <dir>       specify alternate case directory, default is the cwd
  -noFunctionObjects
                    do not execute functionObjects
  -parallel         run in parallel
  -roots <(dir1 .. dirN)>
                    slave root directories for distributed running
  -srcDoc           display source code in browser
  -doc              display application documentation in browser
  -help             print the usage

Using: OpenFOAM-3.0.1 (see www.OpenFOAM.org)
Build: 3.0.1-119cac7e8750



--> FOAM FATAL ERROR: 
Wrong number of arguments, expected 0 found 1
Invalid option: -postProcess
Invalid option: -func

Could somebody has this exprience for this? I will really appreciate any help and suggestions.
Jingxue Wang is offline   Reply With Quote

Old   October 15, 2017, 15:17
Default
  #3
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Quote:
Originally Posted by Jingxue Wang View Post
Could somebody have this experience before?Thanks in advance!
Hello,
The postProcess option with the syntax that you are trying to use is available in later OpenFOAM versions ( I think after version 4). Furthermore, it does not do what you want. In later versions, that is the syntax for calculating yplus after your job is done (which is the same as using yplus command in OpenFOAM 3)

To write yplus values in all output timesteps and log its values (mean,min and max) into a log file inside the postProcessing folder, you need to use it as a function object inside the controlDict file. Something similar to the following:


Code:
functions
{

 yplus
 {
   type yplus;
   functionObjectLibs ("libutilityFunctionObjects.so");
   writeControl outputTime;
   writeIntervals 1;
   log  true;
 }
......(other functions such as averaging,etc)

}
I cannot test this since I don’t have that version installed. But hopefully it does the job for you.

Regards
Mercure_Foam and mp717 like this.
ykanani is offline   Reply With Quote

Old   October 15, 2017, 22:03
Default
  #4
Member
 
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9
Jingxue Wang is on a distinguished road
Quote:
Originally Posted by ykanani View Post
Hello,
The postProcess option with the syntax that you are trying to use is available in later OpenFOAM versions ( I think after version 4). Furthermore, it does not do what you want. In later versions, that is the syntax for calculating yplus after your job is done (which is the same as using yplus command in OpenFOAM 3)

To write yplus values in all output timesteps and log its values (mean,min and max) into a log file inside the postProcessing folder, you need to use it as a function object inside the controlDict file. Something similar to the following:


Code:
functions
{

 yplus
 {
   type yplus;
   functionObjectLibs ("libutilityFunctionObjects.so");
   writeControl outputTime;
   writeIntervals 1;
   log  true;
 }
......(other functions such as averaging,etc)

}
I cannot test this since I don’t have that version installed. But hopefully it does the job for you.

Regards
Dear ykanani

Thank you so much!I understand what you mean.

I tested in my computer and it worked successfully only changing yplus to yPlus.

Thank you so much!

Regards
Jingxue Wang is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LES Filtering: how are the small and large scales equations solved? atmcfd Main CFD Forum 38 March 14, 2016 15:52
Grid difference between wall modeled LES and wall resolved LES hityangsir Main CFD Forum 9 April 17, 2015 12:59
OpenFOAM LES capability questions siw OpenFOAM Running, Solving & CFD 3 January 6, 2015 09:50
Turbulence dampening due to magnetic field in LES and RAS eelcovv OpenFOAM 0 June 8, 2010 12:35
Some Questions about LES. Bin Li Main CFD Forum 2 February 20, 2004 10:58


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