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

Accessing neighbor cells fields

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By duongquaphim

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 11, 2012, 15:11
Default Accessing neighbor cells fields
  #1
New Member
 
Join Date: Oct 2011
Posts: 27
Rep Power: 14
antoniofct is on a distinguished road
Hello all,

I am trying to do an average of cells neighbors. For instance, if I want to get an average of Temperature in the internal field I can easily type

Code:
sum(T.internalField())/mesh.nCells()
.

What could be the function to do it just in cell neighbors? Could it be inside geometricField.C?

Thanks!

António
antoniofct is offline   Reply With Quote

 


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
Time averaged fields on a defined time range Yann OpenFOAM Post-Processing 8 August 7, 2019 04:46
Accessing fields and dictionaries from within a BC implementation alberto OpenFOAM Running, Solving & CFD 12 December 6, 2011 09:30
Missing fields in reconstructPar flowris OpenFOAM 1 July 9, 2010 02:48
domainIntegrate, dieselFoam and Lagrangian Fields mturcios777 OpenFOAM 0 May 14, 2010 15:16
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15


All times are GMT -4. The time now is 08:30.