CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Could you please help me about the cells (https://www.cfd-online.com/Forums/openfoam-solving/60312-could-you-please-help-me-about-cells.html)

liugx212 December 11, 2005 02: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,
Guo

jballen February 25, 2006 18:44

Hello, Can you tell me how
 
Hello,

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

Respectfully
Jeff

liugx212 February 26, 2006 15: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)
{
U[cellI].component(vector::Z)=0.0;
if(((yb[cellI])>25e-3)||((xb[cellI]<0.05)&&(yb[celli]>0.019)&&(yb[cellI]<0.021)) )
{
U[cellI].component(vector::X)=0.0;
U[cellI].component(vector::Y)=0.0; }
}

mattijs February 27, 2006 05:04

Hi Jeff, look at polyPath::
 
Hi Jeff,

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

cPatch.faceCentres()


All times are GMT -4. The time now is 05:04.