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

Error : CX_Interpret_String not found

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   May 11, 2013, 17:50
Default Error : CX_Interpret_String not found
  #1
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Laval University, Canada
Posts: 366
Rep Power: 8
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 07:19.
macfly is offline   Reply With Quote

Old   May 12, 2013, 20:43
Default
  #2
Senior Member
 
Join Date: Aug 2011
Posts: 315
Rep Power: 12
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, 07:09
Default
  #3
Member
 
Jim Knopf
Join Date: Dec 2010
Posts: 60
Rep Power: 6
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, 07:18
Default
  #4
Senior Member
 
François Grégoire
Join Date: Jan 2010
Location: Laval University, Canada
Posts: 366
Rep Power: 8
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, 19:44
Default
  #5
Senior Member
 
Join Date: Aug 2011
Posts: 315
Rep Power: 12
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gmsh installation on terminal help spitfire Main CFD Forum 2 August 27, 2014 11:45
[Other] Mesh Importing Problem cuteapathy ANSYS Meshing & Geometry 1 June 7, 2012 13:39
critical error during installation of openfoam Fabio88 OpenFOAM Installation 21 June 2, 2010 03: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 04:26


All times are GMT -4. The time now is 11:27.