|
[Sponsors] |
June 10, 2016, 10:28 |
Cell average on cross section plane
|
#1 |
Member
David
Join Date: Dec 2009
Location: Spain
Posts: 62
Rep Power: 16 |
Dear Foamers,
I'm working on solving the dimensionless temperature in a duct. I need, for each iteration, to substrac the average value of all the cells in the same cross section to those cells, in order to have the average equal to 0. This has to be done for each cross section of the duct. Im trying to do it by suing the for loop: Code:
forAll(mesh.cells(),cellI) { // Loop over all the cells in the mesh ++numCells_1; ...... } Any help is welcome. Thanks in advance, David |
|
June 10, 2016, 12:35 |
|
#2 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 314
Rep Power: 15 |
Hola David
The idea to do it should average for each value of z (the direction of you flow), but I don't know ho to do that. Do you need it during you simulation? Otherwise you can postprocess your data after the simulation. Another idea should be to modify your temperature in order to have an approximate value to 0 in your domain, so modifying your temperature BC. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
y+ and u+ values with low-Re RANS turbulence models: utility + testcase | florian_krause | OpenFOAM | 114 | August 23, 2023 06:37 |
[Other] How to create an MRF zone ? | aminem | OpenFOAM Meshing & Mesh Conversion | 2 | December 8, 2014 11:45 |
finding average values for a plane in the vertical direction | NJG | OpenFOAM Post-Processing | 13 | March 25, 2013 12:22 |
Monitor flow through a cross section inside domain | Kushagra Mittal | CFX | 4 | August 5, 2008 23:40 |
Cross section and surface area factor | Fabiana | CFX | 0 | January 10, 2006 00:51 |