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

How to Determine Patch Size

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 28, 2011, 13:20
Default How to Determine Patch Size
  #1
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 137
Rep Power: 7
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
Senior Member
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin,Ireland
Posts: 568
Rep Power: 19
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: 137
Rep Power: 7
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: 7
doubtsincfd is on a distinguished road
How to access to faces of a patch
doubtsincfd is offline   Reply With Quote

Old   July 30, 2011, 12:52
Default
  #5
Senior Member
 
Matthew Denno
Join Date: Feb 2010
Posts: 137
Rep Power: 7
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

Thread Tools
Display Modes

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 On
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 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
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 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 02:20.