Commit Graph

29 Commits

Author SHA1 Message Date
Ian Bell
41b97875b8 Updated macros in CoolProp.cpp for deeper debugging of PropsSI function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-07 17:12:32 +02:00
Ian Bell
2c844597c9 Calculate pressure and temperature limits for HEOS and REPFPROP backends
Closes https://github.com/CoolProp/CoolProp/issues/83

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-06 10:23:10 +02:00
Ian Bell
31c47875ef Added #ifndef PROPSI_NO_ERROR_CATCH to PropsSI to disable error catching to close https://github.com/CoolProp/CoolProp/issues/84
This is done so that debuggers can halt at the error for easier introspection.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-06 09:41:21 +02:00
Ian Bell
1ca9494a1f Broke up incompressible list into pure and solutions for use in Python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 17:34:25 +02:00
Ian Bell
afd0b90c4d Changed string handling for molar fractions and incompressibles - this should yield better performance and more straightforward to understand the program flow
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 15:10:39 +02:00
Ian Bell
17458261b5 Modifications to saturation routines (work great now)
Including:
adding critical pressure parameter
Adding relaxation parameter for NR sat_T
Only evaluate correction step if not near critical temp
Fixed bug with fluids like "n-Propane" that was getting interpreted as an incompressible fluid

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 23:36:22 +02:00
Ian Bell
a2f45e29da Added functionality for trivial outputs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 18:55:52 +02:00
Ian Bell
412504a4d9 When changing reference state, hs_anchor is updated, and ancillary curves still work!! woohoo
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-01 10:50:47 +02:00
Ian Bell
3c9b02bba1 Merge branch 'master' of https://github.com/coolprop/coolprop 2014-07-25 11:06:58 -04:00
Ian Bell
dc75fa8fea Fixed typo in CoolProp.cpp
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-25 11:06:28 -04:00
jowr
6360e84a54 Added some new functions to handle volume fractions, hope this does not cause any trouble other places 2014-07-22 17:29:01 +02:00
jowr
e946d84dec Incompressible library and backend work, still need to convert the coefficients from v4. 2014-07-16 13:18:45 +02:00
jowr
ee04ef05dc Many C++ things are done, working on the Python parts 2014-07-14 16:53:22 +02:00
jowr
79beb6fddc The incompressibles pass the first tests and concentration inputs are read properly 2014-07-14 14:54:09 +02:00
Ian Bell
67d85f72e1 Added csv parameter listing to get_global_parameter
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-07 20:08:51 +02:00
Ian Bell
d545376efd Got Javascript wrapper working again - required changing all std::tr1::shared_ptr to shared_ptr
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-03 21:59:41 +02:00
Ian Bell
cb497b443c Added crossplatform_shared_ptr to allow shared_ptr cleanly on all architectures without needing variable namespace definition 2014-06-03 20:58:24 +02:00
Ian Bell
5accf645d9 IIR HS references set for real this time
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-02 13:21:06 +02:00
Ian Bell
409e2a2d1f Fluids using IIR reference state now all agree with REFPROP
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-02 13:03:17 +02:00
Ian Bell
06066c52f0 Reference state can now be set to one of IIR, ASHRAE, NBP or RESET. Still need to allow for default reference state values to agree with REFPROP.
Docs updated.

Still need to implement setting state based on numerical values.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-01 21:43:25 +02:00
Ian Bell
261ec01c71 Added REFPROP names for all fluids - renovated get_fluid_param_string 2014-06-01 20:20:33 +02:00
Ian Bell
c468339768 Implemented test for GERG 2008 residual term and changed include from <tr1/memory> to <memory>
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-01 19:29:09 +02:00
Ian Bell
10aaae4649 Added tr1/memory include for linux compilation 2014-05-30 12:02:32 +02:00
Ian Bell
7b8606f323 No more deletes used anywhere in the codebase. Only std::tr1::shared_ptr are used. Should be portable solution.
All tests run, no memory leaks according to VLD

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-28 19:45:04 +02:00
Ian Bell
1281f52d8a Added R152A, R123, CO2 conductivity
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-26 10:52:44 +02:00
Ian Bell
fee23cab03 Can return BibTeX keys for fluid as before. Testing needed for all exposed functions. Maybe wrap into getter/setter for fluid parameters.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-24 21:27:11 +02:00
Ian bell
eeab8e18fe Use cpversion.h instead of version.h to reduce name clashing in headers
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-17 19:54:28 +02:00
Ian bell
74520911dd Moved Fluids into the Helmholtz backend folder and corrected includes
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-14 13:24:39 +02:00
Ian bell
b3847c7522 Initial commit for v5, but this time with the right line endings
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-14 12:46:24 +02:00