|
[Sponsors] |
Problem / Misunderstanding with mesh.C() : get the cell centers |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 12, 2020, 18:55 |
|
#21 |
New Member
Join Date: May 2020
Location: India
Posts: 4
Rep Power: 6 |
Just an update (quite unrelated to question asked here)
C() is now --> cellCentres() [Link : ] internalField() is now--> primitiveField() [Link : https://develop.openfoam.com/Develop...b062154026d34] So mesh.c().internalField()[x][y] would now be mesh.cellCentres.primitiveField()[x][y] |
|
June 15, 2020, 04:49 |
|
#22 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
Not quite I think. Using mesh.cellCentres() returns the centres for each cell, you cannot start addressing this as [x][y] and hope that it will work. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cell Reynolds Number | laliong | Main CFD Forum | 12 | September 17, 2019 04:18 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Cell face values computation un unstructured grids | Sergio Rossi | Main CFD Forum | 2 | May 28, 2006 11:04 |
May I use global coordinate of cell centers in subroutine Posdat | H. Shen | Siemens | 4 | March 29, 2000 10:20 |
extremely simple problem... can you solve it properly? | Mikhail | Main CFD Forum | 40 | September 9, 1999 10:11 |