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

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

 June 2, 2009, 18:07 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: 8 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.

 June 16, 2009, 19:11 I got it #2 New Member   Prashant Join Date: Mar 2009 Location: texas Posts: 6 Rep Power: 8 /* 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); }

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Hanz Fluent UDF and Scheme Programming 0 June 2, 2009 14:08 sohail FLUENT 0 July 22, 2008 10:12 sohail FLUENT 0 April 30, 2008 17:27 mike CFX 3 April 17, 2006 00:05 HGG FLUENT 2 June 10, 2001 16:32

All times are GMT -4. The time now is 23:34.