|
[Sponsors] |
February 11, 2021, 15:12 |
How to get yPlus field?
|
#1 |
New Member
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 7 |
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: yPlusThen i run simpleFoam -postProcess -func yPlusbut 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 |
|
February 11, 2021, 17:57 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
the first one (in controlDict) should produce yPlus field at a given writeInterval. didn't you get it?
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 12, 2021, 16:38 |
|
#3 |
New Member
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 7 |
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 |
|
February 12, 2021, 16:41 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
June 19, 2021, 03:57 |
|
#5 |
New Member
Join Date: Jan 2017
Posts: 13
Rep Power: 9 |
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 |
|
Tags |
openfoam, simplefoam, turbulence, yplus |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
yPlus twoPhaseEulerFoam | Andrea_85 | OpenFOAM Post-Processing | 4 | January 11, 2021 06:01 |
funkySetBoundaryFields - Manipulation of existing field | jhertel | OpenFOAM Pre-Processing | 16 | May 18, 2020 07:32 |
simulating flow over naca0012 using LES (WALE subgrid model) | zeinelserfy | OpenFOAM Running, Solving & CFD | 6 | October 9, 2019 22:12 |
Access to field which is evaluated at the moment | Tobi | OpenFOAM Programming & Development | 6 | April 19, 2017 14:09 |
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL | AndoniBM | OpenFOAM Running, Solving & CFD | 2 | March 25, 2015 19:44 |