CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Accessing Cell Properties (http://www.cfd-online.com/Forums/openfoam/74282-accessing-cell-properties.html)

arkangel March 29, 2010 12:00

Accessing Cell Properties
 
Dear Forums members

I want to go through all cell of a domain and extract some properties

of example if i want to have the center coordinates

forAll(Cell, cellI){

mesh.C()[celli].x()
mesh.C()[celli].y()
mesh.C()[celli].z()
mesh.V()[celli]
}

any idea how it works ?
I also want to access the coordinates of points that made a cells /face


All times are GMT -4. The time now is 20:08.