CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Siemens (https://www.cfd-online.com/Forums/siemens/)
-   -   How to use the other cell in subroutine? (https://www.cfd-online.com/Forums/siemens/54064-how-use-other-cell-subroutine.html)

Rich October 2, 2004 00:11

How to use the other cell in subroutine?
 
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.

Richard October 2, 2004 06:44

Re: How to use the other cell in subroutine?
 
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.


All times are GMT -4. The time now is 14:26.