CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Where can I find the code about Uprime2Mean and Pprime2mean (https://www.cfd-online.com/Forums/openfoam/116181-where-can-i-find-code-about-uprime2mean-pprime2mean.html)

Sunxing April 14, 2013 23:11

Where can I find the code about Uprime2Mean and Pprime2mean
 
Hi foamers,

I'm using LES to solve my case. In the controlDict file I have used the following code:
Code:

    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled        true;
        outputControl  outputTime;

        fields
        (
            U
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }

            p
            {
                mean        on;
                prime2Mean  on;
                base        time;
            }
        );
    }

I want to know the exactly code about "prime2Mean", but I don't know where to find it. Can anyone help me?

Regards
Sunxing

morard April 15, 2013 02:57

Hi Sunxing,

you can find it here: fieldAverageTemplates.C

Regards

Sunxing April 15, 2013 08:39

Hi morard,

Thank you for your reply. I have found it. Now I have another question. Where can I find the code about the function of calcAverages()? Do you know it ?

Regards
Sunxing

morard April 15, 2013 09:55

Hi again,
it's defined in fieldAverage.C

By the way, in the fieldAverage.H you can see which source files are used. In this case source files are fieldAverage.C and fieldAverageTemplates.C

Regards

Sunxing April 16, 2013 04:23

Hi morard,

Thank you again.

regards


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