View Issue Details

IDProjectCategoryView StatusLast Update
0001790OpenFOAMBugpublic2015-08-16 23:25
Reporterpetebachant Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0001790: fieldAveragingProperties.totalTime is incorrect when run in post-processing
DescriptionWhen performing field averaging with execFlowFunctionObjects, totalTime is not calculated properly, since it is iterating over written time directories, not time steps in the solver, while still using the run time's deltaT value. A sample written using execFlowFunctionObjects with fieldAverage on the pimpleFoam/pitzDaily case:

FoamFile
{
    version 2.0;
    format ascii;
    class dictionary;
    location "0.025/uniform";
    object fieldAveragingProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

U
{
    totalIter 26;
    totalTime 0.00376778;
}

And using fieldAverage with the solver:

FoamFile
{
    version 2.0;
    format ascii;
    class dictionary;
    location "0.025/uniform";
    object fieldAveragingProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

U
{
    totalIter 181;
    totalTime 0.0251;
}
Steps To ReproduceUse the following function in pimpleFoam/pitzDaily and run with both the solver and execFlowFunctionObjects:

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

        fields
        (
            U
            {
                mean on;
                prime2Mean on;
                base time;
            }
        );
    }
}
TagsNo tags attached.

Relationships

related to 0001789 closed fieldAverage restarts averaging every time step if run with execFlowFunctionObjects and cyclicAMI 

Activities

petebachant

2015-07-19 17:07

reporter   ~0005099

Another possible related bug is that outputControl does not seem to work when using fieldAverage and execFlowFunctionObjects. The mean fields are written in every directory regardless of the outputControl settings.

henry

2015-07-19 17:11

manager   ~0005100

Field averaging is not currently supported using execFlowFunctionObjects and this would rarely be appropriate anyway. If you need accurate averages you should average during the run.

Issue History

Date Modified Username Field Change
2015-07-19 16:57 petebachant New Issue
2015-07-19 17:07 petebachant Note Added: 0005099
2015-07-19 17:11 henry Note Added: 0005100
2015-07-20 21:22 henry Status new => closed
2015-07-20 21:22 henry Assigned To => henry
2015-07-20 21:22 henry Resolution open => suspended
2015-08-16 23:25 wyldckat Relationship added related to 0001789