CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   UDF source file (

zhou September 26, 2003 17:52

UDF source file
I defined several UDF (DEFINE_ADJUST,DEFINE_PROPERTY,DEFINE_SOURCE) in one source files. However,after i complied the source file and hook into FLUENT, i can only see one UDF that is available in FLUENT. Why couldn't i see others UDF in FLUENT?

Martin September 29, 2003 04:51

Re: UDF source file

canīt answer. can you post your source? then it could be easier to understand...

zhou September 29, 2003 10:42

Re: UDF source file
Following is source terms DEFINE_PROPERTY(cell_density,c,t) {

real density;


return density; }

DEFINE_SR_RATE(my_rate,f,t,r,mw,yi,rr) {

*rr=1.03643e-4; }

DEFINE_SOURCE(species_K,c,t,dS,eqn) {

real K_source;



return K_source; }

Please take a look. I don't know if there are some problems with C compiler in our systems. I guess there are some confliction between different edition.

Martin September 29, 2003 11:53

Re: UDF source file
it is working, but only with: #include "udf.h" at the beginning ...

All times are GMT -4. The time now is 05:11.