|
[Sponsors] |
June 13, 2000, 08:28 |
UDF DPM injection
|
#1 |
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; } } |
|
|
|
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 22:57 |
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 |
DPM, UDF, Injection Type | Zhang | FLUENT | 0 | June 8, 2005 15:51 |
UDF about DPM injection | majestywzh | FLUENT | 1 | April 5, 2003 00:44 |