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 Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2019, 09: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, 10: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


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


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