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

UDF DPM injection

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2000, 09:28
Default UDF DPM injection
  #1
M.A. Rakib
Guest
 
Posts: n/a
Hello, I am a UDF beginner, with little knowledge in C language. I want to define an injection which is injected at a position at time t=0. Does the following thing make any sense? Anyway it does not, because, it gives errors. Can somone help me out?

If any one has any small UDF for any DPM, can you please give an idea of that?

#include "udf.h" #include "dpm.h" #include "udfconfig.h" DEFINE_DPM_INJECTION_INIT(injection_initialization , /* function name */

I)

/* Particles will be injected at time = 0 */

{ if (t==0) { P_INIT_DIAM(p)[1] =1e-06; P_INIT_MASS(p)[1]=0.0; P_INIT_DIAM(p)[2] = 1e-06; P_INIT_MASS(p)[2]=0.0;

} }

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM UDF Injection leads to 2 different particles sega Fluent UDF and Scheme Programming 4 December 28, 2017 23:57
UDF for particle injection in DPM model sohail FLUENT 0 July 22, 2008 11:12
UDF for particle injection in DPM model sohail FLUENT 0 April 30, 2008 18:27
DPM, UDF, Injection Type Zhang FLUENT 0 June 8, 2005 16:51
UDF about DPM injection majestywzh FLUENT 1 April 5, 2003 01:44


All times are GMT -4. The time now is 05:25.