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

Problem with example from the ANSYS UDF MANUAL

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2010, 06:37
Default Problem with example from the ANSYS UDF MANUAL
  #1
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
Hi,

to get use to UDF-programming I start playing arround with the examples mentioned in the ANSYS UDF GUIDE. I copied this example:

#include "udf.h"
DEFINE_DPM_DRAG(particle_drag_force,Re,p)
{
real w, drag_force;
if (Re < 0.01)
{
drag_force=18.0;
return (drag_force);
}
else if (Re < 20.0)
{
w = log10(Re);
drag_force = 18.0 + 2.367*pow(Re,0.82-0.05*w) ;
return (drag_force);
}
else
/* Note: suggested valid range 20 < Re < 260 */
{
drag_force = 18.0 + 3.483*pow(Re,0.6305) ;
return (drag_force);
}
}

But it didn't work. My particles totally disappeared and I got this message. What is wrong with this code??

"chip-exec: particle_drag_force: argument 1: incorrect type (10): pointer expectedchip-exec: particle_drag_force: argument 2: incorrect type (38): int expected"

cheers
Wikie
Wikie is offline   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
UDF using problem, error happens-heip!! Michael FLUENT 1 December 9, 2008 08:51
Problem in compiling property(density) UDF satish2968 FLUENT 3 October 31, 2008 16:06
parallel UDF problem kerem FLUENT 2 June 20, 2006 07:56
problem with running UDF in batch mode James FLUENT 0 June 6, 2006 07:49
Problem importing ANSYS mesh, please help Ankan Kumar FLUENT 1 February 2, 2003 09:38


All times are GMT -4. The time now is 03:44.