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

Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit)

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2012, 07:34
Default Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit)
  #1
New Member
 
Yogini Patel
Join Date: Jan 2010
Location: Finland
Posts: 15
Rep Power: 16
Yogini is on a distinguished road
Hello everyone,

I am implementing UDF to Ansys Fluent 13.0 version in Window XP 32 bit. I am getting the following error.

Error: The UDF library you are trying to load (libudf) is not compiled for 3ddp on the curent platform (ntx86).

The system cannot find the file specified.

C:\Documents and Settings\c0346734\Desktop\ASME_2013\My_model\Barsc _nozzle\libudf\ntx86\3ddp\libudf.dll
Error Object: #f
1 file(s) copied.
1 file(s) copied.
(system "copy "C:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "mylibudf\ntx86\3ddp\makefile" ")
1 file(s) copied.
(chdir "mylibudf")()
(chdir "ntx86\3ddp")()
# Generating ud_io1.h
MyUDWSPF.c
..\..\src\MyUDWSPF.c(2) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(6) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(6) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(6) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(12) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(14) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(14) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(14) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(14) : error C2014: preprocessor command must start as first nonwhite space
..\..\src\MyUDWSPF.c(15) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(15) : error C2014: preprocessor command must start as first nonwhite space
..\..\src\MyUDWSPF.c(16) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(16) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(16) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(16) : error C2014: preprocessor command must start as first nonwhite space
..\..\src\MyUDWSPF.c(17) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(17) : error C2014: preprocessor command must start as first nonwhite space
..\..\src\MyUDWSPF.c(18) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(18) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(18) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(19) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(20) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(20) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(20) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(20) : error C2061: syntax error : identifier '˙real˙ws_TPP˙'
..\..\src\MyUDWSPF.c(20) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(20) : error C2513: '/*global*/ ' : no variable declared before '='
..\..\src\MyUDWSPF.c(20) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(20) : error C2065: '˙338' : undeclared identifier
..\..\src\MyUDWSPF.c(20) : error C2143: syntax error : missing ';' before 'constant'
..\..\src\MyUDWSPF.c(21) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(21) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(21) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(21) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(21) : error C2065: '˙0' : undeclared identifier
..\..\src\MyUDWSPF.c(21) : error C2099: initializer is not a constant
..\..\src\MyUDWSPF.c(21) : error C2143: syntax error : missing ';' before 'constant'
..\..\src\MyUDWSPF.c(22) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(22) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(22) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(22) : error C2065: '˙1882' : undeclared identifier
..\..\src\MyUDWSPF.c(22) : error C2099: initializer is not a constant
..\..\src\MyUDWSPF.c(22) : error C2143: syntax error : missing ';' before 'constant'
..\..\src\MyUDWSPF.c(24) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(25) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(25) : error C2061: syntax error : identifier '˙DEFINE_ON_DEMAND'
..\..\src\MyUDWSPF.c(25) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(26) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(26) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(26) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(26) : error C2449: found '{' at file scope (missing function header?)
..\..\src\MyUDWSPF.c(27) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(27) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(28) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(28) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(29) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(29) : error C2059: syntax error : '}'
..\..\src\MyUDWSPF.c(29) : error C2018: unknown character '0xa0'
..\..\src\MyUDWSPF.c(30) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(30) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(31) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(32) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(32) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(36) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(36) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(36) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(37) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(37) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(37) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(38) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(38) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(38) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(38) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(39) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(39) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(39) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(39) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(40) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(41) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(42) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(42) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(42) : error C2061: syntax error : identifier '˙real˙wetst_satP'
..\..\src\MyUDWSPF.c(42) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(42) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(43) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(43) : error C2061: syntax error : identifier '˙'
..\..\src\MyUDWSPF.c(43) : error C2059: syntax error : ';'
..\..\src\MyUDWSPF.c(43) : error C2449: found '{' at file scope (missing function header?)
..\..\src\MyUDWSPF.c(44) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(44) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(44) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(45) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(45) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(45) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(46) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(46) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(46) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(47) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(47) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(47) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(48) : error C3872: '0xa0': this character is not allowed in an identifier
..\..\src\MyUDWSPF.c(48) : fatal error C1003: error count exceeds 100; stopping compilation

Done.


Moreover, during compilation I am getting following message in log file:

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.

NMAKE : U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

Please can any one give some suggestions in this matter ?

With best regards,
Yogini

Yogini is offline   Reply With Quote

Old   October 2, 2012, 07:52
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
How did you start Fluent? From the terminal?

This sounds like you a) did not install the correct Visual Studio / SDK or b) did not start Fluent from the SDK terminal.
RodriguezFatz is offline   Reply With Quote

Old   October 2, 2012, 08:48
Default
  #3
New Member
 
Yogini Patel
Join Date: Jan 2010
Location: Finland
Posts: 15
Rep Power: 16
Yogini is on a distinguished road
Thank you for quick reply,

I have tested to start fluent from both way: (i) simple double click on shortcut and (ii) with SDK. But I got same error.

But I am not sure for my visual Studio version. I am working with MS visual studio 8. Can you suggest which version of it, is appropriate for Ansys Fluent 13.0 on Window XP 32 bit ?

Moreover, is there any issues related environment variable setting for Ansys and Visual Studio ?

Best regards,
Yogini
Yogini is offline   Reply With Quote

Old   October 2, 2012, 08:53
Default
  #4
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
I had the same problem and tried 100 things before it worked. Unfortunately, I can't remember what did the trick. But if I recall correctly, you need to install the Visual studio SDK (!) and start workbench or Fluent from the SDK terminal, not the MS visual studio terminal. Maybe I am wrong...
If this doesn't work: I think I found some help in old forum threads or in Ansys customer portal.
RodriguezFatz is offline   Reply With Quote

Old   October 2, 2012, 08:57
Default
  #5
New Member
 
Yogini Patel
Join Date: Jan 2010
Location: Finland
Posts: 15
Rep Power: 16
Yogini is on a distinguished road
Ok, I will try with Visual studio SDK.

-Yogini
Yogini is offline   Reply With Quote

Old   October 3, 2012, 02:34
Default
  #6
Member
 
Join Date: Nov 2011
Location: Czech Republic
Posts: 97
Rep Power: 14
Sixkillers is on a distinguished road
I think the main problem is that you copied source code of UDF directly from the PDF manual, so it contains non-ASCII characters. You can get rid of them e.g. by uploading your code to http://pastebin.com/ and then downloading it.
Sixkillers is offline   Reply With Quote

Old   October 3, 2012, 05:20
Default
  #7
New Member
 
Yogini Patel
Join Date: Jan 2010
Location: Finland
Posts: 15
Rep Power: 16
Yogini is on a distinguished road
Hello,
I don't know, how to use pastebin. Can you explain a bit?
Yogini is offline   Reply With Quote

Old   October 3, 2012, 07:24
Default
  #8
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
Copy the code to windows Notepad and than save it into some new file.
RodriguezFatz is offline   Reply With Quote

Reply

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
A Problem of Fluent Interpreted UDF: parse error knight Fluent UDF and Scheme Programming 25 August 16, 2018 10:26
problem with UDF for (v2-f) turbulence model in fluent artemiss1984 Fluent UDF and Scheme Programming 6 January 17, 2014 05:50
Ansys Fluent UDF - for Data Center Air flow management kedarjan Fluent UDF and Scheme Programming 13 November 13, 2013 04:20
Fluent version 6.3.26 (64 bit) on Window 7 Professional (64 bit) wlt_1985 FLUENT 7 April 18, 2011 03:22
udf compilation with fluent "CFD"software ranjeet Main CFD Forum 0 July 7, 2009 09:06


All times are GMT -4. The time now is 18:30.