CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Post-Processing

wrong behavior of functionObject volAverage

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

LinkBack Thread Tools Display Modes
Old   October 23, 2013, 11:41
Default wrong behavior of functionObject volAverage
New Member
Join Date: Jan 2012
Location: Germay - Stuttgart
Posts: 21
Rep Power: 0
HaZe is on a distinguished road
Hi FOAMers!

There are some issues with the functionObjects in my simulation. I'm running an engine simulation and try to calculate the volume averages of some fields inside the cylinder. In order to this I defined a functionObject [1] in my controlDict. Unfortunately it's not behaving like I expected. Running this case (startTime 280, writeInterval 1) I get a directory ./volumeAverage_myAverage/280/ with files p,T,k... with the averages inside. So far, so good. But instead of getting new directories 281, 282 in ./volumeAverage_myAverage all the averages are written to the files p,T,k in ./volumeAverage_myAverage/280. And additionally the column "Time" in this files is some value with no relation to the timeStep or anything [2]. For "Time" I expected 280.25 280.5...
I already play around with the valueOutput and outputControl options but whatever I set, it did always the same.

Next problem is the volume taken for averaging. I need to use a cellZone to get rid of the intake and exhaust cells and just averaging the cylinder cells. The "source cellZone" option should be great for this. But I played a little bit with it and did the banana test with the cellZone name. I expected to get an error like "Could not find cellZone with the name "banana" but it didn't complain.
My solver does already calculate a volume average of the complete field (including exhaust and intake) and it's exactly the same values as calculated with the functionObject and correct set "source cellZone" and "sourceName cylbox".
So what am I doing wrong?

I'm using OpenFOAM-1.5-dev and so I can't use swak4foam.

Thanks for your help in advance.

Regards, HaZe.

[1] functions in controlDict
        type volumeAverage;
        functionObjectLibs ("");
        enabled true;
        outputControl outputTime;
        outputInterval 1;
        verbose true;
        valueOutput false;
        source cellZone;
        sourceName cylbox;
        operation volAverage;
[2] ./volumeAverage_myAverage/280/p
#        Time  average
    0.0291927        99112
    0.0292188      98202.7
    0.0292448      97322.1
    0.0292708      96473.4
    0.0292969      95644.5
    0.0293229      94824.6
     0.029349      94006.4
     0.029375      93184.4
     0.029401      92354.2
    0.0294271      91512.5
    0.0294531      90657.8
    0.0294792      89790.9
HaZe is offline   Reply With Quote


field average, functionobject, volumeaverage

Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
udf error srihari FLUENT 1 October 31, 2016 15:18
turbineSiting tutorial and paraview-3.98.0 pajot OpenFOAM Paraview & paraFoam 4 September 14, 2013 10:19
Create registered object at runtime using a functionObject CedricVH OpenFOAM Programming & Development 21 November 28, 2012 06:04
runTime out of scope in functionObject Sune OpenFOAM Programming & Development 2 September 26, 2012 02:11
BuoyantBoussinesqSimpleFoam and axial-symmetric results wrong mass flow Thomas Baumann OpenFOAM 6 December 21, 2009 11:31

All times are GMT -4. The time now is 07:50.