Ian Bell
eede3266ca
"formula" is actually an output in get_fluid_param_string now
2015-04-10 20:55:00 -06:00
Ian Bell
7b054a2a0e
Implemented setting of reference state for REFPROP pure fluids; closes #568
...
Also fixed LIMITS function call for Ttriple
2015-04-03 21:08:36 -06:00
Ian Bell
811e65645b
Implement "pure" as an input to get_fluid_param_string; closes #552
2015-03-27 18:38:43 -06:00
mikekaganski
28691e8e75
const, ref and iterator optimization
...
1. Another set of arguments optimized:
* args-by-val converted to args-by-ref
* in some cases, reverse has been done, if that is better: if the
object's copy is modified in the func, it's better to avoid extra copy
from arg to local var
2. some const functions marked as such (this is just a beginning)
3. iterators were replaced with const_iterators where applicable
4. catches that catch std::exception& changed to catch (...) - that is
safer; if exception handling is restructured, this will have to be
reconsidered anyway
5. removed some basic structures' constructors; changed them to hold
const char*s to avoid unnecessary string constructions;
6. in some places, moved variable declarations to their definitions, to
avoid calling default constructors and then assigning
7. removed some unnecessary shared_pointers in favor of local objects;
8. in FORTRAN-style functions, added const specifiers to input doubles;
9. fixed a place where values were inserted into a map while iterating
through it
10. fixed is_valid_*_derivative: they could accept incorrect values and
throw when upper index is less than lower
2015-03-01 10:51:01 +10:00
mikekaganski
869d1afc71
More ref args
2015-02-27 00:56:38 +10:00
Ian Bell
f8576b1d49
PropsSImulti is integrated into Python wrapper; extract_fractions is exported
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-30 20:08:35 -05:00
Ian Bell
97124b1481
Fixed EES builder and expose extract_backend
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-30 18:03:23 -05:00
Ian Bell
6b601adb10
PropsSImulti takes vector of strings as inputs
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-30 16:07:19 -05:00
Ian Bell
2285e3b8c9
Removed some more functions
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-26 22:23:01 -05:00
Ian Bell
c9ad1f7e59
Removed unneeded overloads of PropsSI function, leaving only PropsSI and PropsSImulti
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-26 01:45:03 -05:00
Ian Bell
a40fee3bbe
Add PropsSImulti which allows for vectorization of input values and output keys
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-26 00:28:21 -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
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
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
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
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
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
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
e4c8d3f061
Python wrapper is more or less back in action completely. Additional testing is required.
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-12 16:25:33 +02:00
Ian Bell
802495cad3
Last commit before rename of python module to CoolProp
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-12 15:07:57 +02:00
jowr
4f9df69c96
No problems compiling and running the tests...
2014-08-04 17:14:35 +02:00
Ian Bell
90103b50e2
Added two-phase enthalpy and entropy calculations based on vapor quality weighting of saturation properties. Fixed some bugs associated with that.
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-01 14:16:59 +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
db6e794dba
Now octave works on xubuntu with main CMake file - have to mkdir src folder - not sure why.
2014-06-09 23:58:29 +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
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
02f24549e4
Docs for get_fluid_param_string
2014-06-01 20:49:50 +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
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
d1ecc0293e
Removed Props1 function for now, might put it back
...
Signed-off-by: Ian bell <ian.h.bell@gmail.com >
2014-05-15 22:28:56 +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