|
[Sponsors] |
Write out sum of face values during/after run? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2016, 12:50 |
Write out sum of face values during/after run?
|
#1 |
Member
Lennart
Join Date: Feb 2016
Posts: 46
Rep Power: 10 |
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; 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 ); } } |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |