CFD Online URL
[Sponsors]
Home > Forums > OpenFOAM

Integral value over patch

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 25, 2010, 03:22
Default Integral value over patch
  #1
Member
 
Primoz Ternik
Join Date: Apr 2009
Location: Maribor, Slovenia
Posts: 65
Rep Power: 7
ternik is on a distinguished road
Hi Foamers,

for the flow past square cylinder I would like to calculate the integral of variable (e.g. pressure) over the patch (actually part of patch). Numerical integration (Trapezoidal or Simpson's rule) and "Integrate Variables" in ParaView yields the same (O.K., reasonably close) results, but "patchIntegrate" utility in OF-1.5 gives me the following:

Patch area = sum(S) [0 2 0 0 0 0 0] (37.375 591.5 0)
Reading volScalarField p
Integral of p over patch WallSquareFront[3] = (0.151872 0 0)


The difference is quite big (num. int. and ParaView give approx. 3.02538) - can someone, please explain me why or what is the cause? In addition, what numerical integration is used in ParaView and patchIntegrate utility (Trapezoidal, Simpson...)?

wish you nice day,
Primoz
ternik 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
Using starToFoam clo OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 33 September 26, 2012 05:04
StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 04:34
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 09:19
Multicomponent fluid Andrea CFX 2 October 11, 2004 06:12


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