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

--- How to calculate phiMean for each time step ---

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2010, 11:13
Question --- How to calculate phiMean for each time step ---
  #1
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
hi to all,

I want simulate a problem and i need to set outlets 20% and 80%. as i don't have outlets velocities i set pressure to reach desired flow rates from each outlet by try and error. i do this by k-e and reach to answer. but in Rans and LES i should use averaged flows.
i need phi mean parameter same as uMean and pMean which is defined in controlDict.
How can i tell OF to calculate phiMean for each time step for patches.

Thanks in advance,
maysmech is offline   Reply With Quote

Old   December 13, 2010, 09:30
Default
  #2
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17
CedricVH is on a distinguished road
Add this to your controlDict file:

Code:
functions 
(
       mflow1
       {
             type            faceSource;
             functionObjectLibs ("libfieldFunctionObjects.so");
             enabled         true;
             outputControl   timeStep;
             outputInterval  1;
             log             true;
             valueOutput     false;
             source          patch;
             sourceName      outlet1;
             operation       sum;
             fields
             (
                   phi
             );
       }

       mflow2
       {
             type            faceSource;
             functionObjectLibs ("libfieldFunctionObjects.so");
             enabled         true;
             outputControl   timeStep;
             outputInterval  1;
             log             true;
             valueOutput     false;
             source          patch;
             sourceName      outlet2;
             operation       sum;
             fields
             (
                   phi
             );
  }
);
CedricVH is offline   Reply With Quote

Old   December 22, 2010, 16:15
Default
  #3
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
Thanks for your answer.

I tried it. but i don't have phiMean in time steps folders. what should i do?
maysmech is offline   Reply With Quote

Old   December 28, 2010, 04:45
Lightbulb
  #4
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 17
maysmech is on a distinguished road
i need phiMean or phi which uses uMean.
maysmech 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating point exception error Alan OpenFOAM Running, Solving & CFD 11 July 1, 2021 22:51
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
Problems with simulating TurbFOAM barath.ezhilan OpenFOAM 13 July 16, 2009 06:55
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 04:32
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 13:32


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