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

How to find the flux through each cell in a each boundary patch?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2013, 08:52
Default How to find the flux through each cell in a each boundary patch?
  #1
Member
 
Hale
Join Date: May 2013
Posts: 53
Rep Power: 12
Hale is on a distinguished road
Hi,

I need to find the flux through each cell of a boundary at each time step. As far as I know all fluxes through each cell are given in the phi file but how can I find them for a specific boundary patch?

I normally use the following function (which is placed in the controlDict file) to find the sum of the fluxes through all the cells in a boundary at each time step but now I want the actual value for each cell and not the sum. How can I do it?

Code:
functions
{
    inletFlux1
    {
        type            faceSource;
        functionObjectLibs ("libfieldFunctionObjects.so");
        outputControl   outputTime;
        log             true;
        valueOutput     false;
        source          patch;
        sourceName      inlet1;
        operation       sum;   // what should I write here to get value for each cell and not the sum?

        fields
        (
            rho phi alpha1
        );
    }
}
Thanks
Hale 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
Problem with cyclic boundaries in Openfoam 1.5 fs82 OpenFOAM 36 January 7, 2015 00:31
FvMatrix coefficients shrina OpenFOAM Running, Solving & CFD 10 October 3, 2013 14:38
Cyclic Boundary Condition Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Running, Solving & CFD 36 July 2, 2012 12:23
[mesh manipulation] Using createPatch in place of couplePatches sripplinger OpenFOAM Meshing & Mesh Conversion 8 November 13, 2009 07:14
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 15:56.