CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Sequence of data values for UPrime2Mean

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

Like Tree1Likes
  • 1 Post By HPE

LinkBack Thread Tools Search this Thread Display Modes
Old   April 30, 2020, 16:47
Default Sequence of data values for UPrime2Mean
New Member
Join Date: Jul 2019
Posts: 14
Rep Power: 3
yek_irani is on a distinguished road

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: |
| \\/ M anipulation | |
version 2.0;
format ascii;
class volSymmTensorField;
location "0.001";
object UPrime2Mean;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 2 -2 0 0 0 0];

internalField nonuniform List<symmTensor>
(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, 04:02
Senior Member
HPE's Avatar
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 795
Rep Power: 8
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 likes this.
HPE is offline   Reply With Quote

Old   May 1, 2020, 10:01
New Member
Join Date: Jul 2019
Posts: 14
Rep Power: 3
yek_irani is on a distinguished road

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


field average, openfoam 1912, uprime2mean

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
problem with exporting data to Tecplot v.jab OpenFOAM Post-Processing 2 January 11, 2017 08:56
Loop through data values cute OpenFOAM Programming & Development 12 August 17, 2016 12:08
SIMPLE algorithm does not converge when using old pressure (correction) values andreasp Main CFD Forum 3 February 9, 2016 21:18
[OpenFOAM] saving data in paraview aylalisa ParaView 3 May 31, 2014 11:38
[General] Warping Cells by Vectors? ronwelty ParaView 10 April 29, 2014 05:52

All times are GMT -4. The time now is 01:41.