|
[Sponsors] |
How to find the flux through each cell in a each boundary patch? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 13, 2013, 09:52 |
How to find the flux through each cell in a each boundary patch?
|
#1 |
Member
Hale
Join Date: May 2013
Posts: 53
Rep Power: 13 |
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 ); } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with cyclic boundaries in Openfoam 1.5 | fs82 | OpenFOAM | 37 | November 29, 2024 11:15 |
FvMatrix coefficients | shrina | OpenFOAM Running, Solving & CFD | 10 | October 3, 2013 15:38 |
Cyclic Boundary Condition | Luiz Eduardo Bittencourt Sampaio (Sampaio) | OpenFOAM Running, Solving & CFD | 36 | July 2, 2012 13:23 |
[mesh manipulation] Using createPatch in place of couplePatches | sripplinger | OpenFOAM Meshing & Mesh Conversion | 8 | November 13, 2009 08:14 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |