|
[Sponsors] |
July 28, 2011, 14:20 |
How to Determine Patch Size
|
#1 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Does anyone know how to determine the size of a patch (in say square meters)? I used snappyHexMesh to generate a mesh that conforms to an irregular surface and now I am trying to determine the inlet boundary patch size.
Thanks, MD |
|
July 28, 2011, 14:57 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi,
If you use the "patchIntegrate" utility, it will tell you the area of a patch. patchIntegrate takes two arguments, the first is the volScalarField you wish to integrate, and the second is the patch you want to integrate over. In your case just specify any volScalarField you have. It will print out the patch area as well as the integrated value. Hope it helps, Philip |
|
July 28, 2011, 17:06 |
|
#3 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Phil,
Thanks for your help. I don't have my boundaries set up yet for this project so I don't have any scaler fields yet either...I will do as you suggested as soon as I get to that point. Thanks again, MD |
|
July 28, 2011, 17:14 |
|
#4 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
||
July 30, 2011, 13:52 |
|
#5 |
Senior Member
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16 |
Phil and doubtsincfd thank you for your suggestions.
Phil I did as you suggested and it worked - thanks. doubtsincfd I took a look at the link you suggested. It looked like a good solution, but maybe a little above my ability in OF at the moment as I haven't tried to do any coding with OF yet. Planning to try soon. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
fluent add additional zones for the mesh file | SSL | FLUENT | 2 | January 26, 2008 12:55 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |