CFD Online Logo CFD Online URL
Home > Forums > FLUENT

DPM velocity

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

LinkBack Thread Tools Display Modes
Old   December 26, 2013, 02:42
Smile DPM velocity
New Member
Join Date: Dec 2013
Posts: 7
Rep Power: 3
ldm273507 is on a distinguished road
Hi,everybody. I want to make simulation of cooling tower and try to write a UDF to contorl the velocity of water (use DPM model) in a specific zone, but there are some incorrects in it. When I compile the UDF, the console apperas "uninitialized local variable tp' used" and "uninitialized local variable p' used". Wether the DEFINE_ADJUST Macro can be used in modifying the velocity of DPM? Please give me some suggestions, thank you. The UDF is below:

#include "udf.h"
#include "dpm.h"
//UDF Manual P201
Tracked_Particle *tp;
cell_t c=P_CELL(tp);
Thread *t=P_CELL_THREAD(tp);
Particle *p;
P_VEL(p)[2] = -0.2;
ldm273507 is offline   Reply With Quote


dpm, udf code, velocity

Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
udf : velocity profile in DPM (and mass) cdiako Fluent UDF and Scheme Programming 0 July 31, 2013 05:17
Radial velocity and tangential velocity on centrifugal fan, johnnyp FLUENT 2 May 24, 2013 07:10
Multiple floating objects CKH OpenFOAM 10 September 21, 2011 23:13
Plotting Droplet velocity -DPM joshkemp FLUENT 1 April 12, 2007 20:09
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11

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