CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Problem with UDF compiling for kTkLW model (http://www.cfd-online.com/Forums/fluent/90663-problem-udf-compiling-ktklw-model.html)

Wantami July 18, 2011 05:11

Problem with UDF compiling for kTkLW model
 
Hi All,
I try to compile my KtKlw.c code with UDF compile in Ansys Fluent 12, I get these errors when I try to compile my udf files.

---------------------------------------------------------------------
# Generating ud_io1.h
ktotkl.c
..\..\src\ktotkl.c(121) : error C2275: 'Thread' : illegal use of this type as an expression
C:\PROGRA~1\ANSYSI~1\v120\fluent\fluent12.0.16\src \mem.h(691) : see declaration of 'Thread'
..\..\src\ktotkl.c(121) : error C2065: 't' : undeclared identifier
..\..\src\ktotkl.c(122) : error C2275: 'cell_t' : illegal use of this type as an expression
C:\PROGRA~1\ANSYSI~1\v120\fluent\fluent12.0.16\src \mem.h(186) : see declaration of 'cell_t'
..\..\src\ktotkl.c(122) : error C2146: syntax error : missing ';' before identifier 'c'
..\..\src\ktotkl.c(122) : error C2065: 'c' : undeclared identifier
..\..\src\ktotkl.c(123) : error C2275: 'face_t' : illegal use of this type as an expression
C:\PROGRA~1\ANSYSI~1\v120\fluent\fluent12.0.16\src \mem.h(181) : see declaration of 'face_t'
..\..\src\ktotkl.c(123) : error C2146: syntax error : missing ';' before identifier 'f'
..\..\src\ktotkl.c(123) : error C2065: 'f' : undeclared identifier
..\..\src\ktotkl.c(124) : error C2275: 'Thread' : illegal use of this type as an expression
C:\PROGRA~1\ANSYSI~1\v120\fluent\fluent12.0.16\src \mem.h(691) : see declaration of 'Thread'
..\..\src\ktotkl.c(124) : error C2065: 'thread_wall' : undeclared identifier
..\..\src\ktotkl.c(126) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct thread_struct *'
..\..\src\ktotkl.c(126) : warning C4047: '!=' : 'void *' differs in levels of indirection from 'int '
..\..\src\ktotkl.c(126) : error C2223: left of '->next' must point to struct/union
..\..\src\ktotkl.c(128) : error C2223: left of '->nelements' must point to struct/union
..\..\src\ktotkl.c(130) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(130) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(130) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(131) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(131) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(131) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(132) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(132) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(132) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(139) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct thread_struct *'
..\..\src\ktotkl.c(139) : warning C4047: '!=' : 'void *' differs in levels of indirection from 'int '
..\..\src\ktotkl.c(139) : error C2223: left of '->next' must point to struct/union
..\..\src\ktotkl.c(141) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(143) : error C2223: left of '->nelements' must point to struct/union
..\..\src\ktotkl.c(145) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(145) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(145) : error C2198: 'sqrt' : too few actual parameters
..\..\src\ktotkl.c(150) : warning C4047: '=' : 'int ' differs in levels of indirection from 'struct thread_struct *'
..\..\src\ktotkl.c(150) : warning C4047: '!=' : 'void *' differs in levels of indirection from 'int '
..\..\src\ktotkl.c(150) : error C2223: left of '->next' must point to struct/union
..\..\src\ktotkl.c(152) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(154) : error C2223: left of '->nelements' must point to struct/union
..\..\src\ktotkl.c(157) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(158) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(158) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(159) : error C2223: left of '->t0' must point to struct/union
..\..\src\ktotkl.c(160) : error C2223: left of '->t0' must point to struct/union
..\..\src\ktotkl.c(160) : error C2223: left of '->storage' must point to struct/union
..\..\src\ktotkl.c(160) : fatal error C1903: unable to recover from previous error(s); stopping compilation
(system "copy "C:\PROGRA~1\ANSYSI~1\v120\fluent"\fluent12.0.16\s rc\makefile_nt.udf libudfTest1\ntx86\2ddp_node\makefile")
1 file(s) copied.
(chdir "libudfTest1")()
(chdir "ntx86\2ddp_node")()

--------------------------------------------------------------------
I also have test my other codes, such as k_wsst.c and K_e.c , it's work well.
can anybody help me on this issue?

Thank you


All times are GMT -4. The time now is 16:40.