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

how can I increase the number of injected particles?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 12, 2010, 15:16
Default how can I increase the number of injected particles?
  #1
Member
 
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 17
sfotovati is on a distinguished road
Dear users,
I know that the maximum number of injected particles from any surface is equal to the total number of mesh points over that surface. I wrote a UDF to increase that which is as followings:


#include "udf.h"
DEFINE_DPM_INJECTION_INIT(init_inject,I)
{
real x;
real ymax;
Particle *p;
ymax=20e-3;
x=rand()* ymax / RAND_MAX ;
P_POS(p)[0]=0;
P_POS(p)[1]=x; 
}

but I recieve a SEGMENTATION VIOLATION error. Please help me to fix it.

Last edited by sfotovati; July 12, 2010 at 19:31.
sfotovati is offline   Reply With Quote

Old   July 14, 2010, 04:54
Default
  #2
Member
 
novice
Join Date: Nov 2009
Posts: 33
Rep Power: 17
novice is on a distinguished road
Hi I donot know about the UDF, but u can increse the number of particles by incresing the number of tries option in the injections menu.
novice is offline   Reply With Quote

Reply


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
How to find the number of particles trapped prashant FLUENT 5 January 3, 2020 04:33
Number of particles in CFX-Post Kushagra CFX 4 August 3, 2010 06:40
Coal combustion. Particles number at inlet. Georg CFX 2 November 29, 2008 09:33
injection particles zenith FLUENT 0 April 3, 2007 01:56
How to increase the Re number in a jet flow comput Novice Main CFD Forum 6 December 4, 2006 08:06


All times are GMT -4. The time now is 00:56.