CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Adding a code for ControlDict for calculaitng Flux (https://www.cfd-online.com/Forums/openfoam/223868-adding-code-controldict-calculaitng-flux.html)

mwmalkawi January 30, 2020 01:30

Adding a code for ControlDict for calculaitng Flux
 
Hi All,

Can anyone help me in adding a code in contorlDict to calculate the flux i have incompressible pipe flow with one inlet and two outlets and would like to calculate the flux through these boundaries in order to know if the solution has reached steady state or not

Please note i am using OpenFoam V1812

I have added the below but it is giving erorr regarding faceZone so maybe you got a differenet way or code

fluxSummary1
{
type fluxSummary;
libs ("libfieldFunctionObjects.so");
mode faceZone;

faceZone
("inlet1"
"outlet1"
"outlet2");
  
}


All times are GMT -4. The time now is 21:36.