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

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

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

Reply
 
LinkBack Thread Tools 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: 4
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

Thread Tools
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 On
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 37 January 7, 2015 01: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
Using createPatch in place of couplePatches sripplinger OpenFOAM Mesh Utilities 8 November 13, 2009 08:14
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15


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