CFD Online Logo CFD Online URL
Home > Forums > FLUENT

void udf function expected

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

LinkBack Thread Tools Display Modes
Old   October 16, 2003, 06:35
Default void udf function expected
Posts: n/a
Hi to all! I have read the new "udf problem too" posted by Guevara from Friday 7 March 2003. And like to him, I have meet with similar problem. I wrote my udf and successfully compiled in Fluent 6.1, but when I wanted to start the initialization field and iterations I couldn't. I received an error message: "Error Object: () chip-exec: p_source_m0: wrong return type: void udf function expected". One of pieces from my udf:

DEFINE_SOURCE(p_source_m0, c, t, dS, eqn)


real source_m0;

source_m0 = C_R(c,t)*C_UDSI(c,t,12);

return source_m0;


If anybody can help me, I will be very grateful.

Best regards

  Reply With Quote

Old   October 18, 2003, 12:39
Default Re: void udf function expected
Posts: n/a
This could be due to your Fluent case and data file may have been linked to the some older UDFs (linked at the last compilation). If there is a difference in the names of the UDFs stored in the case file and the current compilation, you will see this kind of error. Or the UDFs stored in the Fluent case file is missing, for some reason, you will get this error too.

Solution: Open your case file, let it spit all the error messages, then go to the place where enabled the UDF and UNSELECT them.... Now, re-link the new UDFs.
  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
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 13:06
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit coompressor OpenFOAM Installation 0 November 12, 2008 20:53
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51

All times are GMT -4. The time now is 01:04.