Commit Graph

255 Commits

Author SHA1 Message Date
Ian Bell
32fa56108d Implemented rhomass_critical function in AbstractState. Closes https://github.com/CoolProp/CoolProp/issues/303
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-08 18:22:01 -05:00
Ian Bell
43c24d66c0 Implemented first saturation derivatives
See https://github.com/CoolProp/CoolProp/issues/238

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 17:59:20 -05:00
Ian Bell
e84274367d Add a better error message if fluid does not have thermal conductivity or viscosity model
See https://github.com/CoolProp/CoolProp/issues/285

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 14:22:48 -05:00
Ian Bell
0cb02a3e2f Predefined mixtures working in PropsSI now
Added Catch test

``` python
In [1]: import CoolProp

In [2]: CoolProp.CoolProp.PropsSI('D','P',101325,'T',300,'Air.mix')
Out[2]: 1.1766975266680577
```

Closes https://github.com/CoolProp/CoolProp/issues/287

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-05 11:24:29 -05:00
Ian Bell
44a4a4d8b5 Improve docs for Helmholtz terms.
Closes https://github.com/CoolProp/CoolProp/issues/277

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-03 20:32:53 -05:00
Ian Bell
febe1b5bb6 Expose p_reducing
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 12:19:20 -05:00
Ian Bell
bd28f0829e Handle multiple solutions in the critical splines better
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 10:31:01 -05:00
Ian Bell
f3b96109fd By default, temperatures within 1 uK of the critical point will now be treated as the critical point
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-29 15:37:54 -05:00
Ian Bell
41fc9b1144 saturation ancillaries are now exposed through the high-level API
Closes https://github.com/CoolProp/CoolProp/issues/225

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 13:06:37 -05:00
Ian Bell
f706657072 Implemented conformal state solver for ECS
Closes https://github.com/CoolProp/CoolProp/issues/185

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 23:37:31 -05:00
Ian Bell
a73cfd4c49 I'm not sure why, but this fixes VS2012+
Closes https://github.com/CoolProp/CoolProp/issues/230

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 21:48:24 -05:00
Ian Bell
cf6f2f0c22 Add T_freeze as an output for incompressibles
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:43:50 -05:00
Ian Bell
383b045bb1 Exposes values for minimum and maximum fractions for incompressibles
Closes https://github.com/CoolProp/CoolProp/issues/233

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-23 20:18:39 -05:00
Ian Bell
6eb303d134 Get reducing state works properly - now virtual
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 18:59:59 -05:00
Ian Bell
919d155602 Fixed functions in the dll export to require the length of the output string to be supplied
See https://github.com/CoolProp/CoolProp/issues/228

Should be fixed now

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 18:39:33 -05:00
Ian Bell
5c3d31d011 Add function to check if fluid name is valid
Closes https://github.com/CoolProp/CoolProp/issues/204

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-20 13:31:47 -05:00
Ian Bell
babae66294 Fix typo in header
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 23:07:33 -05:00
Ian Bell
ec3f4033f4 Try to fix __assert linking problem on VxWorks according to https://rowley.zendesk.com/entries/46176--Undefined-reference-to-assert-error-message
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 23:04:17 -05:00
Ian Bell
3bcc83a3e4 convert assert to cassert to make VxWorks happier
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 22:14:16 -05:00
Ian Bell
09bdf671c7 Added generate_update_pair function to python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 13:21:08 -05:00
Ian Bell
8327d54ea2 Replaced all tabs with spaces (finally) in C++ files
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:16:14 -05:00
Ian Bell
82faac7a14 Improve docs for DLL
See https://github.com/CoolProp/CoolProp/issues/222

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 12:00:26 -05:00
Ian Bell
be69e81916 configuration now works with the X() macros of http://www.drdobbs.com/the-new-c-x-macros/184401387
This is a very nice solution, though a bit confusing at first.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-19 00:11:20 -05:00
Ian Bell
6f4a4fcc93 getting/setting configuration values from python works
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-18 23:33:32 -05:00
Ian Bell
9ab6d2721e Updated configuration setting and getting - ready for json integration at the python level, finally
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-18 22:40:46 -05:00
Ian Bell
ff91925a27 CATCH_ALL_ERRORS_RETURN_HUGE doesn't cout the error message
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-17 17:49:10 -05:00
Ian Bell
1b91d51ae6 Updates to make VxWorks play nicely with CMake using cross-compilation 2014-11-13 05:33:49 +01:00
Ian Bell
ff23d85271 HS works now, for most fluids over the entire single-phase part aside for pseudo-pures which have issues
Closes https://github.com/CoolProp/CoolProp/issues/172
Closes https://github.com/CoolProp/CoolProp/issues/121

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-11 20:47:16 -05:00
Ian Bell
692248a361 Updated ancillaries to allow for passing bounds explicitly ( for h and s for instance)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-08 13:30:55 -05:00
Ian Bell
7ab6ec475e Added acccessor for Tmin and Tmax for h and s
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 16:35:35 -05:00
Ian Bell
8032b85605 Implemented new input pairs and other variables in DataStructures.h
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-07 16:33:44 -05:00
Ian Bell
1d729db6f0 Updated physical hazard docs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-30 00:23:22 -04:00
Ian Bell
23c1a38b4d Add tests for the references state for enthalpy and entropy
Closes https://github.com/CoolProp/CoolProp/issues/77
Closes https://github.com/CoolProp/CoolProp/issues/76

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-28 18:59:39 -04:00
Ian Bell
67bf8f528b Re-implemented set_reference_stateD
Closes https://github.com/CoolProp/CoolProp/issues/190

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-27 20:10:03 -04:00
Ian Bell
9299cb8e07 Re-implements HAProps function at the C++ level.
Closes https://github.com/CoolProp/CoolProp/issues/182

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-22 21:32:22 +00:00
Ian Bell
cfcd50bffc Fixed evaluation AT the critical point
Closes https://github.com/CoolProp/CoolProp/issues/178

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-16 00:12:46 +02:00
Ian Bell
1416f62682 Fixed bug with second linkage problem with CoolPropLib
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-15 21:37:23 +02:00
Ian Bell
e049485def Docs for PhaseSI copying
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 15:23:37 +02:00
Ian Bell
441d448198 Once more fixing the critical splines
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 15:21:50 +02:00
Ian Bell
3310d1cf11 Fixed (?) splines in critical region
I have no explanation for the broken code that used to be in the solve_cubic function.  Seems it was related to the linear or quadratic cases but it makes no sense. Removed the code.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 14:49:19 +02:00
Ian Bell
199ced3f86 Implemented Phase output again
Added PhaseSI function which will return phase for given input - exposed to DLL
PropsSI can also return phase as double if "Phase" is the input

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-14 11:21:07 +02:00
Ian Bell
9f04472cef Small docs modifications
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-02 17:01:33 +02:00
Ian Bell
c1e9bc4979 Removed deriv terms from CoolProp.h header
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:19:20 +02:00
Ian Bell
ef95b824d5 Don't use enthalpy/entropy ancillaries if they don't exist
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-27 18:03:04 +02:00
Ian Bell
1a82468c68 Expose mixture binary pair data all the way through python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-25 13:43:29 +02:00
Ian Bell
c0157c0814 Added the ability to set/unset the phase for the abstract state class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 16:17:01 +02:00
Ian Bell
1d940ec8bf Removed old melting line functions
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-15 15:00:41 +02:00
Ian Bell
67e26391b0 Killed off doxygen errors
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-13 15:57:57 +02:00
Ian Bell
34f318d903 Added Q to SimpleState for use in phase envelope
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-12 20:58:18 +02:00
Ian Bell
20cae192b0 Added necessary code to get sat_p working for dewpoint calculations, phase envelopes build for R32/R125 - was getting bad density roots
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 02:15:19 +02:00