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

illegal use of this type as an expression

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2013, 11:27
Default illegal use of this type as an expression
  #1
New Member
 
Tajul
Join Date: Aug 2009
Posts: 27
Rep Power: 17
abir is on a distinguished road
Hi
I use fluent 6.2.16 and visual studio 2010 ultimate. My udf is not working well. When I want to hook my UDF it gives the following error.

..\..\src\january.c(126) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(126) : error C2146: syntax error : missing ';' before identifier 'UDRLXCOEFF'
..\..\src\january.c(126) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(127) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(131) : error C2143: syntax error : missing ';' before 'type'
..\..\src\january.c(132) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(132) : error C2146: syntax error : missing ';' before identifier 'sigma_square'
..\..\src\january.c(132) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(133) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(137) : error C2275: 'real' : illegal use of this type as an expression
..\..\src\january.c(78) : see declaration of 'real'
..\..\src\january.c(137) : error C2146: syntax error : missing ';' before identifier 'ambpress'
..\..\src\january.c(137) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(138) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(145) : error C2143: syntax error : missing ';' before 'type'
..\..\src\january.c(163) : error C2065: 'MeanFreePath' : undeclared identifier
..\..\src\january.c(163) : error C2065: 'sigma_square' : undeclared identifier
..\..\src\january.c(163) : error C2065: 'ambpress' : undeclared identifier
..\..\src\january.c(189) : error C2065: 'MeanFreePath' : undeclared identifier
..\..\src\january.c(216) : error C2065: 'UDRLXCOEFF' : undeclared identifier
..\..\src\january.c(216) : error C2065: 'UDRLXCOEFF' : undeclared identifier
Done.
Could any body help me? I need it very much.
My UDF is attached herewith.
Abir
tajul000@yahoo.com

Last edited by abir; February 22, 2013 at 06:46.
abir is offline   Reply With Quote

Reply


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
[CGNS] CGNS converters available mbeaudoin OpenFOAM Meshing & Mesh Conversion 137 December 14, 2018 05:20
[Commercial meshers] Using starToFoam clo OpenFOAM Meshing & Mesh Conversion 33 September 26, 2012 05:04
turbulent jet simulation antonio_ing OpenFOAM Running, Solving & CFD 5 September 16, 2010 03:31
reconstructParMesh not working with an axisymetric case francesco OpenFOAM Bugs 4 May 8, 2009 06:49
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 19:38


All times are GMT -4. The time now is 14:13.