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 Members List Search Today's Posts Mark Forums Read

Like Tree9Likes
  • 1 Post By eivind
  • 8 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2017, 10:29
Default Area of patch
  #1
New Member
 
Eivind Sønnesyn Willmann
Join Date: Jan 2017
Posts: 5
Rep Power: 6
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, 15:52
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,926
Rep Power: 35
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 07:30
Non overlap area fractions saisanthoshm88 CFX 11 September 17, 2015 18:42
Compressor Simulation using rhoPimpleDyMFoam Jetfire OpenFOAM Running, Solving & CFD 107 December 9, 2014 13:38
createPatch Segmentation Fault (CORE DUMPED) sam.ho OpenFOAM Pre-Processing 2 April 21, 2014 02:01
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 20:35.