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

UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2000, 11:39
Default UDF
  #1
M.A. Rakib
Guest
 
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;

else

strength = 0.0;

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

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

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


All times are GMT -4. The time now is 01:41.