|
[Sponsors] |
April 2, 2020, 08:35 |
search 5 or 10 cell upper
|
#1 |
New Member
Lotfian
Join Date: Oct 2016
Posts: 1
Rep Power: 0 |
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 |
|
Tags |
cell, search cell |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Neighboring cells in tetrahedral mesh | vishwesh | OpenFOAM Programming & Development | 9 | November 10, 2017 08:06 |
decomposePar problem: Cell 0contains face labels out of range (Again)) | limonegiallo | OpenFOAM Pre-Processing | 4 | August 28, 2017 06:18 |
Simulating fire in a tunnel | luca1992 | OpenFOAM | 14 | August 16, 2017 14:50 |
[General] 2 datas on one plot | Akuji | ParaView | 46 | December 1, 2013 15:06 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 22:58 |