CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   some troubles with "USER_GET_GVAR" (https://www.cfd-online.com/Forums/cfx/23633-some-troubles-user_get_gvar.html)

Ardisia February 10, 2007 10:09

some troubles with "USER_GET_GVAR"
 
Hi, 1. I'm trying to use Junction box routine to get pressure on some boundary "wallname". But it fails, CALL USER_GET_GVAR('Air Ideal Gas.Pressure','wallname','areaAve', CRESLT,return_Pressure_Value, CZ,DZ,IZ,LZ,RZ), but if I change "Pressure" to be "Density" or "Temperature", then it's OK to get values, why?

2. How can I use USER_GET_GVAR function to get force in x-direction and y-direction seperately?

Thanks for your help in advance.


Joe February 10, 2007 16:41

Re: some troubles with "USER_GET_GVAR"
 
1 Different variables are stored at different locations e.g. nodes, integration points etc. This may be the problem.

2 The forces are given to you as a 3 component vector you have to extract the components of interest to you.

opaque February 12, 2007 09:35

Re: some troubles with "USER_GET_GVAR"
 
Dear Ardisia,

The variable pressure is not a phase specific variable; therefore, it should not be prefixed with the fluid name.

Try using

CALL USER_GET_GVAR('Pressure','wallname','areaAve', CRESLT,return_Pressure_Value, CZ,DZ,IZ,LZ,RZ)

instead

This is documented in the USER_GETVAR section, and it should apply for USER_GET_GVAR..

Opaque..


Ardisia February 13, 2007 23:21

Re: some troubles with "USER_GET_GVAR"
 
opaque, it works, Use "Pressure" instead of "Air Ideal Gas.Pressure" is OK now!!

Thanks very much....

Ardisia


All times are GMT -4. The time now is 15:29.