|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 8 ![]() |
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 |
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 14 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Bartolomeo Fanizza
Join Date: Jun 2019
Posts: 4
Rep Power: 8 ![]() |
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 |
|
|
|
|
|
|
|
|
#4 |
|
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 14 ![]() |
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 |
|
|
|
|
|
|
|
|
#5 |
|
New Member
Join Date: Jan 2017
Posts: 13
Rep Power: 11 ![]() |
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 |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |