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

Velocity of Fluid @ different positions of Particle in DPM using UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2009, 18:07
Question Velocity of Fluid @ different positions of Particle in DPM using UDF
  #1
New Member
 
Prashant
Join Date: Mar 2009
Location: texas
Posts: 6
Rep Power: 17
pmghadge is on a distinguished road
Hello,
I am trying to develop an UDF to find the velocity of Fluid at the different positions of particle in DPM. Finally I am interested in getting relative velocity of particle with respect to the fluid.

I am novice in the area of UDF, so please suggest me some macros which can be used for this.

Thank you very much.
pmghadge is offline   Reply With Quote

Old   June 16, 2009, 19:11
Default I got it
  #2
New Member
 
Prashant
Join Date: Mar 2009
Location: texas
Posts: 6
Rep Power: 17
pmghadge is on a distinguished road
/* Following UDF gives relative velocity I am looking for */
#include
"udf.h"
real R_vel;
DEFINE_DPM_SCALAR_UPDATE(relative_vel,c,t,initiali ze,p)
{
real R_vx, R_vy, P_vel, F_vel;
/* Relative Velocity */
R_vx = C_U(c, t) - (P_VEL(p)[0]);
R_vy = C_V(c, t) - (P_VEL(p)[1]);
R_vel = sqrt( R_vx*R_v+x + R_vy*R_vy );
Message(
"Relative Velocity in X = %10f m/s and Y = %10f m/s\n",R_vx, R_vx);
Message(
"Relative Velocity= %10f m/s\n\n",R_vel);
}
pmghadge 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
Gas phase velocity in DPM Drag UDF Hanz Fluent UDF and Scheme Programming 0 June 2, 2009 14:08
UDF for particle injection in DPM model sohail FLUENT 0 July 22, 2008 10:12
UDF for particle injection in DPM model sohail FLUENT 0 April 30, 2008 17:27
particle tracking mike CFX 3 April 17, 2006 00:05
particle velocity and velocity profile HGG FLUENT 2 June 10, 2001 16:32


All times are GMT -4. The time now is 10:13.