CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   June 17, 2000, 11:39
Default UDF
M.A. Rakib
Posts: n/a
Hi! Any idea please!

(1)I have defined a zone or region in my flow domain, from where I want to inject some particles for a short period of time, and then I would like to stop the source. (2)In short I want to define a DPM injection source. (3)In the program that follows let me start with less no. of particles. If it works, I would increase the number of particles. I defined flow time to be integer, so that 2 particles would be released at t=1 and 2 particles at t=2. (4)For t>2, i.e. t=3,4,5...., there is no injection from the surface.

(5)I compiled the following as an interpreted udf. There is no compilation error, and the udf is defined successfully. (6)I next defined the injection as released from the said surface. This also done successfully.

(7)The problem comes next. When I go to display--> particle tracks---> release from injections, and click display, it starts DPM iterations with nothing on the display but then all of a sidden ends up with the following continuous message:

Error: CX_Insert_Pathlines : out of memory (particle 17500) Error: CX_Insert_Pathlines : out of memory (particle 17501) Error: CX_Insert_Pathlines : out of memory (particle 17502) Error: CX_Insert_Pathlines : out of memory (particle 17503) ....... .......

__________________________________________________ _________________ The program is as follows: #include "udf.h" #include "dpm.h"

DEFINE_DPM_SOURCE(injection_initialization,cell,th read,S,strength,p) { real source; int flow_time = RP_Get_Real("flow-time"); {

if (flow_time <= 2.0)

strength = 2.0;


strength = 0.0;

/*return strength ---> This statement is not going

to be used because the function does not return any value*/ } }

  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
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01

All times are GMT -4. The time now is 13:29.