CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

UDF to increase the number of injected particles

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 12, 2010, 18:35
Default UDF to increase the number of injected particles
Shawn Fotovati
Join Date: Jul 2009
Location: Dallas, TX
Posts: 42
Rep Power: 10
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"
real x;
real ymax;
Particle *p;
x=rand()* ymax / RAND_MAX ;

but I recieve a SEGMENTATION VIOLATION error. Please help me to fix it.
sfotovati is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mesh Refinement Luiz Eduardo Bittencourt Sampaio (Sampaio) OpenFOAM Mesh Utilities 42 January 8, 2017 13:55
Problem with decomposePar tool vinz OpenFOAM Pre-Processing 18 January 26, 2011 03:17
external flow with snappyHexMesh chelvistero OpenFOAM 11 January 15, 2010 20:43
How to increase the Re number in a jet flow comput Novice Main CFD Forum 6 December 4, 2006 08:06
Getting data of injected particles Lior FLUENT 8 August 19, 2004 15:11

All times are GMT -4. The time now is 11:40.