CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error : CX_Interpret_String not found

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2013, 18:50
Default Error : CX_Interpret_String not found
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
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

Last edited by macfly; May 27, 2013 at 08:19.
macfly is offline   Reply With Quote

Old   May 12, 2013, 21:43
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
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.
blackmask is offline   Reply With Quote

Old   May 27, 2013, 08:09
Default
  #3
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 16
JimKnopf is on a distinguished road
Hi,

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

But maybe this functionallity is only available for compiled UDFs

greetz,
Jim
JimKnopf is offline   Reply With Quote

Old   May 27, 2013, 08:18
Default
  #4
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Canada
Posts: 392
Rep Power: 17
macfly is on a distinguished road
Quote:
Originally Posted by JimKnopf View Post
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 View Post
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
macfly is offline   Reply With Quote

Old   May 27, 2013, 20:44
Default
  #5
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
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'.
blackmask is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmsh installation on terminal help spitfire Main CFD Forum 4 July 27, 2017 16:11
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 2 June 24, 2017 06:29
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 04:01
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 08:21
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 05:26


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