CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Help to Compile UDF (

chiph October 5, 2003 12:40

Help to Compile UDF

some problems about compile UDF procedure; 1.creat a directory <mywork>, and put both the case and data file of Fluent (test.cas,test.dat) and UDF file of C(example.c) into the directory. 2.Define->User-Defined->Functions->Compiled... select UDF sourcefile: <mywork>example.c select Head file: <FLUENT.INC\fluent6.1\src\udf.h> then, 1).creat a directory <FLUENT.INC\fluent6.1\src\libudf> 2).error message; Opening library "libudf"... Error: open_udf_library: No such file or directory Error Object: () Can anybody help?

by chiph p.s. Fluent version 6.1.18

chiph October 5, 2003 13:12

Re: Help to Compile UDF
update the information; 1.creat d:\mywork\test.cas,test.dat,example.c 2.start Fluent on d:\mywork d:\mywork\test.cas 4.Define->User-defined->Functions->Compiled... 5.setect UDF source file to compile d:\mywork\example.c 6.don't select any Header file 7.Built, then [[C:\FLUENT.INC\fluent6.1\cortex\src\dll.h(53) : fatal error C1083: Cannot open include file: 'stdarg.h': No such file or directory example.c]]


mahesh November 2, 2003 10:14

Re: Help to Compile UDF
you require VC++ with service pack 5 for compiled UDF. Do you have it? If yes, right click on My Comp. Icon,click Proeprties & then Advanced Tab. Then Environment Variables. There check whether all the variables u got or not? For the nales of variables, check on Fluent site.


All times are GMT -4. The time now is 06:12.