CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Compiled UDF

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

LinkBack Thread Tools Display Modes
Old   February 7, 2002, 13:15
Default Compiled UDF
Lu Hu
Posts: n/a
Anybody has tried to use thread_loop_c in compiled UDF(OS: Win2k Professional)? I wrote one like this:

#include "udf.h"

extern Domain* domain;


Thread *t;

cell_t c;







} }

I can compile the file and get the .dll file. But when I tried to run the udf in Fluent, it gave the error message: Error: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

Seems I cannot use thread_loop_c. Has anybody encountered similar problem? Thanks.


  Reply With Quote

Old   February 14, 2002, 09:15
Default Re: Compiled UDF
Posts: n/a

the reason of error is "extern Domain* domain". this macro does not work on any Windows . So you have to replace this macro to "Domain *domain = Get_Domain(1)".

  Reply With Quote

Old   February 14, 2002, 13:19
Default Re: Compiled UDF
Lu Hu
Posts: n/a
Thank you. It works!
  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
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
I want to use pressure of 1 face in udf that compiled on other face iman_1844 Fluent UDF and Scheme Programming 3 June 10, 2010 12:55
Why udf can not be compiled in my pc? Xinqiang FLUENT 0 June 10, 2009 14:32
difference between udf compiled and udf interprete chandra sekhar FLUENT 2 April 11, 2006 00:04
how to quit compiled or interprited UDF tian FLUENT 0 April 8, 2003 23:53

All times are GMT -4. The time now is 06:19.