CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) (https://www.cfd-online.com/Forums/fluent-udf/107595-ansys-fluent-13-0-udf-compilation-problem-window-xp-32-bit.html)

Yogini October 2, 2012 07:34

Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit)
 
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


RodriguezFatz October 2, 2012 07:52

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.

Yogini October 2, 2012 08:48

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

RodriguezFatz October 2, 2012 08:53

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.

Yogini October 2, 2012 08:57

Ok, I will try with Visual studio SDK.

-Yogini

Sixkillers October 3, 2012 02:34

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.

Yogini October 3, 2012 05:20

Hello,
I don't know, how to use pastebin. Can you explain a bit?

RodriguezFatz October 3, 2012 07:24

Copy the code to windows Notepad and than save it into some new file.


All times are GMT -4. The time now is 20:05.