|
[Sponsors] |
A Generalized USER_GETVAR: Passing the argument variable name to |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 28, 2010, 04:15 |
A Generalized USER_GETVAR: Passing the argument variable name to
|
#1 |
Member
Mandar
Join Date: Mar 2009
Posts: 39
Rep Power: 17 |
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 |
|
|
|
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 |