CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] Evaluation of mass flow by using swak4Foam (https://www.cfd-online.com/Forums/openfoam-community-contributions/112294-evaluation-mass-flow-using-swak4foam.html)

sasanghomi January 25, 2013 09:22

Evaluation of mass flow by using swak4Foam
 
Hi all ,

I want to evaluate the mass flow on a imaginary boundry (this is not a boundry of the case, So this is not a patche)(for example middle of a pipe) by using swak4Foam...Can any one help me??

Sasan.

gschaider January 25, 2013 10:13

Quote:

Originally Posted by sasanghomi (Post 404011)
Hi all ,

I want to evaluate the mass flow on a imaginary boundry (this is not a boundry of the case, So this is not a patche)(for example middle of a pipe) by using swak4Foam...Can any one help me??

Sasan.

If the controlSurface is aligned with cell-faces and you have a faceSet or a faceZone the recipe is here: http://openfoamwiki.net/index.php/Co...e_calcMassFlow

If it is not aligned you'll have to define a surface. I believe there are eamples for that in Examples/other/angledDuctImplicit/system/controlDict

sasanghomi January 25, 2013 14:13

thanks for your reply Bernhard,
Can you guide me for creating faceSet or faceZone?? How do I specify the face that I want to evaluate the mass flow on it??

thanks,
Sasan.

gschaider January 25, 2013 14:30

Quote:

Originally Posted by sasanghomi (Post 404070)
thanks for your reply Bernhard,
Can you guide me for creating faceSet or faceZone?? How do I specify the face that I want to evaluate the mass flow on it??

thanks,
Sasan.

FaceSets and faceZones are either:
- created by the mesh converter (for instance the FluentMeshToFoam-converters create them for "internal boundaries")
- you can create them with specialized utilities: setSet or (for newer OF-versions) topoSet

For the usage of these utilities have a look at the tutorials or the swak-Examples (hint: "grep -r" is quite handy for finding scripts that use those)


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