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

Write out sum of face values during/after run?

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

LinkBack Thread Tools Display Modes
Old   February 4, 2016, 12:50
Default Write out sum of face values during/after run?
New Member
Join Date: Feb 2016
Posts: 22
Rep Power: 3
elmo555 is on a distinguished road

I'm trying to output the sum of a face value over all cells during runtime or after running the simulation. Within the code, I just do:
Info<< "Total interface area A: " << sum(aInterface).value() << endl;
I'd like to have the same functionality using sampleDict, probes or the controlDict functions, or foamLog (I do not completely understand the difference between these).

A file that contains my value over each time step is what I need, so it can be plotted using gnuplot.

I've tried using the controlDict functions, as described here, like this:
        type            fieldValue;
        functionObjectLibs ("");
        enabled            true;
        outputControl   outputTime;
        log                true;
        valueOutput     false;
        source          patch;
        sourceName        internalField;
        operation       sum;
I think this should be pretty simple, so any help would be greatly appreciated Thanks!
elmo555 is offline   Reply With Quote


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
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 02:58

All times are GMT -4. The time now is 17:29.