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

Write out sum of face values during/after run?

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2016, 12:50
Default Write out sum of face values during/after run?
  #1
Member
 
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 10
elmo555 is on a distinguished road
Hello,

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:
Code:
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:
Code:
functions
{
    aInterfaceSum
    {
        type            fieldValue;
        functionObjectLibs ("libfieldValue.so");
        enabled            true;
        outputControl   outputTime;
        log                true;
        valueOutput     false;
        source          patch;
        sourceName        internalField;
        operation       sum;
        fields
        (
            aInterface
        );
    }
}
I think this should be pretty simple, so any help would be greatly appreciated Thanks!
elmo555 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 03:50
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 11:08
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15: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 03:58


All times are GMT -4. The time now is 00:19.