Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

Need your help! #217

Open
spymate opened this issue May 27, 2014 · 35 comments
Open

Need your help! #217

spymate opened this issue May 27, 2014 · 35 comments

Comments

@spymate
Copy link

spymate commented May 27, 2014

Hello Sir Ibell!
I'm Huong Vo, from VietNam.
I am extremely grateful to you for your enthusiasm and the sharing of source code.
I'm using Ansys Fluent (windows x64). I use your source code to define EOS of R744 (Span and Wagner EOS). But I can't do it (your source code only for linux)
Please help me!
Thank you!

@ibell
Copy link
Owner

ibell commented May 27, 2014

What have you tried so far? All the people that have had success with
CoolProp + Fluent so far have been on linux.

On Tue, May 27, 2014 at 11:09 AM, spymate [email protected] wrote:

Hello Sir Ibell!
I'm Huong Vo, from VietNam.
I am extremely grateful to you for your enthusiasm and the sharing of
source code.
I'm using Ansys Fluent (windows x64). I use your source code to define EOS
of R744 (Span and Wagner EOS). But I can't do it (your source code only for
linux)
Please help me!
Thank you!


Reply to this email directly or view it on GitHubhttps://github.com//issues/217
.

@spymate
Copy link
Author

spymate commented May 27, 2014

My operating system is Windows 8.1 (x64). I use method interpreted, error occurs (file cpexceptions.h).

@ibell
Copy link
Owner

ibell commented May 27, 2014

Copy-paste the error please, otherwise impossible to figure out how to help

  • though I'd like to

On Tue, May 27, 2014 at 11:38 AM, spymate [email protected] wrote:

My operating system is Windows 8.1 (x64). I use method interpreted, error
occurs (file cpexceptions.h).


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44254160
.

@spymate
Copy link
Author

spymate commented May 27, 2014

picture: http://1drv.ms/SJDIDr

@ibell
Copy link
Owner

ibell commented May 27, 2014

What are the contents of R744.c? What include path are you using?

On Tue, May 27, 2014 at 12:12 PM, spymate [email protected] wrote:

picture: http://1drv.ms/SJDIDr


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44257155
.

@spymate
Copy link
Author

spymate commented May 27, 2014

I put all files in eosspanwagner folder:

  • R744.c
  • AllFluids.h
  • CoolProp.h
  • CoolPropDLL.h
  • CoolPropTools.h
  • CPExceptions.h
  • FluidClass.h
  • GlobalConstants.h
  • Helmholtz.h
  • R744.h
  • rapidjson_CoolProp.h
  • TTSE.h
  • Units.h
  • rapidjson folder

@ibell
Copy link
Owner

ibell commented May 27, 2014

What are the contents of R744.c?

I don't think this is going to work. You will need to add an include to
R744.c of "CoolProp.h" - or even better a forward declare of

double PropsSI (const char_, const char_, double, const char_, double,
const char_);

and then add the CoolProp folder (with all the sources) to the project
(don't copy/move, it will break the relative include paths), both as
sources that need to be compiled, and add the CoolProp folder as an
include directory.

On Tue, May 27, 2014 at 12:27 PM, spymate [email protected] wrote:

I put all files in eosspanwagner folder:

  • R744.c
  • AllFluids.h
  • CoolProp.h
  • CoolPropDLL.h
  • CoolPropTools.h
  • CPExceptions.h
  • FluidClass.h
  • GlobalConstants.h
  • Helmholtz.h
  • R744.h
  • rapidjson_CoolProp.h
  • TTSE.h
  • Units.h
  • rapidjson folder


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44258348
.

@spymate
Copy link
Author

spymate commented May 27, 2014

R744.c: http://1drv.ms/SJN81N

@ibell
Copy link
Owner

ibell commented May 27, 2014

Ah I see. A couple of problems:

On Tue, May 27, 2014 at 12:37 PM, spymate [email protected] wrote:

R744.c: http://1drv.ms/SJN81N


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44259074
.

@spymate
Copy link
Author

spymate commented May 27, 2014

Define\User-defined\Functions\Interpreted
May be wrong?

@spymate
Copy link
Author

spymate commented May 27, 2014

Sorry Sir Ibell!
My English is not good!

@ibell
Copy link
Owner

ibell commented May 27, 2014

@ghobold Can you chime in here?

@ibell
Copy link
Owner

ibell commented May 27, 2014

I'm unfortunately not a Fluent user, but I think you need to compile a
user-defined-function. See
https://github.com/ibell/coolprop/tree/master/wrappers/Fluent

On Tue, May 27, 2014 at 1:04 PM, spymate [email protected] wrote:

Sorry Sir Ibell!
My English is not good!


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44261090
.

@spymate
Copy link
Author

spymate commented May 27, 2014

Thanks! I'll try!

@spymate
Copy link
Author

spymate commented May 27, 2014

Hi! When I compile, error as this picture: http://1drv.ms/1jWxnic
Pls help me! Thanks!

@ibell
Copy link
Owner

ibell commented May 27, 2014

Can you do a copy-paste, not a screenshot? There must be more errors above
in that window. Did you see my above comment about using PropsSI and the
UDF example I linked rather than R744.c? It definitely will not work
like you are trying right now.

On Tue, May 27, 2014 at 3:17 PM, spymate [email protected] wrote:

Hi! When I compile, error as this picture: http://1drv.ms/1jWxnic
Pls help me! Thanks!


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44274337
.

@spymate
Copy link
Author

spymate commented May 27, 2014

Opening library "D:\Cao hoc 2012\Luan van\Chay mo phong\nozzle_Hoan\case01\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for 2ddp on the curent platform (win64).

The system cannot find the file specified.

D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\libudf\win64\2ddp\libudf.dll
Error Object: #f
Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\R744.c to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\CoolProp.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\FluidClass.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\Units.h to libudf\src
(system "copy "C:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Generating ud_io1.h

R744.c
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(16) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(16) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(22) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(22) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(29) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(29) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(35) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(35) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(41) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(41) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(47) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(47) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(53) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(53) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(59) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(59) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(65) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(65) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(71) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(71) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(77) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(77) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(83) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(83) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(89) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(89) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(95) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(95) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(101) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(101) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(107) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(107) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(113) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(113) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(119) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(119) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(131) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(131) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(135) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(135) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(149) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(149) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(153) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(153) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(168) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(168) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(173) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(173) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(188) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(188) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(193) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(193) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(205) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(205) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(218) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(218) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(222) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(222) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(227) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(227) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(238) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(238) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(242) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(242) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(253) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(253) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(257) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(257) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(268) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(268) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(272) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(272) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(283) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(283) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(24) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(24) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(71) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(71) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(73) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(73) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(74) : error C2061: syntax error : identifier 'wstreampos'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(74) : error C2059: syntax error : ';'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(76) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(76) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(137) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(137) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(176) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(176) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(215) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(215) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(217) : error C2061: syntax error : identifier 'ios_base'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(217) : error C2059: syntax error : ';'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(218) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(218) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(220) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(220) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(222) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(222) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(224) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(224) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(226) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(226) : fatal error C1003: error count exceeds 100; stopping compilation

Done.

@ibell
Copy link
Owner

ibell commented May 27, 2014

First get this one compiling :
https://github.com/ibell/coolprop/blob/master/wrappers/Fluent/UDF.c It just
makes a stupid call to CoolProp

Then get this one compiling :
https://github.com/ibell/coolprop/blob/master/wrappers/Fluent/properties.c

On Tue, May 27, 2014 at 3:35 PM, spymate [email protected] wrote:

Opening library "D:\Cao hoc 2012\Luan van\Chay mo
phong\nozzle_Hoan\case01\libudf"...
Error: The UDF library you are trying to load (libudf) is not compiled for
2ddp on the curent platform (win64).

The system cannot find the file specified.

D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\libudf\win64\2ddp\libudf.dll
Error Object: #f
Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\R744.c to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\CoolProp.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\FluidClass.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\Units.h to libudf\src
(system "copy
"C:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf
"libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()
Generating ud_io1.h

R744.c
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(16)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(16)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(22)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(22)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(29)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(29)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(35)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(35)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(41)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(41)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(47)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(47)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(53)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(53)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(59)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(59)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(65)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(65)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(71)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(71)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(77)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(77)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(83)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(83)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(89)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(89)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(95)
: error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\functional(95)
: error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(101) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(101) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(107) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(107) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(113) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(113) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(119) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(119) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(131) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(131) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(135) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(135) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(149) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(149) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(153) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(153) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(168) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(168) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(173) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(173) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(188) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(188) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(193) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(193) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(205) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(205) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(218) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(218) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(222) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(222) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(227) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(227) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(238) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(238) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(242) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(242) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(253) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(253) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(257) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(257) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(268) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(268) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(272) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(272) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(283) : error C2143: syntax error : missing
'{' before '<'
C:\Program Files (x86)\microsoft visual
studio\vc98\include\functional(283) : error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(24) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(24) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(71) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(71) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(73) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(73) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(74) :
error C2061: syntax error : identifier 'wstreampos'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(74) :
error C2059: syntax error : ';'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(76) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(76) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(137) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(137) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(176) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(176) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(215) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(215) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(217) :
error C2061: syntax error : identifier 'ios_base'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(217) :
error C2059: syntax error : ';'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(218) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(218) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(220) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(220) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(222) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(222) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(224) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(224) :
error C2059: syntax error : '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(226) :
error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\microsoft visual studio\vc98\include\iosfwd(226) :
fatal error C1003: error count exceeds 100; stopping compilation

Done.


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44276624
.

@spymate
Copy link
Author

spymate commented May 27, 2014

UDF.c:
Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\UDF.c to libudf\src
(system "copy "C:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Generating ud_io1.h

UDF.c
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\cortex\src\cx.h(46) : error C2632: 'long' followed by 'long' is illegal
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list

Done.

@spymate
Copy link
Author

spymate commented May 27, 2014

file property.c

Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\properties.c to libudf\src
(system "copy "C:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Generating ud_io1.h

properties.c
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\cortex\src\cx.h(46) : error C2632: 'long' followed by 'long' is illegal
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error C2010: '.' : unexpected in macro formal parameter list
....\src\properties.c(71) : error C2275: 'real' : illegal use of this type as an expression
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\global.h(167) : see declaration of 'real'
....\src\properties.c(71) : error C2146: syntax error : missing ';' before identifier 'specificHeat'
....\src\properties.c(71) : error C2065: 'specificHeat' : undeclared identifier

Done.

@ibell
Copy link
Owner

ibell commented May 27, 2014

Those errors are coming from Fluent - not CoolProp. Do they have anyUDF
examples that come with Fluent?

On Tue, May 27, 2014 at 4:02 PM, spymate [email protected] wrote:

file property.c

Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\properties.c to libudf\src

(system "copy
"C:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf
"libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Generating ud_io1.h

properties.c

C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\cortex\src\cx.h(46) : error
C2632: 'long' followed by 'long' is illegal
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error
C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error
C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2794) : error
C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error
C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error
C2010: '.' : unexpected in macro formal parameter list
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\storage.h(2799) : error
C2010: '.' : unexpected in macro formal parameter list
....\src\properties.c(71) : error C2275: 'real' : illegal use of this type
as an expression
C:\PROGRA1\ANSYSI1\v140\fluent\fluent14.0.0\src\global.h(167) : see
declaration of 'real'
....\src\properties.c(71) : error C2146: syntax error : missing ';' before
identifier 'specificHeat'
....\src\properties.c(71) : error C2065: 'specificHeat' : undeclared
identifier

Done.


Reply to this email directly or view it on GitHubhttps://github.com//issues/217#issuecomment-44279983
.

@spymate
Copy link
Author

spymate commented May 27, 2014

Sorry sir Ibell!
Now is too late in my country, so I have to go home with my family.
I'll contact you tomorrow!
Thank you for your kindness!
Goodbye!

@ghobold
Copy link
Contributor

ghobold commented May 27, 2014

I was only able to make Coolprop work on Linux versions of Fluent, but it shouldn't be much more complicated to make it work on Windows. So far, the problem seems to be that you are trying to compile the entire Coolprop library in Fluent. It doesn't work that way. The Coolprop library should be compiled externally and then loaded into Fluent.

As @ibell mentioned, suppose you have the library compiled and organized as it is supposed to be (I will try to explain what this means in a moment), then if you follow the instructions in this README (https://github.com/ibell/coolprop/tree/master/wrappers/Fluent) you should be fine. Note that the library is loaded into Fluent and the properties.c file is compiled as an UDF.

The problem is on how to compile the library on Windows. It's actually pretty much just following what is in the compile.sh file, only it does not work on Windows. Fluent UDF libraries need a very specific directory structure. So, if you are currently working on "workingDirectory" in which you have a file "workingDirectory/UDF.c" you want to compile, your library must be structured as follows:

workingDirectory/(libraryName)/src/
workingDirectory/(libraryName)/(architecture)/(solver)
workingDirectory/(libraryName)/(architecture)/(solver)_host
workingDirectory/(libraryName)/(architecture)/(solver)_node

In your case, it looks like (libraryName) = libudf, (architecture) = win64, (solver) = 2ddp, so that you should have a directory structure in your working directory as follows:

workingDirectory/libudf/src/
workingDirectory/libudf/win64/2ddp
workingDirectory/libudf/win64/2ddp_host
workingDirectory/libudf/win64/2ddp_node

In each of those directories, you must have some specific files, and that's what the compile.sh file does on Linux: it compiles the Coolprop library and moves the necessary files to the directory structure Fluent needs.

Here's what it does:

  1. Compiles every _.cpp file in the CoolProp directory
  2. Runs Fluent to gather the directory information (where it is installed) and your system architecture
  3. Creates the directory structure I mentioned above
  4. Copies UDF makefiles (needed to compile the UDF) from Fluent directory to the newly created directories
  5. Creates a user.udf file necessary for Fluent to identify the UDFs being compiled (prints in user.udf the UDFs -- *.c files in workingDirectory -- and its headers -- *.h files in workingDirectory -- and the Fluent architecture/version).
  6. Copies the user.udf file,_.c and *.h files to the directory structure created.
  7. Executes the makefiles (mentioned in step 4)
  8. Copies the compiled Coolprop library to the directory structure.
  9. Compiles the Coolprop library into a libudf.so file so that Fluent can read it as a library.
  10. Copies the libudf.so file to the directory structure.

It is more difficult to automatize the process I described above in Windows than it is on Linux, but it is possible. However, if you are able to compile everything I mentioned above (just by running compile.sh) on Linux, you can theoretically just change the directory structure created for Linux into your Windows one, as long as you have the exact same version of Fluent in both systems (Fluent changes a thing or two on compiled UDFs from version to version).

For example, on Linux it should look something like this:

workingDirectory/libudf/src/
workingDirectory/libudf/lnamd64/2ddp
workingDirectory/libudf/lnamd64/2ddp_host
workingDirectory/libudf/lnamd64/2ddp_node

On your Windows, it looks like what I already discussed above. It's really just the architecture that is different. Perhaps you will also have to dig through all of the user.udf file to change the architecture in there, but I doubt it will be necessary,

So that if you have the compiled library in the correct directory structure, you can follow steps 4-8 in the Fluent wrapper README and you should be fine.

Hope this helps.

@ibell
Copy link
Owner

ibell commented May 27, 2014

@ghobold Thanks for your help!

@spymate
Copy link
Author

spymate commented May 28, 2014

Thank to Sir Ian Bell and Gustavo!
I tried to do as your guidance, but some step I couldn't. So, can you control my computer to setup via Teamviewer?
Have a good day!

@ghobold
Copy link
Contributor

ghobold commented May 28, 2014

Let me know which version of Fluent you are running. If it is the same as mine, I might be able to compile the library on Linux and send you a .rar with all the files and directory structure you will need to load it into your Windows Fluent.

@spymate
Copy link
Author

spymate commented May 28, 2014

Ansys Fluent V14

@ghobold
Copy link
Contributor

ghobold commented May 28, 2014

OK, I am not sure if it's going to work because my version is slightly different, but I will see what I can do tomorrow (I'm not on the computer where Fluent is installed right now).

@spymate
Copy link
Author

spymate commented May 28, 2014

Thanks! I have other versions: v14.5, v15 (64bit). So if your version is one of them, I'll setup other version.
Thank you very much!

@ghobold
Copy link
Contributor

ghobold commented May 28, 2014

Here's a compiled library ready to be imported into your Windows Fluent: https://www.dropbox.com/s/2zt0xpb9oafxkzu/libudf.zip

Copy the libudf folder to your working directory (the same in which you have the properties.c file, make sure properties.c is the only .c file you have there, and your mesh/case files). Once you have extracted the libudf folder, follow steps 4-9 in the Fluent wrapper README. To check whether or not it is working, I suggest you run the EXECUTE_ON_DEMAND UDF call_coolprop after compiling properties.c on Fluent.

However, you must understand that this is just a palliative solution and you should not think of it as permanent in case you really want to work with variable properties. The compiled library I sent you assumes you are using an operating pressure of 101325 Pa (Fluent's default) and so the specific heat is based on that pressure (remember that Fluent won't make specific heat a function of both pressure and temperature, only temperature, so you need a reference pressure in order to calculate it from Coolprop -- the operating pressure).

@spymate
Copy link
Author

spymate commented May 29, 2014

Thanks, Gustavo!
I'm trying! I hope it'll work fine!

@spymate
Copy link
Author

spymate commented May 29, 2014

Hello Mr Gustavo!
Thank you so much! I tried so compile r744.c file, result:
Deleted old libudf\win64\2ddp\libudf.dll
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01/D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\R744.c to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01/D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\CoolProp.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01/D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\FluidClass.h to libudf\src
1 file(s) copied.
Copied D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01/D:\Cao hoc 2012\Luan van\Chay mo phong
ozzle_Hoan\case01\R744.h to libudf\src
(system "copy "c:\PROGRA1\ANSYSI1\v140\fluent"\fluent14.0.0\src\makefile_nt.udf "libudf\win64\2ddp\makefile" ")
1 file(s) copied.
(chdir "libudf")()
(chdir "win64\2ddp")()

Generating ud_io1.h

R744.c
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : error C2192: parameter '1' declaration different
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : error C2146: syntax error : missing ')' before identifier 'ldiv_t'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : error C2365: 'using' : redefinition; previous definition was 'function'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : see declaration of 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : error C2054: expected '(' to follow 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : error C2059: syntax error : ')'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'abs'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(21) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(21) : error C2061: syntax error : identifier 'atexit'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(21) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atof'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atoi'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2061: syntax error : identifier 'atol'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(22) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'bsearch'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'calloc'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2061: syntax error : identifier 'div'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(23) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2061: syntax error : identifier 'exit'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2061: syntax error : identifier 'free'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2061: syntax error : identifier 'getenv'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(24) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2061: syntax error : identifier 'labs'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2061: syntax error : identifier 'ldiv'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2061: syntax error : identifier 'malloc'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(25) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2061: syntax error : identifier 'mblen'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2061: syntax error : identifier 'mbstowcs'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2061: syntax error : identifier 'mbtowc'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(26) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2061: syntax error : identifier 'qsort'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2061: syntax error : identifier 'rand'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2061: syntax error : identifier 'realloc'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(27) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2061: syntax error : identifier 'srand'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2061: syntax error : identifier 'strtod'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2061: syntax error : identifier 'strtol'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(28) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(29) : error C2061: syntax error : identifier 'strtoul'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(29) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(29) : error C2061: syntax error : identifier 'system'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(29) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(30) : error C2061: syntax error : identifier 'wcstombs'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(30) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(30) : error C2061: syntax error : identifier 'wctomb'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(30) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(32) : error C2365: 'using' : redefinition; previous definition was 'function'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : see declaration of 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(32) : error C2054: expected '(' to follow 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(34) : error C2061: syntax error : identifier 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(34) : error C2061: syntax error : identifier 'lldiv'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(34) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstddef(18) : error C2365: 'using' : redefinition; previous definition was 'function'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstdlib(19) : see declaration of 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstddef(18) : error C2054: expected '(' to follow 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\cstddef(18) : error C2061: syntax error : identifier 'using'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(78) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(78) : error C2059: syntax error : '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(87) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(87) : error C2059: syntax error : '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(98) : error C2061: syntax error : identifier 'tr1'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(98) : error C2059: syntax error : ';'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(98) : error C2449: found '{' at file scope (missing function header?)
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(101) : error C2059: syntax error : '}'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(125) : error C2143: syntax error : missing '{' before ':'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(125) : error C2059: syntax error : ':'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(132) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(132) : error C2059: syntax error : '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(141) : error C2143: syntax error : missing '{' before '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xstddef(141) : error C2059: syntax error : '<'
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\eh.h(27) : fatal error C1189: #error : "eh.h is only for C++!"

Done.

I can't understand them! So, pls help me! Thanks!

@ghobold
Copy link
Contributor

ghobold commented May 29, 2014

You don't compile the r744.c file. Make sure you are following steps 4-8 in this README: https://github.com/ibell/coolprop/blob/master/wrappers/Fluent/README.rst

Here's what you do:

  1. Extract the files (https://www.dropbox.com/s/2zt0xpb9oafxkzu/libudf.zip) to your working directory (where you have your case/mesh files and this https://github.com/ibell/coolprop/blob/master/wrappers/Fluent/properties.c file).
  2. Make sure this is what you have in your working directory:
    • Your mesh/case file;
    • the properties.c file;
    • the libudf folder (which is the extracted zip file I sent you)
  3. Follow steps 4-8 in the README.
    • Note that, in the README, it is mentioned the file you will have to compile in Fluent is properties.c, not r744.c. The fluid being used is defined in the properties.c file on line 11. It is set to R744 (carbon dioxide) by default.

Please let me know if I am using some terminology/jargon/vocabulary you are not familiar with and I will try to make it clearer.

@spymate
Copy link
Author

spymate commented May 30, 2014

Hello Mr. Gustavo!
I can see what you wrote. But, I think my problem is related to programming languages​​: your source code written for Linux, my operating system is windows. Therefore, when I compile it into ANSYS FLUENT, it appears the error messages that related to the source files of the "Visual Studio 2013 (2010)" as: cstdef, cstdlib, xstddef, ...
I need the definition of Span and Wagner EOS for R744 from supercritical state to ambient condition

@ghobold
Copy link
Contributor

ghobold commented May 30, 2014

I understand, that is why I compiled the code and sent it to you. The
compiled library should be independent of the operating system you are
using. The only thing you need to compile through Fluent is the
properties.c file which can be found in the Coolprop Fluent wrapper folder.
You have to extract the .zip archive for which I gave you the link in the
previous message in the same folder in which you have the properties.c file
and your case/mesh files. Once you have that set up, compile only the
properties.c file in Fluent and nothing else (this is all explained in the
Fluent wrapper README).

On Fri, May 30, 2014 at 1:39 AM, spymate [email protected] wrote:

Hello Mr. Gustavo!
I can see what you wrote. But, I think my problem is related to
programming languages​​: your source code written for Linux, my operating
system is windows. Therefore, when I compile it into ANSYS FLUENT, it
appears the error messages that related to the source files of the "Visual
Studio 2013 (2010)" as: cstdef, cstdlib, xstddef, ...
I need the definition of Span and Wagner EOS for R744 from supercritical
state to ambient condition


Reply to this email directly or view it on GitHub
#217 (comment).

Gustavo

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants