CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   DPM UDF in fluent5.4.8 (http://www.cfd-online.com/Forums/fluent/31355-dpm-udf-fluent5-4-8-a.html)

Mark April 26, 2003 06:58

DPM UDF in fluent5.4.8
 
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 variable:oxisidef,bb and bbb.

Would you like to give me some advice?

regards

Mark


Alex Munoz April 28, 2003 17:26

Re: DPM UDF in fluent5.4.8
 
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



All times are GMT -4. The time now is 19:08.