View Issue Details

IDProjectCategoryView StatusLast Update
0001789OpenFOAMBugpublic2015-08-16 23:26
Reporterpetebachant Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0001789: fieldAverage restarts averaging every time step if run with execFlowFunctionObjects and cyclicAMI
Description(OpenFOAM 2.4.x) When attempting to post-process a case with the fieldAverage and execFlowFunctionObjects, averaging restarts each time step if the case has a cyclicAMI patch. Averaging works as expected if the functionObject is used at run-time.
Steps To ReproduceAdd a fieldAverage functionObject to the pimpleDyMFoam mixerVesselAMI2D tutorial and run execFlowFunctionObjects:

    fieldAverage1
    {
        type fieldAverage;
        functionObjectLibs ("libfieldFunctionObjects.so");
        enabled true;
        outputControl timeStep;
        outputInterval 1;
        resetOnRestart false;
        resetOnOutput false;

        fields
        (
            U
            {
                mean on;
                prime2Mean on;
                base time;
            }

            p
            {
                mean on;
                prime2Mean on;
                base time;
            }
        );
    }
TagsNo tags attached.

Relationships

related to 0001790 closedhenry fieldAveragingProperties.totalTime is incorrect when run in post-processing 

Activities

henry

2015-07-17 16:56

manager   ~0005090

> if the case has a cyclicAMI patch

What happens if the case does not have an cyclicAMI patch?

petebachant

2015-07-17 16:59

reporter   ~0005091

If the case does not have a cyclicAMI patch, averaging works okay with execFlowFunctionObjects. I used the pisoFoam and pimpleFoam pitzDaily tutorials to test.

henry

2015-07-17 17:02

manager   ~0005092

What happens if the case does not have a cyclicAMI patch but the mesh moves?

petebachant

2015-07-17 17:25

reporter   ~0005093

I'm getting the same error with the movingCone tutorial.

henry

2015-07-17 17:43

manager   ~0005094

Right, I did not expect there to be any special interaction between the operation of cyclicAMI and execFlowFunctionObjects.

It is not currently possible to average between moving meshes which are read in a sequence by execFlowFunctionObjects. Adding this functionality would be a substantial amount of work.

petebachant

2015-07-17 17:51

reporter   ~0005095

Any hints on what this might entail? I am either going to write a new application or try to modify execFlowFunctionObjects. Anything I write will be open source and on GitHub, for what it's worth.

wyldckat

2015-08-16 23:24

updater   ~0005243

This ended up being addressed on the forum and unfortunately we didn't reach a solution that didn't rely on simply making a modified/hacked execFlowFunctionObjects: http://www.cfd-online.com/Forums/openfoam-post-processing/156982-fieldaverage-function-object-does-not-average-over-all-time.html#post559781 - post #9

The paradigm Pete was trying to achieve is simple: sampling a field for when the dynamic motion reaches a periodically identical position, so to have a time averaged sample.

The hack relies on changing the deltaT before running the function objects for each loaded time step, and not reloading the function objects for each processed time step, i.e. when the mesh changes. The other detail is that the time steps to be processed have to be provided through the command line argument "-time".

Either way, the modified source code, example case and instructions on how to configure ParaView to only render the time steps are all on the aforementioned post and my guess is that this hack would only add confusion and potential maintenance problems to execFlowFunctionObjects.

Issue History

Date Modified Username Field Change
2015-07-17 16:49 petebachant New Issue
2015-07-17 16:56 henry Note Added: 0005090
2015-07-17 16:59 petebachant Note Added: 0005091
2015-07-17 17:02 henry Note Added: 0005092
2015-07-17 17:25 petebachant Note Added: 0005093
2015-07-17 17:43 henry Note Added: 0005094
2015-07-17 17:51 petebachant Note Added: 0005095
2015-07-30 12:31 wyldckat Project ThirdParty => OpenFOAM
2015-08-16 23:24 wyldckat Note Added: 0005243
2015-08-16 23:25 wyldckat Relationship added related to 0001790
2015-08-16 23:26 wyldckat Severity minor => feature
2015-08-16 23:26 wyldckat Status new => closed
2015-08-16 23:26 wyldckat Resolution open => won't fix
2015-08-16 23:26 wyldckat Product Version other =>