CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Error: rpgetvar: coordeval: undefined variable (http://www.cfd-online.com/Forums/fluent-udf/113609-error-rpgetvar-coordeval-undefined-variable.html)

abir February 22, 2013 23:17

Error: rpgetvar: coordeval: undefined variable
 
Hi
why UDF containing the following line
if (RP_Get_Integer("coordeval")==1) {
coord_coeff(f_thread);}

gives

Error: rpgetvar: coordeval: undefined variable

What is the solution? I"ll be gratefull if anyone can help.
Thanks in advance.

Abir

msaeedsadeghi February 23, 2013 02:07

Because the variable input should be set using GUI. You should make a GUI, else should set it manually in the UDF and delete rpgetvar.

abir February 23, 2013 07:02

Error: rpgetvar: coordeval: undefined variable
 
Hi
Thanks a lot for your quick response. I could not follow you. "coordeval" is a scheme variable. But value of coordeval is not known. Have I to put in the following way in UDF of Fluent?

#define coordeval value

If possible Please explain in detail. Have a nice time.

Abir

msaeedsadeghi February 23, 2013 07:31

Use 1 for coord_c... to enable it.


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