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

How to get yPlus field?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 11, 2021, 14:12
Post How to get yPlus field?
  #1
New Member
 
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 4
Bartholomew is on a distinguished road
Hi everyone,

I was trying to get the yPlus field in the backwardFacingStep2D tutotial on OpenFOAM. I modified the controlDict and add in "functions" this part:
yPlus
{
type yPlus;
libs (fieldFunctionObjects);
patches (fixedWall);
writeControl timeStep;
writeInterval 100;
writeToFile true;
timeStart 0;
timeEnd 2000;
executeControl timeStep;
executeInterval 1;
}
Then i run
simpleFoam -postProcess -func yPlus
but i have only the min, max and average value for each times step.
My question is: How can i get, in a specific time step, a file with the values of yPlus along (for example) the bottom wall?

Thanks in advance,
Bartholomew
Bartholomew is offline   Reply With Quote

Old   February 11, 2021, 16:57
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 929
Rep Power: 10
HPE is on a distinguished road
the first one (in controlDict) should produce yPlus field at a given writeInterval. didn't you get it?
HPE is offline   Reply With Quote

Old   February 12, 2021, 15:38
Default
  #3
New Member
 
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 4
Bartholomew is on a distinguished road
Hi,

thank you for your reply. Yes it does. I resolved today the problem: in order to plot the value of y+ along the x-direction i had to take columns from the respective files in the timeInterval (Cx and yPlus) and put them in a common .dat file. I think this is the easiest way to do it.

Bartholomew
Bartholomew is offline   Reply With Quote

Old   February 12, 2021, 15:41
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 929
Rep Power: 10
HPE is on a distinguished road
Hi,
- try to use `patchEdge` sampledSet for sampling yPlus on patches, if necessary?
- maybe using `nearWallFields` function object could also be interesting?
at least you have solved the main problem - which is good
HPE is offline   Reply With Quote

Old   June 19, 2021, 02:57
Default
  #5
New Member
 
Join Date: Jan 2017
Posts: 13
Rep Power: 7
ghazal_1989 is on a distinguished road
Hi Bartolomeo,
I have done the procedure that you have written in controlDict functions. But I got core dump error. Do you have any idea?

************************************************** *******************************
From function const Type& Foam:bjectRegistry::lookupObject(const Foam::word&) const [with Type = Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>]
in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 193.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvPatchField, Foam::volMesh> >(Foam::word const&) const at ??:?
#3 Foam::functionObjects::yPlus::execute() at ??:?
#4 Foam::functionObjects::timeControl::execute() at ??:?
#5 Foam::functionObjectList::execute() at ??:?
#6 ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
#7 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#8 ? in "/opt/openfoam6/platforms/linux64GccDPInt32Opt/bin/reactingFoam"
Aborted (core dumped)


************************************************** *******************************
Thanks in advance,
Ghazal
ghazal_1989 is offline   Reply With Quote

Reply

Tags
openfoam, simplefoam, turbulence, yplus

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
yPlus twoPhaseEulerFoam Andrea_85 OpenFOAM Post-Processing 4 January 11, 2021 05:01
funkySetBoundaryFields - Manipulation of existing field jhertel OpenFOAM Pre-Processing 16 May 18, 2020 06:32
simulating flow over naca0012 using LES (WALE subgrid model) zeinelserfy OpenFOAM Running, Solving & CFD 6 October 9, 2019 21:12
Access to field which is evaluated at the moment Tobi OpenFOAM Programming & Development 6 April 19, 2017 13:09
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL AndoniBM OpenFOAM Running, Solving & CFD 2 March 25, 2015 18:44


All times are GMT -4. The time now is 22:36.