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

DPM UDF in fluent5.4.8

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2003, 07:58
Default DPM UDF in fluent5.4.8
  #1
Mark
Guest
 
Posts: n/a
Hello

Now I also use dpm for a solid combustion problem in fluent5.4.8.

My problem is a combustion problem where I consider :

powder (S) -> combustion gas (G).

My code is such as:

#include "udf.h" #include "dpm.h" #include "surf.h"

DEFINE_DPM_LAW(alcombustionlaw,p,coupled) {

.

.

.

float oxisidef;

.

.

.

printf("oxisidef=%g\n",oxisidef); // debug statement

.

.

.

}

DEFINE_DPM_SOURCE(dpm_source, c, t, S, strength, p) {

.

.

. printf("bb=%g\n",bb); // debug statement

.

.

. }

DEFINE_DPM_SWITCH(dpm_switch,p,coupled) {

.

.

. printf("bbb=%g\n",bbb); // debug statement

.

.

. }

I used Compiled UDFs.I activate DEFINE_DPM_LAW and DEFINE_DPM_SWITCH in FLUENT in the Custom Laws panel, which is opened from the Set Injection Properties panel.I also activate DEFINE_DPM_SOURCE in FLUENT in the Discrete Phase Model panel. When I iterate, it don't dispaly the value of my three variablexisidef,bb and bbb.

Would you like to give me some advice?

regards

Mark

  Reply With Quote

Old   April 28, 2003, 18:26
Default Re: DPM UDF in fluent5.4.8
  #2
Alex Munoz
Guest
 
Posts: n/a
Hi

I would not display these type of commnet you must to use

Message ()or CX_Message() instead of printf()

Fluent rules what we can do???

Regards

Alex Munoz

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
DPM UDF particle position using the macro P_POS(p)[i] dm2747 FLUENT 0 April 17, 2009 02:29
DPM with UDF - Step-by-Step Procedure???? Prashanth FLUENT 3 April 3, 2009 18:45
DPM - UDF for fluctuating bubble size Jaroslav Kotara FLUENT 1 April 19, 2006 10:02
about DPM UDF fluent5.4.8 Devy FLUENT 4 May 2, 2003 00:00
about DPM UDF in fluent5.4.8 devy FLUENT 0 May 1, 2003 08:38


All times are GMT -4. The time now is 07:49.