|
[Sponsors] |
June 11, 2016, 16:05 |
Adding all values
|
#1 |
Member
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10 |
Hi All,
I am using modified version of scalarTransport tutorial, where my field of interest is biomass. I ran my simulation to 10 time steps. Now I would like to plot total biomass at each time step, i.e sum of all values at each grid point for each time. Could you please provide some hint or show me an example? Thanks. |
|
June 12, 2016, 15:45 |
|
#2 |
Senior Member
|
Hi,
You can try cellSource function object ($FOAM_SRC/postProcessing/functionObjects/field/fieldValues). See controlDict there for example, though you need to change volAverage operation to volIntegrate. For the list of available operations see $FOAM_SRC/postProcessing/functionObjects/field/fieldValues/cellSource/cellSource.H. |
|
June 12, 2016, 17:52 |
|
#3 |
Member
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10 |
Thanks, I will try this.
|
|
June 13, 2016, 20:57 |
|
#4 |
Member
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10 |
I found the following code on this site. This code calculates volumeIntegral and write result in my log file. How can I make these values available in paraview? I am also not sure if my fields variable is correct. Do I need to define new field to hold volume. My source is definitely X.
Code:
functions ( bioMass { type cellSource; functionObjectLibs ("libfieldFunctionObjects.so"); enabled true; outputControl timeStep; outputInterval 1; log true; valueOutput false; source all; sourceName X; operation volIntegrate; fields ( X ); } ); |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error appears when using chtMultiRegionFoam | ruffy19 | OpenFOAM Running, Solving & CFD | 19 | June 13, 2016 08:29 |
chtMultiRegionSimpleFoam | samiam1000 | OpenFOAM Running, Solving & CFD | 39 | March 31, 2016 08:43 |
It would be wonderful if a tool for FoamToTecplot is available | luckyluke | OpenFOAM Post-Processing | 165 | November 27, 2012 06:54 |
Ensight - node values -cell values | leo | FLUENT | 1 | May 12, 2010 08:47 |
max node values exceed max element values in contour plot | jason_t | FLUENT | 0 | August 19, 2009 11:32 |