CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   SETWRK & GETWRK (CFX4) (http://www.cfd-online.com/Forums/cfx/20527-setwrk-getwrk-cfx4.html)

RK August 2, 2004 13:45

SETWRK & GETWRK (CFX4)
 
Dear Someone:

I have calculated a new density value in USRDEN. Now, I would like to use the calculated DENN from USRDEN in USRCND. This is what I have been recommended to implement: put the values in user work space in USRDEN & then use it in USRCND. But the way I have done using SETWRK in USRDEN and GETWRK in USRCND does not do the job. Can anyone suggest anything?

Thanks in advance.

RK

Dougal McQueen August 5, 2004 10:34

Re: SETWRK & GETWRK (CFX4)
 
Use USRWRK to set the work spacre for the variable. Then GETWRK to find the pointer to where the memory has been allocated, and either set or call the variable from that position in the stack.


All times are GMT -4. The time now is 01:44.