CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   CX_Interpret_String doesn't work (https://www.cfd-online.com/Forums/fluent-udf/139330-cx_interpret_string-doesnt-work.html)

eneja July 22, 2014 08:19

CX_Interpret_String doesn't work
 
Hey everyone!

I would like to use CX_Interpret_String in my UDF but it doesn't work.
I my UDF, I wrote this:
CX_Interpret_String("(ti-menu-load-string \"fi int read ok velocity0.2.ip\")");

Fluent returns: unbound variable
If I just use:
CX_Interpret_String("(newline)");
then it works. So the problem is if there are more words...
Anyone has an idea what could be wrong??
What is scheme command to read interpolation?

I would really appreciate any help!

blackmask July 22, 2014 20:46

I have read that CX_Interpret_String does not work somewhere. So do not count on it.

eneja July 23, 2014 02:37

What do you mean with 'doesn't work somewhere'? Depends on version, OS or something else?

blackmask July 23, 2014 05:05

It simply does not work. It is an non-documented API and no one guarantees that it works. I have seen from else where that this API does not work.

I have found the source. It is written in "FLUENT Scheme Dokumentation" by Mirko Javurek.


Um Scheme-Funktionen aus einer UDF aufzurufen, ist zur Zeit keine Möglichkeit bekannt; die C-Funktion
CX_Interpret_String("scheme-command-string")
- deklariert in Fluent.Inc/fluentX.Y/cortex/src/cx.h - interpretiert zwar den „scheme-command-string“, hat aber keinen Zugriff auf das Environment.


All times are GMT -4. The time now is 23:32.