|
[Sponsors] |
Problem with example from the ANSYS UDF MANUAL |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 23, 2010, 06:37 |
Problem with example from the ANSYS UDF MANUAL
|
#1 |
Member
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16 |
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 |
|
|
|
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 |