CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   whats the difference between patch and faceZones? (http://www.cfd-online.com/Forums/openfoam-solving/111965-whats-difference-between-patch-facezones.html)

immortality January 18, 2013 15:21

whats the difference between patch and faceZones?
 
I saw these examples.so when each is used for determining the flow rate?
"Mass flow examples
Usually OpenFOAM solvers define a face-flow field phi that only has to be summed on patches

patchMassFlow
{
type patchExpression;
accumulations (
sum
);
patches (
inlet
outlet
);
expression "phi";
verbose true;
}
On faceZones this is a bit more complicated as the orientation of the face has to be taken into account:

flowBeforeZone
{
type swakExpression;
valueType faceZone;
zoneName beforeFilter;
expression "phi*flip()";
accumulations (
sum
);
verbose true;
}"


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