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

Not continuous averaging when restarting a calculation

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By nik
  • 2 Post By h.ono

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 19, 2013, 04:22
Default Not continuous averaging when restarting a calculation
  #1
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 16
nik is on a distinguished road
Hi to all,

I am using the fieldAverage function to calculate average quantities. I am using an updated version of OpenFOAM 2.2.x with the necessary fixes for the restarting to work, since there was a bug in the code (see http://www.openfoam.org/mantisbt/view.php?id=854). Restarting works just fine, my problem is that when I restart from a previous calculation, it seems that the averaging is not continuous as it should be. In order to look at the time evolution of a mean value I am using the probeFunction.

I can reproduce my problem using the cavity tutorial. I start averaging from the beginning up to 0.5 sec of simulation time. Then I restart the simulation for another 0.5 sec. Below are the functions objects used at the end of the controlDict:

Code:
functions
{
    fieldAverage1
    {
        type            fieldAverage;
        functionObjectLibs ( "libfieldFunctionObjects.so" );
        enabled         true;
        outputControl   outputTime;
        resetOnOutput   false;
        resetOnRestart  false;

        fields
        (
            p
            {
                mean        on;
                prime2Mean  off;
                base        time;
            }
        );
    }

    probesP
    {
        type probes;
        functionObjectLibs ("libsampling.so");
        probeLocations
        (
            (0.05 0.05 0.0)
        );

        fields
        (
            p pMean
        );
    }
}
I have also attached a figure showing the evolution of pMean with time, at a x=0.05, y=0.05 using the data from the probe function. This figure shows the discontinuous change in the evolution of the mean value, at t=0.5.

Am I doing something wrong with the flags that I am using, or is this a bug?

Thanks,
Nicolas
Attached Images
File Type: png plotXY_pMeanVsTime.png (12.7 KB, 159 views)
nik is offline   Reply With Quote

 


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
Starting field averaging using libFunctionObject after certain time eelcovv OpenFOAM Programming & Development 25 December 7, 2015 22:28
MRF and Heat transfer calculation Susan YU FLUENT 0 June 2, 2010 08:46
Nusselt averaging in Unsteady calculation elyyan FLUENT 0 August 7, 2006 13:48
unsteady calculation and Nusselt averaging elyyan FLUENT 0 August 4, 2006 14:32
Warning 097- AB Siemens 6 November 15, 2004 04:41


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