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

[swak4Foam] weightedAverage using execFlowFunctionObject

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   April 24, 2017, 12:44
Default [swak4Foam] weightedAverage using execFlowFunctionObject
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 16
Andrea_85 is on a distinguished road
Hello,

i want to output the weighted average of temperature on a given plane as postProcessing using functionObject (i am using "execFlowFunctionObject -time myTime" to run it as postprocessing). I added these lines to my controlDict:

Code:
 surfacePlane
    {
        type swakExpression;
        valueType surface;
        surfaceName testPlane;
        surface {
            type plane;
            basePoint       (0.0040125 1.25e-4 0);
            normalVector    (1 0 0);
            interpolate false;
        }
        verbose true;
        expression "T*area()/sum(area())";
        accumulations (
              sum
        );
    }
However, it seems it does not recognize the field "T". I get this error

Code:
--> FOAM FATAL ERROR:
 Parser Error for driver SampledSurfaceValueExpressionDriver at "1.1-2" :"field T not existing or of wrong type"
"T*area()/sum(area())"
  ^^
--|
what am i doing wrong?
i am using openfoam 2.3

Thanks,

andrea
Andrea_85 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
[swak4Foam] groovyBC boundary using values from another boundary lg88 OpenFOAM Community Contributions 9 July 28, 2017 10:43
[swak4Foam] Trouble accessing fields within expressionField aerogt3 OpenFOAM Post-Processing 6 May 12, 2017 15:02
[swak4Foam] Is it possible to append monitored data in a single file? vasava OpenFOAM Post-Processing 0 February 26, 2016 01:53
[swak4Foam] segmentation faults when using the debug switch "ExpressionResult" Astrodan OpenFOAM Running, Solving & CFD 1 February 21, 2016 16:29
[swak4Foam] different values between swakExpression & faceSource areaAverage Paebin OpenFOAM Community Contributions 7 December 23, 2015 11:29


All times are GMT -4. The time now is 11:44.