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

inject particles from the curved surface

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 31, 2018, 10:58
Default inject particles from the curved surface
  #1
New Member
 
Join Date: Apr 2018
Posts: 1
Rep Power: 0
icecola is on a distinguished road
Hello everyone,

I want to inject particles from the curved surface ,and set the particles velocity in a direction perpendicular to the curved surface. I write a udf but it doesn't work.
Is there anyone who can help me modify this UDF, or is there any other way to solve this problem?
Any help is highly appreciated.

#include "udf.h"
DEFINE_DPM_INJECTION_INIT(Init_V_T,I)
{
Thread *t;
face_t f;
Particle *p;
cell_t cell;
Thread *cthread;
real A[ND_ND];
real AMag,AMag0,AMag1;
loop(p,I->p) /* Standard Fluent Looping Macro to get particle
streams in an Injection */
{
begin_f_loop(f,t)
{
F_AREA(A,f,t);
AMag = NV_MAG(A);
AMag0= sqrt(pow(A[0],2));
AMag1= sqrt(pow(A[1],2));
cell = P_CELL(p); /* Get the cell and thread that the particle
is currently in */
cthread = P_CELL_THREAD(p);

P_VEL(p)[0]=10*AMag0/AMag; /* x velocity */
P_VEL(p)[1]=10*AMag1/AMag; /* y velocity */

}
end_f_loop(f,t)
}

}
icecola is offline   Reply With Quote

Reply

Tags
dpm udf


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
[ICEM] help with missing elements of curved surface siw ANSYS Meshing & Geometry 7 August 19, 2018 08:05
How to inject particles from specific points with different injection rate bijan darbari OpenFOAM Running, Solving & CFD 1 March 7, 2018 13:14
oscilated wallHeatFlux on a curved surface nucat OpenFOAM Running, Solving & CFD 2 April 16, 2015 19:28
trying to simulate two-phase jet flow with particles in surface injection ajkratos FLUENT 5 March 3, 2015 21:33
Post-processing of a curved surface alex FLUENT 1 December 5, 2006 03:32


All times are GMT -4. The time now is 23:30.