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

OpenFoam: time averaging velocity of a URANS Simulation

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2019, 08:46
Default OpenFoam: time averaging velocity of a URANS Simulation
  #1
New Member
 
Andrei
Join Date: Apr 2019
Posts: 1
Rep Power: 0
andreic is on a distinguished road
Hi there,

I'm running a pipe simulation with pimpleFoam and after the simulation I would like to average the velocity in the whole field on a specific segment of time.

I know I could just use simpleFoam but the solution doesn't converge with simpleFoam. So I want to simulate with PimpleFoam check the periodicity of the Simulation and average the velocity in that period in order to get a similar result to a RANS simulation.

Can anybody help me?

Thank you
andreic is offline   Reply With Quote

Old   August 22, 2019, 09:40
Default
  #2
Senior Member
 
Join Date: Mar 2018
Posts: 115
Rep Power: 8
anon_q is on a distinguished road
Try to use fieldAverage function object.
Here is an example:

Code:
fieldAverage1
    {
        type                fieldAverage;
        libs                ("libfieldFunctionObjects.so");

        writeControl    writeTime;

        restartOnRestart    false;
        restartOnOutput     false;
        periodicRestart     false;
        restartPeriod       0.002;

        fields
        (
            U
            {
                mean            on;
                prime2Mean      on;
                base            time;
                window          10.0;
                windowName      w1;
            }
            p
            {
                mean            on;
                prime2Mean      on;
                base            time;
            }
        );
    }
for more examples from tutorials, try:

Code:
grep -R "fieldAverage" $FOAM_TUTORIALS
anon_q is offline   Reply With Quote

Reply

Tags
average velocity, pimplefoam, rans, simplefoam; convergence;, urans

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
LES, Courant Number, Crash, Sudden Alhasan OpenFOAM Running, Solving & CFD 5 November 22, 2019 02:05
pressure in incompressible solvers e.g. simpleFoam chrizzl OpenFOAM Running, Solving & CFD 13 March 28, 2017 05:49
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03


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