CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Running, Solving & CFD (
-   -   Could you please help me about the cells (

liugx212 December 11, 2005 03:24

Dear all, I have a question
Dear all,

I have a question about how to create cells. I only know using six points which is the center point to express but I want to know how to calculate and how to order these cells. Please give me advice and help.

Thanks deeply,

jballen February 25, 2006 19:44

Hello, Can you tell me how

Can you tell me how to get the x,y,and z coordinates for a given face (ie: faceI of cPatch)?


liugx212 February 26, 2006 16:20

Hi friend: You can try as b
Hi friend:

You can try as belows please. I am not sure but only trying.

forAll(U, cellI)
if(((yb[cellI])>25e-3)||((xb[cellI]<0.05)&&(yb[celli]>0.019)&&(yb[cellI]<0.021)) )
U[cellI].component(vector::Y)=0.0; }

mattijs February 27, 2006 06:04

Hi Jeff, look at polyPath::
Hi Jeff,

look at polyPath::faceCentres() i.e.


All times are GMT -4. The time now is 06:46.