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

Integral value over patch

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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


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
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
[Other] StarToFoam error Kart OpenFOAM Meshing & Mesh Conversion 1 February 4, 2010 05:38
CheckMeshbs errors ivanyao OpenFOAM Running, Solving & CFD 2 March 11, 2009 03:34
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 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 22:15.