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 Tree1Likes
  • 1 Post By alexeym

Reply
 
LinkBack Thread Tools 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: 3
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
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,808
Rep Power: 31
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.
wyldckat likes this.
alexeym is offline   Reply With Quote

Reply

Tags
area calculation, patch

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
Non overlap area fractions saisanthoshm88 CFX 11 September 17, 2015 18:42
dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 5 March 2, 2015 18:19
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 02:01
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 09:29.