CFD Online Logo CFD Online URL
Home > Forums > CFX

A Generalized USER_GETVAR: Passing the argument variable name to

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   January 28, 2010, 04:15
Default A Generalized USER_GETVAR: Passing the argument variable name to
Join Date: Mar 2009
Posts: 39
Rep Power: 10
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

mixer is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas Main CFD Forum 1 May 30, 2008 04:35
Passing Variable to Thread rt Main CFD Forum 0 May 2, 2006 15:55
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 05:27
FORTRAN Routine - variable passing Malcolm CFX 1 August 11, 2005 18:51
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 21:09

All times are GMT -4. The time now is 12:59.