|
[Sponsors] |
March 23, 2009, 11:59 |
GETVAR subroutines
|
#1 |
New Member
Ahmad
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
Hi,
I'm using the subroutine GETVAR to couple a combustion code to CFX. I am a bit confused about the the different options of the argument ACTION (type of action taken by GETVAR): 1. RETURN 2. RELEASE 3. FIND 4. GET I couldn't find any documentation for this subroutine. Could anyone explain the meaning and the difference between these options? Thanks |
|
March 23, 2009, 17:33 |
|
#2 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
You should use user_getvar which is documented in the help.
In the user fortran course I took, they said that getvar is an internal call which is not recommended to use and therefore not documented. |
|
March 27, 2009, 04:05 |
|
#3 |
New Member
Join Date: Mar 2009
Posts: 13
Rep Power: 17 |
GETVAR can be used with three types of ACTION argument:
1. RETURN 2. RECALC 3. RELEASE The first one simply returns the data stored in memory. The second one preforms recalculation of the certain data. Each call with RETURN and RECALC arguments must be supplied by the subsequent call of GETVAR with RELEASE argument. I've never heard about arguments GET and FIND in function GETVAR. 2joey2007: Function USER_GETVAR have limited functionality and cannot be used in junction box routines. So if you want to calculate something in JB routine you have to use GETVAR instead of USER_GETVAR. |
|
March 28, 2009, 10:12 |
|
#4 |
Senior Member
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17 |
You are right. However where it is not required user_getvar is easier to use.
|
|
Tags |
getvar, return/release/find/get |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Passing data/variables between subroutines | Emmanuel Resch | Siemens | 1 | August 16, 2007 13:44 |
How to use the routine GETVAR in CFX10. | windhair | CFX | 3 | April 5, 2006 17:21 |
Prostar Tables - Sub. for subroutines | Xobile | Siemens | 1 | November 17, 2004 00:38 |
user subroutines in newer versions | Sheila | Siemens | 0 | September 22, 2004 20:10 |
User subroutines | Mir | Siemens | 10 | May 4, 2002 17:16 |