CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > 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

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?
Join Date: May 2013
Posts: 53
Rep Power: 6
Hale is on a distinguished road

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?

        type            faceSource;
        functionObjectLibs ("");
        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?

            rho phi alpha1
Hale is offline   Reply With Quote


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 36 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 10:31.