CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Problem with UDF compiling for kTkLW model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 18, 2011, 05:11
Default Problem with UDF compiling for kTkLW model
  #1
New Member
 
Wantami Puntea
Join Date: Mar 2011
Posts: 4
Rep Power: 15
Wantami is on a distinguished road
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
Wantami is offline   Reply With Quote

Reply

Tags
udf compile, udf issue

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 14:18
Modified k-e turbulence model UDF Travis Fluent UDF and Scheme Programming 7 November 11, 2018 20:21
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
problem in compiling UDF ammi reddy FLUENT 1 December 1, 2006 06:45


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