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

Adding all values

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2016, 16:05
Default Adding all values
  #1
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
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.
cute is offline   Reply With Quote

Old   June 12, 2016, 15:45
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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.
alexeym is offline   Reply With Quote

Old   June 12, 2016, 17:52
Default
  #3
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Thanks, I will try this.
cute is offline   Reply With Quote

Old   June 13, 2016, 20:57
Default
  #4
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
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
        );
    }
    
);
cute is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 23:09.