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

Cell average on cross section plane

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2016, 09:28
Default Cell average on cross section plane
  #1
Member
 
David
Join Date: Dec 2009
Location: Spain
Posts: 62
Rep Power: 16
David_010 is on a distinguished road
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;

......

}
but I realli dont know how to average only the cells on a cross section of the duct (z constant) and then substract that value to those cells.

Any help is welcome.

Thanks in advance,

David
David_010 is offline   Reply With Quote

Old   June 10, 2016, 11:35
Default
  #2
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
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.
agustinvo 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
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 05:37
[Other] How to create an MRF zone ? aminem OpenFOAM Meshing & Mesh Conversion 2 December 8, 2014 10:45
finding average values for a plane in the vertical direction NJG OpenFOAM Post-Processing 13 March 25, 2013 11:22
Monitor flow through a cross section inside domain Kushagra Mittal CFX 4 August 5, 2008 22:40
Cross section and surface area factor Fabiana CFX 0 January 9, 2006 23:51


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