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

Sequence of data values for UPrime2Mean

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 3 Post By HPE
  • 2 Post By lukasf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2020, 17:47
Default Sequence of data values for UPrime2Mean
  #1
New Member
 
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7
yek_irani is on a distinguished road
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.
yek_irani is offline   Reply With Quote

Old   May 1, 2020, 05:02
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: 931
Rep Power: 13
HPE is on a distinguished road
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).
beatlejuice, KasperWayne and Biku like this.
HPE is offline   Reply With Quote

Old   May 1, 2020, 11:01
Default
  #3
New Member
 
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7
yek_irani is on a distinguished road
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?
yek_irani is offline   Reply With Quote

Old   May 21, 2021, 07:16
Default
  #4
Senior Member
 
Lukas Fischer
Join Date: May 2018
Location: Germany, Munich
Posts: 117
Rep Power: 8
lukasf is on a distinguished road
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.
KasperWayne and ms.hashempour like this.
lukasf is offline   Reply With Quote

Old   May 21, 2021, 08:42
Default
  #5
New Member
 
Maziar
Join Date: Jul 2019
Posts: 15
Rep Power: 7
yek_irani is on a distinguished road
Thank you for sharing that.
yek_irani is offline   Reply With Quote

Reply

Tags
field average, openfoam 1912, uprime2mean


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
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


All times are GMT -4. The time now is 17:06.