CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   GETVAR subroutines (http://www.cfd-online.com/Forums/cfx/62900-getvar-subroutines.html)

cryogenicT March 23, 2009 11:59

GETVAR subroutines
 
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

joey2007 March 23, 2009 17:33

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.

Zef March 27, 2009 04:05

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.

joey2007 March 28, 2009 10:12

You are right. However where it is not required user_getvar is easier to use.


All times are GMT -4. The time now is 09:37.