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

######### Error when Interpreted UDF ############

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2006, 07:04
Default ######### Error when Interpreted UDF ############
  #1
Tang Kuei
Guest
 
Posts: n/a
When I interpreting my UDF, one error message comes out. "function returning void returning float". What can I do for this?

The main error of my UDF code as follow:

DEFINE_PROFILE(inlet_x_velocity, thread, index) { real eof_ux; real eps = 78.0; real vis = 0.911; real zeta = -0.055; real Ek = 5000.0;

eof_ux = -(eps*epsilon0*zeta*Ek/vis);

return eof_ux; }
  Reply With Quote

Old   June 13, 2006, 19:56
Default Re: ######### Error when Interpreted UDF #########
  #2
Fabrice
Guest
 
Posts: n/a
Hi guy,

Your UDF is wrong ("return eof_ux;"... is not allowed). You can check several examples in the UDF manual about the macro DEFINE_PROFILE (section 12 "sample problems", 12.1 "boundary conditions"). It's not difficult.

Regards,

Fabrice.
  Reply With Quote

Old   June 13, 2006, 20:09
Default Thanks
  #3
Tang Kuei
Guest
 
Posts: n/a
Thanks for your information. I think that my code make a big mistake.

Regards
  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
Interpreted UDF Bikash FLUENT 10 December 3, 2019 01:52
A Problem of Fluent Interpreted UDF: parse error knight Fluent UDF and Scheme Programming 25 August 16, 2018 11:26
Interpreted UDF in parallel David Chabot Fluent UDF and Scheme Programming 8 May 30, 2012 04:18
errors in interpreted udf for two macro Asghari FLUENT 0 August 7, 2006 03:29
error of Interpreted udf Zhang Junmei FLUENT 6 December 12, 2001 09:03


All times are GMT -4. The time now is 17:53.