|
[Sponsors] |
August 21, 2016, 02:10 |
Particle injection
|
#1 |
Member
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10 |
Hello guys,
i have written a simple udf that injects particles by flow time ; the problem is when i start calculation nothing happens!!(and there is no particle injection!!) can anyone help me with this??? here is the udf: /* the case is 2D, transient, parallel processing, the mesh is tri, in dpm method i have click on particle unsteady tracking and for injection type i choose SURFACE INJECTION and i let the velocity & totall flow rate for particles be ZERO, cause i want particles to be moved by the flow and then i hook my simple udf*/ #include "udf.h" #include "dpm.h" DEFINE_DPM_INJECTION_INIT(resuspention_particles, I) { Thread *t; cell_t c; Particle *p; loop (p, I->p_init) { t = P_CELL_THREAD(p); c = P_CELL(p); if (CURRENT_TIME < 0.5) P_POS(p)[1] = -0.11; /*before time=0.5 particles should be injected at -11 centimeter by the velocity of zero and they should be moved by the flow, it is my injection method , i specify particle's position before 0.5s*/ else P_POS(p)[1] = -0.095; /* after 0.5s particle's should be injected at this position (9.5 centimeter)*/ } } /* and one other thing, i want to inject particles in a way that if i have 100 meshes on a surface so 100 particles should be injected*/ |
|
Tags |
injection, particle |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF for particle injection using file | shahjehan | Fluent UDF and Scheme Programming | 2 | June 28, 2020 11:44 |
Particle tracking error | alchem | OpenFOAM Bugs | 5 | May 6, 2017 17:30 |
particles leave domain | Steffen595 | CFX | 9 | March 7, 2016 17:19 |
injection problem | Mark New | FLUENT | 0 | August 4, 2013 02:30 |
DPM UDF particle position using the macro P_POS(p)[i] | dm2747 | FLUENT | 0 | April 17, 2009 02:29 |