CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CD-adapco (http://www.cfd-online.com/Forums/cd-adapco/)
-   -   Adjacent cell number (http://www.cfd-online.com/Forums/cd-adapco/53046-adjacent-cell-number.html)

Jing October 8, 2002 10:25

Adjacent cell number
 
HI!

I need to know the cell number of the cell adjacent to a special cell. Could you be so kind to tell me by which parameter or by which way I can get it?

Thank you!

Marc October 9, 2002 04:50

Re: Adjacent cell number
 
You get the command by unsing a common block ( /DCO5/ ). It is named LQ(I,IC), which wirtes back the neighbour of STAR Cell IC through face I I: 1: Bottom, 2: Top, 3:South 4:North 5:West 6:East

Hope that helps :)

Jing October 11, 2002 04:36

Re: Adjacent cell number
 
Thank you for the reply! But I can not find the common block (/DC05) as well as the parameter LQ(I,IC). Could you be so kind to tell me where I can find them and in which user subroutine they are inputted in?

Thanks again!

Jing

Marc October 11, 2002 05:04

Re: Adjacent cell number
 
You can implement the common block in all subroutines (whereever you need them), but it is already done in posdat.f, so there you can use the LQ(I,IC).

Marc Poppner

PS: Be careful the common block is DCO5, not DC05. (an O instead of a zero)

Jiaying Xu October 18, 2002 10:59

Re: Adjacent cell number
 
Does the array LQ(I,IC) also record the neighbouring relations if I use unstructured mesh? I am also interested in the issue for my user coding.

Thanks for your further hints.

Jiaying

marc October 21, 2002 06:29

Re: Adjacent cell number
 
I think so, you have a more detailed discription of the cell faces in the manual (depending on the sequence of its vertices), which can be applied on all cell afaik. if you have collapsed cells, the "lost" face will be ignored.

greez Marc


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