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

How to calculate mean velocity profile for channel flow

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2013, 11:03
Post How to calculate mean velocity profile for channel flow
  #1
New Member
 
LI Bo
Join Date: Apr 2013
Posts: 13
Rep Power: 13
michel1988 is on a distinguished road
Dear all,
I want to calculate the mean velocity profile for channel flow. For the moment, I can do it with postChannel utility which performs a spatial average for a given moment. How to do it with time average over a range of time in OpenFOAM? I am new to OpenFOAM and I am not familiar with the utilities.
Thanks for your help!
michel1988 is offline   Reply With Quote

Old   January 24, 2019, 15:34
Default
  #2
New Member
 
Alireza Maleki
Join Date: Aug 2017
Location: United State
Posts: 20
Rep Power: 9
alireza94 is on a distinguished road
Quote:
Originally Posted by michel1988 View Post
Dear all,
I want to calculate the mean velocity profile for channel flow. For the moment, I can do it with postChannel utility which performs a spatial average for a given moment. How to do it with time average over a range of time in OpenFOAM? I am new to OpenFOAM and I am not familiar with the utilities.
Thanks for your help!



Hi michel


i know this topic is very old but i'm eager to know, did you find a solution for you problem?
alireza94 is offline   Reply With Quote

Old   November 18, 2019, 09:59
Default
  #3
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
fieldAverage maybe work.
calf.Z is offline   Reply With Quote

Old   November 20, 2019, 10:09
Default
  #4
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
fieldAverage does the trick. Add the following code (works with OpenFOAM 6) to your controlDict and adjust writeControl, writeInterval, timeStart and the fields.

Code:
functions
{
fieldAverage
        {
        type fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled true;
        writeControl     writeTime;
        writeInterval    1;
        timeStart 5;
        fields
        (
                U
                {
                mean on;
                prime2Mean on;
                base time;
                }
               
        );
}
}
Bazinga 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
3D pipe flow :: how to create non uniform inlet profile. thess FLUENT 1 May 30, 2014 03:43
How to apply an outlet velocity profile to another inlet? siw FLUENT 4 April 10, 2013 12:19
Steady pipe flow mean velocity higher than inlet velocity anita OpenFOAM Running, Solving & CFD 7 September 25, 2012 06:35
FSI- Pipe- uniform velocity profile inlet Absy Main CFD Forum 0 April 6, 2010 04:01
what the result is negatif pressure at inlet chong chee nan FLUENT 0 December 29, 2001 06:13


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