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

search 5 or 10 cell upper

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2020, 07:35
Default search 5 or 10 cell upper
  #1
New Member
 
Lotfian
Join Date: Oct 2016
Posts: 1
Rep Power: 0
Ali Lotfian is on a distinguished road
Hello Friend
I can create a loop by typing: forAll(mesh().C() [celli]); for parameters inside a grid with an index equal to celli. now how can i applly my calculations for parameters (such as U for example) that are 5 or 10 cell upper or lower (not lefter or righter) from the curren cell of curren loop ???
for example i want to calculate for all cells nu = 0.5×(U(celli - 10) + U(celli + 10)) insted of nu = U(celli) ; inside my loop
Ali Lotfian is offline   Reply With Quote

Reply

Tags
cell, search cell


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
Neighboring cells in tetrahedral mesh vishwesh OpenFOAM Programming & Development 9 November 10, 2017 07:06
decomposePar problem: Cell 0contains face labels out of range (Again)) limonegiallo OpenFOAM Pre-Processing 4 August 28, 2017 05:18
Simulating fire in a tunnel luca1992 OpenFOAM 14 August 16, 2017 13:50
[General] 2 datas on one plot Akuji ParaView 46 December 1, 2013 14:06
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 21:58


All times are GMT -4. The time now is 02:38.