|
[Sponsors] |
April 30, 2020, 17:47 |
Sequence of data values for UPrime2Mean
|
#1 |
New Member
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7 |
Hello,
The fieldAverage funtionObject can be used to write out prime2Mean values for the velocity field. A section of the resulting output file (UPrime2Mean) is shown below (from the pitzDaily example employing LES): /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volSymmTensorField; location "0.001"; object UPrime2Mean; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 2 -2 0 0 0 0]; internalField nonuniform List<symmTensor> 12225 ( (0.797714 0.015699 0 0.00107185 0 0) (0.0880994 -0.00361673 0 0.000736635 0 0) (0.167389 -0.00701045 0 0.000363688 0 0) Can you please direct me to the documentation which tells me how the precise components for the 6 values of the symmetric tensor <u'_i u'_k> are arranged? I can well imagine that the first and last are <u'_x u'_x> and <u'_z u'_z>, but I want to be certain about the rest in between. There is a post from 2015 which asks the same question (see link below): Confirm which directions the UPrime2Means are? I don't disagree with the response provided in the cited post, but I just want to be sure about where this information is coming from. I felt I should post a new thread because the one from 2015 may be too old. In particular, the response in the post from 2015 suggests: "You can check by using foamCalc components UPrime2Mean and compare to your tensor." I would like to verify too, but I have two issues: 1) I am not finding many helpful sources on how to use foamCalc (i.e. I have no idea how to use foamCalc), 2) my openFOAM installation (v1912) doesn't even seem to have the foamCalc utility. So, my request is two-fold: Source for confirming that the sequence of 6 numbers in the file UPrime2Mean is given by UPrime2Meanxx UPrime2Meanxy UPrime2Meanxz UPrime2Meanyy UPrime2Meanyz UPrime2Meanzz. And, how to verifiy this with a utility that can be applied to the UPrime2Mean field. Many thanks for your help. |
|
May 1, 2020, 05:02 |
|
#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 |
To my knowledge:
Any symmetric tensor, e.g. the Reynolds stress tensor components are in this order: (Rxx Rxy Rxz Ryy Ryz Rzz) or, using a different notation: (u'^2 u'v' u'w' v'^2 v'w' w'^2).
__________________
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 |
|
May 1, 2020, 11:01 |
|
#3 |
New Member
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7 |
HPE,
Thank you for your response. I agree that the order you suggest makes sense. But, we are talking about how something has been implemented in software. There must be a section of code, or documentation which confirms this, at the very least. And, to the second part of my question, how can it be verified? I have found this other post which confirms the sequence you and the post in 2015 I cite in my first message refer to: Why Uprime2mean is minus in some grids? |
|
May 21, 2021, 07:16 |
|
#4 |
Senior Member
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8 |
I can confirm the following sequence of UPrime2Mean.
OpenFOAM (v1912): 1. Rxx 2. Rxy 3. Rxz 4. Ryy 4. Ryz 6. Rzz ParaView: 1. Rxx 2. Ryy 3. Rzz 4. Rxy 4. Ryz 6. Rxz I checked it doing the following: Write the UPrime2Mean field by using a fieldAverage function in the controlDict.I opened the solution with Paraview and choose the calculator filter. Next selected attribute type: cell data. Result array name e.g. result Select scalars e.g. UPrime2Mean_XX _YY and so on. Open a spread sheet view and compare the value with your OpenFoam solution file. |
|
May 21, 2021, 08:42 |
|
#5 |
New Member
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7 |
Thank you for sharing that.
|
|
Tags |
field average, openfoam 1912, uprime2mean |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem with exporting data to Tecplot | v.jab | OpenFOAM Post-Processing | 2 | January 11, 2017 09:56 |
Loop through data values | cute | OpenFOAM Programming & Development | 12 | August 17, 2016 13:08 |
SIMPLE algorithm does not converge when using old pressure (correction) values | andreasp | Main CFD Forum | 3 | February 9, 2016 22:18 |
[OpenFOAM] saving data in paraview | aylalisa | ParaView | 3 | May 31, 2014 12:38 |
[General] Warping Cells by Vectors? | ronwelty | ParaView | 10 | April 29, 2014 06:52 |