|
[Sponsors] |
July 18, 2011, 06:11 |
Problem with UDF compiling for kTkLW model
|
#1 |
New Member
Wantami Puntea
Join Date: Mar 2011
Posts: 4
Rep Power: 15 |
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 |
|
Tags |
udf compile, udf issue |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Undefined symbol error after compiling a new LES model | jabhiji | OpenFOAM Programming & Development | 16 | December 18, 2021 15:18 |
Modified k-e turbulence model UDF | Travis | Fluent UDF and Scheme Programming | 7 | November 11, 2018 21:21 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
problem in compiling UDF | ammi reddy | FLUENT | 1 | December 1, 2006 07:45 |