|
[Sponsors] |
October 2, 2004, 00:11 |
How to use the other cell in subroutine?
|
#1 |
Guest
Posts: n/a
|
As I know, within user subroutine (e.g. SORENT.f, SORCA.f...) we use the cell-based values, also the process of calculation is performed on the cell-based values. But I want to use the other cell value (Pressure, temperature, concentration...).
For example, in SORENT.f Current cell number is 1000 now, and I want to use the temperature or pressure values of cells within cell number from 5000 to 10000. How to handle this problem? Thanks for reading my question. |
|
October 2, 2004, 06:44 |
Re: How to use the other cell in subroutine?
|
#2 |
Guest
Posts: n/a
|
One way is to collect the values you want in a subroutine which has access to all the cells simultaneously (e.g. posdat) and put them in your own common block.
Another way is to contact cd and ask them for the common block which star itself uses to store these arrays, if there is one. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
cell velocity U and its cell face area | Chinayu | Siemens | 0 | May 6, 2006 23:44 |
Subroutine and cell number | Celia | Siemens | 7 | December 1, 2003 10:19 |
How to get index of a cell by user subroutine? | windhair | CFX | 1 | November 19, 2003 11:30 |
Cell-vertex and cell-centered finite volume method | Praveen | Main CFD Forum | 4 | September 9, 2003 00:58 |
May I use global coordinate of cell centers in subroutine Posdat | H. Shen | Siemens | 4 | March 29, 2000 10:20 |