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

Help with DPM UDF for OUTPUT needed

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 5, 2004, 16:58
Default Help with DPM UDF for OUTPUT needed
  #1
Zhengcai Ye
Guest
 
Posts: n/a
At first, wish you have a happy holiday!

I defined a DPM (discrete phase model) UDF output function as follows,

DEFINE_DPM_OUTPUT(melting_output, header, fp, p, thread, plane) {

/* There are partial code */

char name[100]; if (header)

{

if (NNULLP(thread))

fprintf(fp,"(%s %d)\n",thread->head->dpm_summary.sort_file_name,11);

else

fprintf(fp,"(%s %d)\n",plane->sort_file_name,11);

fprintf(fp,"(%10s %s %s)\n","time", "dosage","name");

} else

{

sprintf(name,"%s:%d",p->injection->name,p->part_id);

fprintf(fp, "(( %10.6g %10.6g) %s)\n", p->state.time,p->user[0],name);

} }

Then I used Report->Discrete Phase->Sample to output results,

Case 1: When Injection is surface type, and I choose melting_output from drop down list User-Defined Functions Output (default setting is none), sample file is normal and is as follows (Since there are 30 facets at inlet of injection, number of total particles steam is 30)

(oultet 11)

( time dosage name)

(( 291.329 133.394) injection-1:0)

(( 172.6 119.795) injection-1:1)

(( 140.584 112.284) injection-1:2)

(( 122.647 105.228) injection-1:3)

(( 110.794 98.6308) injection-1:4)

(( 101.464 92.5756) injection-1:5)

......

I delete some output (injection 1:6-1:25) in order to let this message not too long.

......

(( 119.768 72.0815) injection-1:26)

(( 136.355 72.078) injection-1:27)

(( 166.045 72.0754) injection-1:28)

(( 274.559 72.072) injection-1:29)

Case 2: When Injection is group type (Number of Particle Streams 300), and I choose melting_output from drop down list User-Defined Functions Output (default setting is none), the sample file is as follows,

2(( 120.051 104.962) injection-0:289)

(( 120.483 105.054) injection-0:290)

(( 131.129 105.672) injection-0:291)

(( 139.455 111.272) injection-0:292)

(( 137.039 106.996) injection-0:293)

(( 151.401 112.74) injection-0:294)

(( 170.756 118.8) injection-0:295)

(( 165.719 119.334) injection-0:296)

(( 219.211 126.169) injection-0:297)

(( 230.547 127.49) injection-0:298)

(( 311.112 134.528) injection-0:299)

It is obvious that Fluent does not give me complete results.

My questions are:

1) Is it a bug of Fluent? The version of my Fluent is 6.1.22. Did you meet the same or similar problem?

2) If it is not a bug of Fluent, what cause this problem (incomplete results)? And, when injection is surface type, when does the problem (incomplete results) not happen?

3) The another problem which made me confused is that incomplete results will not happen when I choose none (default setting) from drop down list User-Defined Functions Output no matter which type is chosen (group or surface).

Thanks again for your assistance! If you need case and data file, please le me know and I can send them by email. My email address is zhengcai.ye@chbe.gatech.edu

Zhengcai Ye

  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
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari FLUENT 0 August 19, 2010 03:01
Hooking a DPM Particle Heat and Mass Transfer UDF to FLUENT subhankar_bhandari Main CFD Forum 0 August 19, 2010 03:01
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 01:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 17:45
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 09:02


All times are GMT -4. The time now is 03:34.