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

A Generalized USER_GETVAR: Passing the argument variable name to

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2010, 04:15
Default A Generalized USER_GETVAR: Passing the argument variable name to
  #1
Member
 
Mandar
Join Date: Mar 2009
Posts: 39
Rep Power: 17
mixer is on a distinguished road
Need a help here,

The USER_GETVAR needs a user_variable_name. I want to derive this user variable name from the argument that i pass to function, says ARGS(1,1). The argument ARGS(1,1) could be anything , velocity u, velocity v ,or velocity w, and, i need a gradient of the argument.

so, i want to generalize USER_GETVAR. Can anyone suggest what are the commands to convert the ARGS(1,1) into a character string. and how to convert this whole word into character fluid.ARGS(1,1).Gradient so, that i can pass,

user_variable_name = fluid.ARGS(1,1).Gradient into USER_GETVAR.

now, 'fluid name', i can get using GET_PHASE_FROM_VAR (CPVAR, CPHASE) , and
CALL CONVERT_NAME_S2U ('Phase',CPHASE,' ',User_Phase_Name,
& CRESLT, CZ,DZ,IZ,LZ,RZ) & User_Phase_Name(1:LENACT(User_Phase_Name)).ARGS(1, 1).
& // '.Gradient'

but, how do i convert ARGS(1,1) as a character string.


thanks for help and hints

regards
mandar
mixer is offline   Reply With Quote

Reply


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
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 05:35
Passing Variable to Thread rt Main CFD Forum 0 May 2, 2006 16:55
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
FORTRAN Routine - variable passing Malcolm CFX 1 August 11, 2005 19:51
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09


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