|
[Sponsors] |
May 3, 2010, 09:05 |
accesing points of a cell in a mesh
|
#1 |
Member
O R
Join Date: Mar 2009
Posts: 50
Rep Power: 17 |
Dear Foamer,
I hope someone can help me I have an external solver with a structured grid, I wan to interpolate the values of this grid into a polyMesh . 1) I can create one polyMesh with the information from the structured grid 2) or I can create the polyMesh in a more standard way and just interpolate the values of each grid on each other I want to create a Chimera Grid like library , I know how to access the Cell center but to have a complete relationship I need to know the coordinates of the cell vertices, more or less like : forAll(mesh.C(), cellI) { forAll(mesh.cells()[cellI].points(), pointI){ Info << mesh.cells()[cellI].points()[pointI].x()<<endl; } Info<<mesh.C()[cellI].x()<<endl; } How can I write the inner forAll to get the x,y,z coordinates of all points /vertices in one cell ? Thanks |
|
June 28, 2012, 15:43 |
|
#2 |
New Member
Junpeng
Join Date: Jun 2012
Posts: 3
Rep Power: 13 |
Did you figure it out? I have the same problem...
|
|
October 16, 2012, 09:18 |
|
#3 |
Member
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 14 |
Can anyone answer this?
How do you access all of the vertices of a cell? Code:
mesh.points()[cellI] |
|
October 16, 2012, 12:11 |
|
#4 |
Member
Adam
Join Date: Jun 2011
Posts: 32
Rep Power: 14 |
This question is answered here:
http://www.cfd-online.com/Forums/ope...ize-x-y-z.html |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 05:38 |
[snappyHexMesh] problems generating clean mesh | Christian_tt | OpenFOAM Meshing & Mesh Conversion | 2 | June 20, 2019 05:39 |
Cells with t below lower limit | Purushothama | Siemens | 2 | May 31, 2010 21:58 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 04:15 |
Warning 097- | AB | Siemens | 6 | November 15, 2004 04:41 |