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

Particle injection

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 21, 2016, 02:10
Default Particle injection
  #1
D.M
Member
 
Davoud Malekian
Join Date: Jan 2016
Posts: 53
Rep Power: 10
D.M is on a distinguished road
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*/
D.M is offline   Reply With Quote

Reply

Tags
injection, particle


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
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


All times are GMT -4. The time now is 16:52.