|
[Sponsors] |
May I use global coordinate of cell centers in subroutine Posdat |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 27, 2000, 17:47 |
May I use global coordinate of cell centers in subroutine Posdat
|
#1 |
Guest
Posts: n/a
|
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 |
|
March 28, 2000, 06:36 |
Re: May I use global coordinate of cell centers in subroutine Posdat
|
#2 |
Guest
Posts: n/a
|
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) |
|
March 28, 2000, 10:01 |
Re: May I use global coordinate of cell centers in subroutine Posdat
|
#3 |
Guest
Posts: n/a
|
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? |
|
March 28, 2000, 12:52 |
Thanks
|
#4 |
Guest
Posts: n/a
|
Dear Mr. Luo: I have got the point. Thanks Shen
|
|
March 29, 2000, 10:20 |
Re: May I use global coordinate of cell centers in subroutine Posdat
|
#5 |
Guest
Posts: n/a
|
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Boundary cell looping in posdat.f [v4.06] | hirokata | Siemens | 6 | September 22, 2008 15:34 |
parameter in POSDAT subroutine | tipakorn | Siemens | 1 | July 26, 2006 06:32 |
How to get vertex pressure in posdat.f subroutine? | Henry Huang | Siemens | 0 | March 10, 2006 00:21 |
How can I know a cell is boundary in the posdat.f | wy | Siemens | 1 | August 9, 2002 03:53 |
global coordinate sys | Roberto Ciardulli | Siemens | 2 | December 15, 2000 06:58 |