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

Constant & independent velocity for DPM particles

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2010, 10:03
Default Constant & independent velocity for DPM particles
  #1
Member
 
Roman Gobitz-Pfeifer
Join Date: Dec 2009
Location: Stuttgart
Posts: 83
Rep Power: 16
Wikie is on a distinguished road
Hi,

I'm having the following problem. After they are injected, water droplets (DPM particles) should travel through my geometry with a constant velocity, which is not effected by gravity or the surrounding fluid. Heat and mass transfer should still take place during this problem. Is it possible to write a UDF for DPM particles? Which macro fits best for this problem? I've already tried DEFINE DPM BODY FORCE without any results. The whole setup is 2D.
Can anybody please help me?

thanks
Wikie
Wikie is offline   Reply With Quote

Old   September 23, 2010, 05:35
Default problem with exaples from the UDF GUIDE
  #2
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
how to compute relative velocity from absolute? spk Main CFD Forum 3 July 9, 2010 08:42
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15
Velocity Under-relaxation in SIMPLE type methods Matt U. Main CFD Forum 6 July 4, 2005 05:29
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
Convection velocity of Coherent structures Jongdae Kim Main CFD Forum 3 February 5, 2002 04:04


All times are GMT -4. The time now is 08:16.