|
[Sponsors] |
December 15, 2018, 14:13 |
patchIntegrate in OF-6 & previous versions
|
#1 |
New Member
Join Date: Dec 2018
Posts: 1
Rep Power: 0 |
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? |
|
Tags |
boundary, integrate field, patch, patchintegrate |
|
|
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 |