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

patchIntegrate in OF-6 & previous versions

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 15, 2018, 14:13
Default patchIntegrate in OF-6 & previous versions
  #1
New Member
 
Join Date: Dec 2018
Posts: 1
Rep Power: 0
my101 is on a distinguished road
Hello Foamers,

I am doing a simulation for heat transfer in a CPU cooler using laplacianFoam. I want to calculate the integral of a field (e.g. gradTz) over a boundary/patch.

In OF-2.1.1, patchIntegrate utility <patchIntegrate -latestTime gradTz EXCHANGE_SURFACE> gives the output:

Time = 240
Area vector of patch EXCHANGE_SURFACE[0] = (-1.10854e-17 1.18664e-19 0.0013702)
Area magnitude of patch EXCHANGE_SURFACE[0] = 0.0188973
Reading volScalarField gradTz
Integral of gradTz over vector area of patch EXCHANGE_SURFACE[0] = (1.0814e-08 -7.43949e-08 -0.00792159)
Integral of gradTz over area magnitude of patch EXCHANGE_SURFACE[0] = -2.36515
End



In OF-6, patchIntegrate utility is replaced by a postProcess function <postProcess -latestTime -func 'patchIntegrate(name=EXCHANGE_SURFACE,gradTz)'> which gives the following output:

surfaceFieldValue patchIntegrate(name=EXCHANGE_SURFACE,gradTz):
total faces = 52131
total area = 0.0188973
Time = 240
Reading fields:
volScalarFields: gradTz
Executing functionObjects
surfaceFieldValue patchIntegrate(name=EXCHANGE_SURFACE,gradTz) write:
areaIntegrate(EXCHANGE_SURFACE) of gradTz = -2.36514
End



My queries are:
1) How can I get integral-over-vector-area (xValue yValue zValue) along with the magnitude in OF-6 as it shows in OF-2.1.1?
2) Integral-over-area magnitude is not the magnitude of integral-over-vector-area vector. What is the relation b/w integral over vector area and integral over area magnitude?
my101 is offline   Reply With Quote

 

Tags
boundary, integrate field, patch, patchintegrate


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] Using different MPI types and versions with OpenFOAM spaceprop OpenFOAM Installation 2 May 28, 2018 03:31
Kernel for new CPUs Simbelmynë Hardware 22 January 5, 2018 16:41
[OpenFOAM.org] Problem installation OpenFOAM-dev FlyingCat OpenFOAM Installation 15 December 31, 2017 11:53
interFoam pressure miscalculation in 2.3 (wrt previous versions) Phicau OpenFOAM Bugs 6 November 25, 2015 09:42
OpenFOAM v.2.x Courant Number 4 time higher then in previous versions makaveli_lcf OpenFOAM Running, Solving & CFD 8 February 18, 2012 21:28


All times are GMT -4. The time now is 03:05.