|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
ak
Join Date: May 2011
Posts: 62
Rep Power: 4 ![]() |
Hello,
Does anyone know how we can get (x,y,z) of cell centers in the mesh? I want to access cells whose center's x coordinate lies 10mm either side of xo = 0.05 Thank you, amit |
|
|
|
|
|
|
|
|
#2 |
|
Member
ak
Join Date: May 2011
Posts: 62
Rep Power: 4 ![]() |
i think i got it
mesh.C[celli].component(0) should work... (for x location) |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Posts: 1,144
Rep Power: 19 ![]() |
Yes that is true, however, if this limit is static throughout the simulation, then you should consider cellSets combined with setsToZones. This will give you access to a cellZone inside the simulation, where the cells, which fulfill your spatial requirement, are listed.
In this way you do not have to recompile your solver in case you decide to change x0 or any other parameter. Kind regards, Niels |
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cells with t below lower limit | Purushothama | CD-adapco | 2 | May 31, 2010 21:58 |
| How to determine the location of the cell center | zmester | Main CFD Forum | 0 | October 11, 2009 06:58 |
| Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 2 | July 15, 2005 04:15 |
| Warning 097- | AB | CD-adapco | 6 | November 15, 2004 04:41 |
| About Cell Center | Harry | FLUENT | 0 | December 3, 2000 04:33 |