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/)
-   -   Error : CX_Interpret_String not found (https://www.cfd-online.com/Forums/fluent-udf/117602-error-cx_interpret_string-not-found.html)

macfly May 11, 2013 17:50

Error : CX_Interpret_String not found
 
Hi,

I'm trying to interpret a UDF where I have the following macro, I just want to call scheme functions from a UDF:

DEFINE_EXECUTE_AT_END(execute_at_end)
{
CX_Interpret_String("(physical-time-steps 1 10000)");
}


And I get the following error when I try to interpret my UDF:
function "CX_Interpret_String" not found (pc=149)

What's wrong? Is there another way to execute text commands or scheme commands from a UDF?

Thanks,
Frank

blackmask May 12, 2013 20:43

I found in a note written by Mirko Javurek:
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.

I do not know German, either. It means "CX_Interpret_String" is declared but there is no access to the environment. Maybe you should turn to the guy who told you this function for help.

JimKnopf May 27, 2013 07:09

Hi,

did you include udf.h ? in the beginning of your UDF.

But maybe this functionallity is only available for compiled UDFs

greetz,
Jim

macfly May 27, 2013 07:18

Quote:

Originally Posted by JimKnopf (Post 430240)
did you include udf.h ? in the beginning of your UDF.

Yes, I included this line at the beginning of my code: #include "udf.h"


Quote:

Originally Posted by JimKnopf (Post 430240)
But maybe this functionallity is only available for compiled UDFs

I also thought about this possibility, and I didn't try to compile, never took the time to set everything for UDF compilation... Any 'compiler' can check this quick issue?

Frank

blackmask May 27, 2013 19:44

You need to include "cx.h" to avoid the syntax error. But again, while you can use CX_Interpret_String to do something like "display", I did not find a way to execute scheme command like 'iterate'.


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