|
[Sponsors] |
![]() |
![]() |
#1 |
Member
Primoz Ternik
Join Date: Apr 2009
Location: Maribor, Slovenia
Posts: 65
Rep Power: 18 ![]() |
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 |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Commercial meshers] Using starToFoam | clo | OpenFOAM Meshing & Mesh Conversion | 33 | September 26, 2012 04:04 |
[Other] StarToFoam error | Kart | OpenFOAM Meshing & Mesh Conversion | 1 | February 4, 2010 04:38 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 02:34 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 08:19 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 05:12 |