CFD Online Logo CFD Online URL
Home > Forums > FLUENT

interpret or compile an UDF (emergency)

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

LinkBack Thread Tools Display Modes
Old   August 22, 2007, 11:29
Default interpret or compile an UDF (emergency)
Posts: n/a
hi all, I am traing to simulate a flow with evaporation, so I hav write an UDF to calculate the masse transfert betwin phase 1 and 2, in the mixture model, the probleme is that if I use the interpreted methode to hook it, that go right but I get a fatal errore messege when I start the iteration, and if it with the compile method, the UDF is compiled withe no probleme but it impossibole to load it (error messege : 1 fichier(s) copi‚(s).

1 fichier(s) copi‚(s). (system "copy D:\Fluent.Inc\fluent6.3.26\src\makefile_nt.udf libudf\ntx86\2d\makefile")

1 fichier(s) copi‚(s). (chdir "libudf")() (chdir "ntx86\2d")() liq_gas_source-p_clap.c # Generating udf_names.c because of makefile liq_gas_source-p_clap.obj udf_names.c udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0

Done. "C:/Documents and Settings/Administrateur/Bureau"

Opening library "libudf"... Error: open_udf_library: Le fichier spécifié est introuvable.

Error Object: ()) so if you have an idea about the problem please help I am realy in need of this help please
  Reply With Quote

Old   August 26, 2007, 12:58
Default Re: interpret or compile an UDF (emergency)
Pedro ROS
Posts: n/a
error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0

By this, it seems there are extra spaces or other errors on your C++ code of the UDF, therefore the library is not well created, so it cannot be loaded. Tips to find the error: enter commentaries on the code of your UDF; Try to rewrite the UDF as simple as possible. Check and erase spaces in between the MACRO name and the parenthesis ...good luck

  Reply With Quote


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 10:48
Interpret three UDF for property Atsu FLUENT 4 April 22, 2006 15:04
why results different for Compile and Interpret? Joey FLUENT 3 April 6, 2004 17:19
compile the UDF Li Jingping FLUENT 2 April 14, 2003 21:18

All times are GMT -4. The time now is 02:58.