CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CD-adapco (https://www.cfd-online.com/Forums/cd-adapco/)
-   -   May I use global coordinate of cell centers in subroutine Posdat (https://www.cfd-online.com/Forums/cd-adapco/52378-may-i-use-global-coordinate-cell-centers-subroutine-posdat.html)

H. Shen March 27, 2000 16:47

May I use global coordinate of cell centers in subroutine Posdat
 
Question:

When I tried to make a user subroutine "Postdat", I need to know the global coordinates of cell centers. However, I checked all the data avialable in Postdat file and did not find these data. I don't know if there is no these data in this User Subroutine or I have to use some other method to obtaine these coordinates. If some one has ideas about this, please let me know. Thanks H. Shen

J. Y. Luo March 28, 2000 05:36

Re: May I use global coordinate of cell centers in subroutine Posdat
 
Dear Shen,

Posdat is an extremely powerful routine which can be used for almost any purpose. STAR is designed such a way that you can access almost any data. The best way to achieve it is by using the common block such that

C*****************************

SUBROUTINE POSDAT(KEY,...)

C*********************************

INCLUDE '../parm.inc'

COMMON/DCO21/ CX(3,-NBMAX:NCTMAX)

COMMON /C1C001/ ICLMAP(4)

where CX is the global coordinates of cell center. For example, I want to visit all coordinate:

do ip=1,ncell (ncell - total no. of fluid cells)

x=cx(1,ip)

y=cx(2,ip)

z=cx(3,ip)

enddo

For any star cell no., you can also get its PROSTAR cell no.

IPprostar=ICLMAP(IPstar)

Steve Amphlett March 28, 2000 09:01

Re: May I use global coordinate of cell centers in subroutine Posdat
 
Obviously, with access to all STAR's named commons you can do just about anything you like. However, I can find no documentation that describes the named common blocks: DCO21 and C1C001, so I can't afford to risk using them.

Is there a manual reference for this information?


H. Shen March 28, 2000 11:52

Thanks
 
Dear Mr. Luo: I have got the point. Thanks Shen

J. Y. Luo March 29, 2000 09:20

Re: May I use global coordinate of cell centers in subroutine Posdat
 
Hi, Steve,

All common blocks can be found in $STARDIR/solve/starin.f. It's not quite possible to describe all variables. But if you need some specific information, please let me know.



All times are GMT -4. The time now is 19:10.