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

Area of patch

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes
  • 1 Post By eivind
  • 9 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2017, 11:29
Default Area of patch
  #1
New Member
 
Eivind Sønnesyn Willmann
Join Date: Jan 2017
Posts: 5
Rep Power: 9
eivind is on a distinguished road
Hi!
I need to know the area of my inlet patch in order to be able to specify the average velocity from a giver flow rate.
I'm using the mappedPatch BC for the inlet with an average velocity, and a snappyHexMesh-ed mesh.

Is there a neat way to find the area of a patch?

Cheers,
Eivind
Luttappy likes this.
eivind is offline   Reply With Quote

Old   April 6, 2017, 16:52
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

If you have field, which is constant over the patch, you can use

Code:
postProcess -func 'patchIntegrate(name=inlet,field)'
Or you can open case in paraview, select inlet patch in 'Mesh regions' and use Integrate Variables filter. In SpreadSheetView, you select Attribute 'Cell Data', and there is column Area with area of the patch.
alexeym is offline   Reply With Quote

Reply

Tags
area calculation, patch


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
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 08:30
Non overlap area fractions saisanthoshm88 CFX 11 September 17, 2015 19:42
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 14:38
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 03:01
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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