Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No input passed with PT_INPUTS and tabular backed #777

Closed
JonWel opened this issue Aug 15, 2015 · 8 comments
Closed

No input passed with PT_INPUTS and tabular backed #777

JonWel opened this issue Aug 15, 2015 · 8 comments
Milestone

Comments

@JonWel
Copy link
Contributor

JonWel commented Aug 15, 2015

When I try to use PT_INPUTS with the tabular abstractstate in Julia it takes random inputs (constant for a given handle whatever the inputs and change when a new handle is created).

julia> import CoolProp
julia> input_pair = CoolProp.get_input_pair_index("PT_INPUTS")
7
julia> handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
0
julia> CoolProp.AbstractState_update(handle,input_pair,101325,300)
ERROR: CoolProp: Error: inputs are not in range, p=-3.34545e+2955, T=2.69196e-4943
 in AbstractState_update at /home/user/.julia/v0.3/CoolProp/src/CoolProp.jl:145

Using HEOS backend or other input pairs works fine.

CoolProp built from last Github sources.
Build and tested under Ubuntu 15.04 64 bit.

@ibell
Copy link
Contributor

ibell commented Aug 17, 2015

Your example works fine for me in C++. I updated the (mistaken) formatting of the error so we can figure out what has gone wrong.

@JonWel
Copy link
Contributor Author

JonWel commented Aug 17, 2015

Now the error message correctly display the inputs:

julia> CoolProp.AbstractState_update(handle,input_pair,101325,300)
ERROR: CoolProp: Error: inputs are not in range, p=101325 Pa, T=300 K
 in AbstractState_update at /home/user/.julia/v0.3/CoolProp/src/CoolProp.jl:145

But still consider them not in range. Which range should be right?
(the formation error was also in the BICUBIC backend, see the pull request)

@ibell
Copy link
Contributor

ibell commented Aug 17, 2015

Those inputs work just fine for me in c++:

    char buffer[10000];
    long errcode;
    long handle = AbstractState_factory("BICUBIC&HEOS", "Water", &errcode, buffer, 10000);
    AbstractState_update(handle, static_cast<long>(PT_INPUTS), 101325, 300, &errcode, buffer, 10000);
    double rho = AbstractState_keyed_output(handle, static_cast<long>(iDmolar), &errcode, buffer, 10000);
    int regtr = 0;

which yields rho = 55317.355255575130

@ibell
Copy link
Contributor

ibell commented Aug 17, 2015

Seems like a Julia problem (or perhaps a linux problem). Can you first turn on debug with set_debug_level(10) or so before running your code?

ibell added a commit that referenced this issue Aug 17, 2015
Fix error message formatting; see #777
@JonWel
Copy link
Contributor Author

JonWel commented Aug 18, 2015

As the inputs seems correctly passed to CoolProp, that the error message is decided internally in CoolProp and that other input pairs work, I don't see where it would be Julia's fault, but a bug only with Linux or something not set properly on my computer is possible.
Here are the results with a debug level of 10 and a fresh build:

julia> import CoolProp

julia> CoolProp.set_debug_level(10)

julia> CoolProp.get_debug_level()
10

julia> input_pair = CoolProp.get_input_pair_index("PT_INPUTS")
7

julia> handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
AbstractState::factory(TTSE&HEOS,[ Water ])
AbstractState::factory(HEOS,[ Water ])
Loading fluid ParaDeuterium with CAS 7782-39-0p; 0 fluids loaded
Surface tension curves are missing for fluid [ParaDeuterium]
Melting line curves are missing for fluid [ParaDeuterium]
Environmental data are missing for fluid [ParaDeuterium]
Loaded.
Loading fluid R227EA with CAS 431-89-0; 1 fluids loaded
Melting line curves are missing for fluid [R227EA]
Loaded.
Loading fluid Water with CAS 7732-18-5; 2 fluids loaded
Loaded.
Loading fluid MM with CAS 107-46-0; 3 fluids loaded
Melting line curves are missing for fluid [MM]
Loaded.
Loading fluid CarbonDioxide with CAS 124-38-9; 4 fluids loaded
Loaded.
Loading fluid R365MFC with CAS 406-58-6; 5 fluids loaded
Melting line curves are missing for fluid [R365MFC]
Loaded.
Loading fluid MD4M with CAS 107-52-8; 6 fluids loaded
Melting line curves are missing for fluid [MD4M]
Environmental data are missing for fluid [MD4M]
Loaded.
Loading fluid Oxygen with CAS 7782-44-7; 7 fluids loaded
Loaded.
Loading fluid R1234ze(Z) with CAS 29118-25-0; 8 fluids loaded
Melting line curves are missing for fluid [R1234ze(Z)]
Environmental data are missing for fluid [R1234ze(Z)]
Loaded.
Loading fluid R236FA with CAS 690-39-1; 9 fluids loaded
Melting line curves are missing for fluid [R236FA]
Loaded.
Loading fluid R41 with CAS 593-53-3; 10 fluids loaded
Melting line curves are missing for fluid [R41]
Loaded.
Loading fluid o-Xylene with CAS 95-47-6; 11 fluids loaded
Melting line curves are missing for fluid [o-Xylene]
Environmental data are missing for fluid [o-Xylene]
Loaded.
Loading fluid Cyclopentane with CAS 287-92-3; 12 fluids loaded
Melting line curves are missing for fluid [Cyclopentane]
Loaded.
Loading fluid MD2M with CAS 141-62-8; 13 fluids loaded
Melting line curves are missing for fluid [MD2M]
Loaded.
Loading fluid HeavyWater with CAS 7789-20-0; 14 fluids loaded
Missing hL ancillary for fluid HeavyWaterMissing hLV ancillary for fluid HeavyWaterMissing sL ancillary for fluid HeavyWaterMissing sLV ancillary for fluid HeavyWaterTmin invalid for sL for HeavyWater
Melting line curves are missing for fluid [HeavyWater]
Loaded.
Loading fluid Acetone with CAS 67-64-1; 15 fluids loaded
Melting line curves are missing for fluid [Acetone]
Loaded.
Loading fluid R142b with CAS 75-68-3; 16 fluids loaded
Melting line curves are missing for fluid [R142b]
Loaded.
Loading fluid HydrogenSulfide with CAS 7783-06-4; 17 fluids loaded
Melting line curves are missing for fluid [HydrogenSulfide]
Loaded.
Loading fluid 1-Butene with CAS 106-98-9; 18 fluids loaded
Melting line curves are missing for fluid [1-Butene]
Loaded.
Loading fluid R124 with CAS 2837-89-0; 19 fluids loaded
Melting line curves are missing for fluid [R124]
Loaded.
Loading fluid R141b with CAS 1717-00-6; 20 fluids loaded
Melting line curves are missing for fluid [R141b]
Loaded.
Loading fluid cis-2-Butene with CAS 590-18-1; 21 fluids loaded
Melting line curves are missing for fluid [cis-2-Butene]
Loaded.
Loading fluid R11 with CAS 75-69-4; 22 fluids loaded
Melting line curves are missing for fluid [R11]
Loaded.
Loading fluid R115 with CAS 76-15-3; 23 fluids loaded
Missing hL ancillary for fluid R115Missing hLV ancillary for fluid R115Missing sL ancillary for fluid R115Missing sLV ancillary for fluid R115Tmin invalid for sL for R115
Surface tension curves are missing for fluid [R115]
Melting line curves are missing for fluid [R115]
Loaded.
Loading fluid Methanol with CAS 67-56-1; 24 fluids loaded
Loaded.
Loading fluid Fluorine with CAS 7782-41-4; 25 fluids loaded
Loaded.
Loading fluid Hydrogen with CAS 1333-74-0; 26 fluids loaded
Loaded.
Loading fluid OrthoDeuterium with CAS 7782-39-0o; 27 fluids loaded
Surface tension curves are missing for fluid [OrthoDeuterium]
Melting line curves are missing for fluid [OrthoDeuterium]
Environmental data are missing for fluid [OrthoDeuterium]
Loaded.
Loading fluid HFE143m with CAS 421-14-7; 28 fluids loaded
Surface tension curves are missing for fluid [HFE143m]
Melting line curves are missing for fluid [HFE143m]
Environmental data are missing for fluid [HFE143m]
Loaded.
Loading fluid R13 with CAS 75-72-9; 29 fluids loaded
Melting line curves are missing for fluid [R13]
Loaded.
Loading fluid SulfurDioxide with CAS 7446-09-5; 30 fluids loaded
Melting line curves are missing for fluid [SulfurDioxide]
Loaded.
Loading fluid n-Hexane with CAS 110-54-3; 31 fluids loaded
Melting line curves are missing for fluid [n-Hexane]
Loaded.
Loading fluid MethylLinolenate with CAS 301-00-8; 32 fluids loaded
Surface tension curves are missing for fluid [MethylLinolenate]
Melting line curves are missing for fluid [MethylLinolenate]
Loaded.
Loading fluid R245fa with CAS 460-73-1; 33 fluids loaded
Melting line curves are missing for fluid [R245fa]
Loaded.
Loading fluid Neopentane with CAS 463-82-1; 34 fluids loaded
Melting line curves are missing for fluid [Neopentane]
Loaded.
Loading fluid n-Heptane with CAS 142-82-5; 35 fluids loaded
Melting line curves are missing for fluid [n-Heptane]
Loaded.
Loading fluid MethylLinoleate with CAS 112-63-0; 36 fluids loaded
Melting line curves are missing for fluid [MethylLinoleate]
Loaded.
Loading fluid CycloHexane with CAS 110-82-7; 37 fluids loaded
Loaded.
Loading fluid Xenon with CAS 7440-63-3; 38 fluids loaded
Melting line curves are missing for fluid [Xenon]
Loaded.
Loading fluid n-Propane with CAS 74-98-6; 39 fluids loaded
Loaded.
Loading fluid Isopentane with CAS 78-78-4; 40 fluids loaded
Loaded.
Loading fluid SES36 with CAS SES36.ppf; 41 fluids loaded
Surface tension curves are missing for fluid [SES36]
Melting line curves are missing for fluid [SES36]
Environmental data are missing for fluid [SES36]
Loaded.
Loading fluid n-Decane with CAS 124-18-5; 42 fluids loaded
Melting line curves are missing for fluid [n-Decane]
Loaded.
Loading fluid Isohexane with CAS 107-83-5; 43 fluids loaded
Melting line curves are missing for fluid [Isohexane]
Loaded.
Loading fluid R134a with CAS 811-97-2; 44 fluids loaded
Melting line curves are missing for fluid [R134a]
Loaded.
Loading fluid n-Octane with CAS 111-65-9; 45 fluids loaded
Melting line curves are missing for fluid [n-Octane]
Loaded.
Loading fluid n-Butane with CAS 106-97-8; 46 fluids loaded
Loaded.
Loading fluid Ammonia with CAS 7664-41-7; 47 fluids loaded
Melting line curves are missing for fluid [Ammonia]
Loaded.
Loading fluid R123 with CAS 306-83-2; 48 fluids loaded
Melting line curves are missing for fluid [R123]
Loaded.
Loading fluid D4 with CAS 556-67-2; 49 fluids loaded
Melting line curves are missing for fluid [D4]
Loaded.
Loading fluid R12 with CAS 75-71-8; 50 fluids loaded
Melting line curves are missing for fluid [R12]
Loaded.
Loading fluid R14 with CAS 75-73-0; 51 fluids loaded
Melting line curves are missing for fluid [R14]
Loaded.
Loading fluid Nitrogen with CAS 7727-37-9; 52 fluids loaded
Loaded.
Loading fluid CycloPropane with CAS 75-19-4; 53 fluids loaded
Melting line curves are missing for fluid [CycloPropane]
Loaded.
Loading fluid IsoButane with CAS 75-28-5; 54 fluids loaded
Loaded.
Loading fluid R236EA with CAS 431-63-0; 55 fluids loaded
Melting line curves are missing for fluid [R236EA]
Loaded.
Loading fluid Air with CAS AIR.PPF; 56 fluids loaded
Surface tension curves are missing for fluid [Air]
Melting line curves are missing for fluid [Air]
Loaded.
Loading fluid Toluene with CAS 108-88-3; 57 fluids loaded
Melting line curves are missing for fluid [Toluene]
Loaded.
Loading fluid ParaHydrogen with CAS 1333-74-0p; 58 fluids loaded
Loaded.
Loading fluid R143a with CAS 420-46-2; 59 fluids loaded
Melting line curves are missing for fluid [R143a]
Loaded.
Loading fluid R116 with CAS 76-16-4; 60 fluids loaded
Melting line curves are missing for fluid [R116]
Loaded.
Loading fluid Ethanol with CAS 64-17-5; 61 fluids loaded
Loaded.
Loading fluid m-Xylene with CAS 108-38-3; 62 fluids loaded
Melting line curves are missing for fluid [m-Xylene]
Environmental data are missing for fluid [m-Xylene]
Loaded.
Loading fluid MethylStearate with CAS 112-61-8; 63 fluids loaded
Melting line curves are missing for fluid [MethylStearate]
Loaded.
Loading fluid Novec649 with CAS 756-13-8; 64 fluids loaded
Missing hL ancillary for fluid Novec649Missing hLV ancillary for fluid Novec649Missing sL ancillary for fluid Novec649Missing sLV ancillary for fluid Novec649Tmin invalid for sL for Novec649
Surface tension curves are missing for fluid [Novec649]
Melting line curves are missing for fluid [Novec649]
Loaded.
Loading fluid R507A with CAS R507A.PPF; 65 fluids loaded
Melting line curves are missing for fluid [R507A]
Loaded.
Loading fluid D6 with CAS 540-97-6; 66 fluids loaded
Melting line curves are missing for fluid [D6]
Loaded.
Loading fluid n-Dodecane with CAS 112-40-3; 67 fluids loaded
Melting line curves are missing for fluid [n-Dodecane]
Loaded.
Loading fluid MDM with CAS 107-51-7; 68 fluids loaded
Melting line curves are missing for fluid [MDM]
Loaded.
Loading fluid MethylPalmitate with CAS 112-39-0; 69 fluids loaded
Melting line curves are missing for fluid [MethylPalmitate]
Loaded.
Loading fluid Helium with CAS 7440-59-7; 70 fluids loaded
Loaded.
Loading fluid p-Xylene with CAS 106-42-3; 71 fluids loaded
Melting line curves are missing for fluid [p-Xylene]
Environmental data are missing for fluid [p-Xylene]
Loaded.
Loading fluid n-Pentane with CAS 109-66-0; 72 fluids loaded
Loaded.
Loading fluid RC318 with CAS 115-25-3; 73 fluids loaded
Melting line curves are missing for fluid [RC318]
Loaded.
Loading fluid R22 with CAS 75-45-6; 74 fluids loaded
Melting line curves are missing for fluid [R22]
Loaded.
Loading fluid n-Undecane with CAS 1120-21-4; 75 fluids loaded
Melting line curves are missing for fluid [n-Undecane]
Environmental data are missing for fluid [n-Undecane]
Loaded.
Loading fluid trans-2-Butene with CAS 624-64-6; 76 fluids loaded
Melting line curves are missing for fluid [trans-2-Butene]
Loaded.
Loading fluid SulfurHexafluoride with CAS 2551-62-4; 77 fluids loaded
Melting line curves are missing for fluid [SulfurHexafluoride]
Loaded.
Loading fluid MD3M with CAS 141-63-9; 78 fluids loaded
Melting line curves are missing for fluid [MD3M]
Loaded.
Loading fluid R1234ze(E) with CAS 29118-24-9; 79 fluids loaded
Melting line curves are missing for fluid [R1234ze(E)]
Loaded.
Loading fluid R13I1 with CAS 2314-97-8 ; 80 fluids loaded
Missing hL ancillary for fluid R13I1Missing hLV ancillary for fluid R13I1Missing sL ancillary for fluid R13I1Missing sLV ancillary for fluid R13I1Tmin invalid for sL for R13I1
Surface tension curves are missing for fluid [R13I1]
Melting line curves are missing for fluid [R13I1]
Loaded.
Loading fluid MethylOleate with CAS 112-62-9; 81 fluids loaded
Melting line curves are missing for fluid [MethylOleate]
Loaded.
Loading fluid Benzene with CAS 71-43-2; 82 fluids loaded
Melting line curves are missing for fluid [Benzene]
Loaded.
Loading fluid R152A with CAS 75-37-6; 83 fluids loaded
Melting line curves are missing for fluid [R152A]
Loaded.
Loading fluid R404A with CAS R404A.PPF; 84 fluids loaded
Melting line curves are missing for fluid [R404A]
Loaded.
Loading fluid R161 with CAS 353-36-6; 85 fluids loaded
Melting line curves are missing for fluid [R161]
Loaded.
Loading fluid IsoButene with CAS 115-11-7; 86 fluids loaded
Melting line curves are missing for fluid [IsoButene]
Loaded.
Loading fluid R1233zd(E) with CAS 102687-65-0; 87 fluids loaded
Melting line curves are missing for fluid [R1233zd(E)]
Environmental data are missing for fluid [R1233zd(E)]
Loaded.
Loading fluid R125 with CAS 354-33-6; 88 fluids loaded
Melting line curves are missing for fluid [R125]
Loaded.
Loading fluid CarbonMonoxide with CAS 630-08-0; 89 fluids loaded
Loaded.
Loading fluid CarbonylSulfide with CAS 463-58-1; 90 fluids loaded
Melting line curves are missing for fluid [CarbonylSulfide]
Loaded.
Loading fluid R23 with CAS 75-46-7; 91 fluids loaded
Melting line curves are missing for fluid [R23]
Loaded.
Loading fluid Ethane with CAS 74-84-0; 92 fluids loaded
Loaded.
Loading fluid R113 with CAS 76-13-1; 93 fluids loaded
Melting line curves are missing for fluid [R113]
Loaded.
Loading fluid R32 with CAS 75-10-5; 94 fluids loaded
Melting line curves are missing for fluid [R32]
Loaded.
Loading fluid R407C with CAS R407C.PPF; 95 fluids loaded
Melting line curves are missing for fluid [R407C]
Loaded.
Loading fluid NitrousOxide with CAS 10024-97-2; 96 fluids loaded
Melting line curves are missing for fluid [NitrousOxide]
Loaded.
Loading fluid R1234yf with CAS 754-12-1; 97 fluids loaded
Melting line curves are missing for fluid [R1234yf]
Loaded.
Loading fluid D5 with CAS 541-02-6; 98 fluids loaded
Melting line curves are missing for fluid [D5]
Loaded.
Loading fluid R218 with CAS 76-19-7; 99 fluids loaded
Melting line curves are missing for fluid [R218]
Loaded.
Loading fluid Propyne with CAS 74-99-7; 100 fluids loaded
Melting line curves are missing for fluid [Propyne]
Loaded.
Loading fluid Ethylene with CAS 74-85-1; 101 fluids loaded
Loaded.
Loading fluid EthylBenzene with CAS 100-41-4; 102 fluids loaded
Melting line curves are missing for fluid [EthylBenzene]
Environmental data are missing for fluid [EthylBenzene]
Loaded.
Loading fluid OrthoHydrogen with CAS 1333-74-0o; 103 fluids loaded
Surface tension curves are missing for fluid [OrthoHydrogen]
Melting line curves are missing for fluid [OrthoHydrogen]
Loaded.
Loading fluid Krypton with CAS 7439-90-9; 104 fluids loaded
Loaded.
Loading fluid R114 with CAS 76-14-2; 105 fluids loaded
Melting line curves are missing for fluid [R114]
Loaded.
Loading fluid Neon with CAS 7440-01-9; 106 fluids loaded
Loaded.
Loading fluid DimethylEther with CAS 115-10-6; 107 fluids loaded
Melting line curves are missing for fluid [DimethylEther]
Loaded.
Loading fluid n-Nonane with CAS 111-84-2; 108 fluids loaded
Melting line curves are missing for fluid [n-Nonane]
Loaded.
Loading fluid DimethylCarbonate with CAS 616-38-6; 109 fluids loaded
Melting line curves are missing for fluid [DimethylCarbonate]
Loaded.
Loading fluid R410A with CAS R410A.PPF; 110 fluids loaded
Melting line curves are missing for fluid [R410A]
Loaded.
Loading fluid Propylene with CAS 115-07-1; 111 fluids loaded
Loaded.
Loading fluid Argon with CAS 7440-37-1; 112 fluids loaded
Loaded.
Loading fluid Deuterium with CAS 7782-39-0; 113 fluids loaded
Melting line curves are missing for fluid [Deuterium]
Loaded.
Loading fluid R21 with CAS 75-43-4; 114 fluids loaded
Melting line curves are missing for fluid [R21]
Loaded.
Loading fluid Methane with CAS 74-82-8; 115 fluids loaded
Loaded.
successfully set up state
[Maxwell] ancillaries T: 273.16 rhoL: 55549.80523595408 rhoV: 0.2688307000191048 pL: 1.87582e+06 pV: 610.204
[Maxwell] starting T: 273.16 rhoL: 55497 rhoV: 0.268831 pL: -2.43709e+142 pV: 610.204
[Maxwell] rhoL: 55496.95514000267 rhoV: 0.2694716052752982 error: 5.64039e-06 dvL/vL: -7.38155e-10 dvV/vV: -0.00237838 pL: 610.204 pV: 610.204
[Maxwell] rhoL: 55496.95514000245 rhoV: 0.2694700808741183 error: 1.05847e-07 dvL/vL: 4.06379e-15 dvV/vV: 5.65703e-06 pL: 611.655 pV: 611.658
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655102 error: 2.51651e-10 dvL/vL: -3.29408e-14 dvV/vV: 3.19444e-11 pL: 611.655 pV: 611.655
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655109 error: 2.51654e-10 dvL/vL: -7.83413e-17 dvV/vV: -2.51824e-15 pL: 611.655 pV: 611.655
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655111 error: 2.51654e-10 dvL/vL: -7.83415e-17 dvV/vV: -7.16989e-16 pL: 611.655 pV: 611.655
[Maxwell] pL: 611.655 pV: 611.655
[Maxwell] ancillaries T: 273.16 rhoL: 55549.80523595408 rhoV: 0.2688307000191048 pL: 1.87582e+06 pV: 610.204
[Maxwell] starting T: 273.16 rhoL: 55497 rhoV: 0.268831 pL: 0 pV: 610.204
[Maxwell] rhoL: 55496.95514000267 rhoV: 0.2694716052752982 error: 5.64039e-06 dvL/vL: -7.38155e-10 dvV/vV: -0.00237838 pL: 610.204 pV: 610.204
[Maxwell] rhoL: 55496.95514000245 rhoV: 0.2694700808741183 error: 1.05847e-07 dvL/vL: 4.06379e-15 dvV/vV: 5.65703e-06 pL: 611.655 pV: 611.658
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655102 error: 2.51651e-10 dvL/vL: -3.29408e-14 dvV/vV: 3.19444e-11 pL: 611.655 pV: 611.655
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655109 error: 2.51654e-10 dvL/vL: -7.83413e-17 dvV/vV: -2.51824e-15 pL: 611.655 pV: 611.655
[Maxwell] rhoL: 55496.95514000427 rhoV: 0.2694700808655111 error: 2.51654e-10 dvL/vL: -7.83415e-17 dvV/vV: -7.16989e-16 pL: 611.655 pV: 611.655
[Maxwell] pL: 611.655 pV: 611.655
Loading table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/single_phase_logph.bin.z
Loaded table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/single_phase_logph.bin.z in 0.358715 sec.
Loading table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/single_phase_logpT.bin.z
Loaded table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/single_phase_logpT.bin.z in 0.282257 sec.
Loading table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/pure_saturation.bin.z
Loaded table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/pure_saturation.bin.z in 0.004894 sec.
Loading table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/phase_envelope.bin.z
Loaded table: /home/johndoe/.CoolProp/Tables/HelmholtzEOSBackend(Water[1.0000000000])/phase_envelope.bin.z in 0.000158 sec.
Tables loaded
Tables loaded
0

julia> handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
AbstractState::factory(TTSE&HEOS,[ Water ])
AbstractState::factory(HEOS,[ Water ])
successfully set up state
Tables loaded
1

julia> CoolProp.AbstractState_update(handle,input_pair,101325,300)
ERROR: CoolProp: Error: inputs are not in range, p=101325 Pa, T=300 K
 in AbstractState_update at /home/johndoe/.julia/v0.3/CoolProp/src/CoolProp.jl:157

Logs of the table creation are here

@ibell
Copy link
Contributor

ibell commented Aug 19, 2015

Looks like something funny on your side, works fine for me:

               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "help()" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.4.0-dev+3895 (2015-03-19 03:28 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit cc95bca (152 days old master)
|__/                   |  x86_64-w64-mingw32

julia> import CoolProp

julia> input_pair = CoolProp.get_input_pair_index("PT_INPUTS")
7

julia> handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
0

julia>  handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
1

julia>  handle = CoolProp.AbstractState_factory("TTSE&HEOS", "Water")
2

julia> CoolProp.AbstractState_update(handle,input_pair,101325,300)

julia>

@JonWel
Copy link
Contributor Author

JonWel commented Aug 19, 2015

Testing again with the nightly build for Linux 64: libCoolProp.so.5.1.2dev
I did remove the old table before to be sure they are freshly generated by the last code.
Still exactly the same problem.

Could someone try it under Linux? (as it seems to work perfectly under windows).

@ibell ibell added this to the v5.1.2 milestone Aug 19, 2015
@ibell ibell closed this as completed in f8af37f Aug 23, 2015
@JonWel
Copy link
Contributor Author

JonWel commented Aug 23, 2015

👍

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

No branches or pull requests

2 participants