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

Where can I find the code about Uprime2Mean and Pprime2mean

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2013, 23:11
Default Where can I find the code about Uprime2Mean and Pprime2mean
  #1
Member
 
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 13
Sunxing is on a distinguished road
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
Sunxing is offline   Reply With Quote

Old   April 15, 2013, 02:57
Default
  #2
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 16
morard is on a distinguished road
Hi Sunxing,

you can find it here: fieldAverageTemplates.C

Regards
morard is offline   Reply With Quote

Old   April 15, 2013, 08:39
Default
  #3
Member
 
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 13
Sunxing is on a distinguished road
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
Sunxing is offline   Reply With Quote

Old   April 15, 2013, 09:55
Default
  #4
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 16
morard is on a distinguished road
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
morard is offline   Reply With Quote

Old   April 16, 2013, 04:23
Default
  #5
Member
 
sqing
Join Date: Sep 2012
Location: Dalian
Posts: 77
Rep Power: 13
Sunxing is on a distinguished road
Hi morard,

Thank you again.

regards
Sunxing is offline   Reply With Quote

Reply


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



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