CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

GETVAR subroutines

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 23, 2009, 11:59
Default GETVAR subroutines
  #1
New Member
 
Ahmad
Join Date: Mar 2009
Posts: 5
Rep Power: 17
cryogenicT is on a distinguished road
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
cryogenicT is offline   Reply With Quote

Old   March 23, 2009, 17:33
Default
  #2
Senior Member
 
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17
joey2007 is on a distinguished road
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.
joey2007 is offline   Reply With Quote

Old   March 27, 2009, 04:05
Default
  #3
Zef
New Member
 
Join Date: Mar 2009
Posts: 13
Rep Power: 17
Zef is on a distinguished road
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.
Zef is offline   Reply With Quote

Old   March 28, 2009, 10:12
Default
  #4
Senior Member
 
Join Date: Mar 2009
Location: Europe
Posts: 169
Rep Power: 17
joey2007 is on a distinguished road
You are right. However where it is not required user_getvar is easier to use.
joey2007 is offline   Reply With Quote

Reply

Tags
getvar, return/release/find/get


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 18:20.