CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How to Determine Patch Size

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 28, 2011, 13:20
Default How to Determine Patch Size
  #1
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
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
mgdenno is offline   Reply With Quote

Old   July 28, 2011, 13:57
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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
bigphil is offline   Reply With Quote

Old   July 28, 2011, 16:06
Default
  #3
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
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
mgdenno is offline   Reply With Quote

Old   July 28, 2011, 16:14
Default
  #4
Senior Member
 
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 16
doubtsincfd is on a distinguished road
http://www.cfd-online.com/Forums/ope...ces-patch.html
doubtsincfd is offline   Reply With Quote

Old   July 30, 2011, 12:52
Default
  #5
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 138
Rep Power: 16
mgdenno is on a distinguished road
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.
mgdenno is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


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