|
[Sponsors] |
October 13, 2017, 22:06 |
Caluculate y+ of LES
|
#1 |
Member
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9 |
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. |
|
October 14, 2017, 22:14 |
|
#2 | |
Member
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9 |
Could somebody have this experience before?Thanks in advance!
Quote:
|
||
October 15, 2017, 15:17 |
|
#3 | |
Member
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11 |
Quote:
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) } Regards |
||
October 15, 2017, 22:03 |
|
#4 | |
Member
Jingxue Wang
Join Date: Sep 2017
Posts: 58
Rep Power: 9 |
Quote:
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 |
||
|
|
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 |