Ian Bell
4f5d1a041d
Add linear and Lorentz-Berthelot mixing rules; call apply_simple_mixing_rule(), then twiddle parameters
...
closes #798
closes #792
2015-08-29 16:38:00 -06:00
Ian Bell
2a1cae6f5a
Add ability to set BIP for HEOS and REFPROP with common interface; closes #793
...
Serious problem remains with the setting/getting of betaT and betaV in REFPROP since asymmetry not taken into account
2015-08-28 22:59:33 -06:00
Ian Bell
fb10d74f7b
Don't crash if binary mixture cannot be loaded; closes #710
2015-07-20 20:15:10 -06:00
Ian Bell
2d8b672e25
Fix getting of F parameter for binary pairs for docs; closes #734
2015-07-20 19:54:13 -06:00
Ian Bell
7a375952e0
Implement calling a flash routine with guess values provided at the low-level (PQ only for now)
2015-03-06 15:38:25 -07:00
Ian Bell
cd3e6323d2
Enable the ability to set mixture binary pair data from python (I think)
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-03-05 23:46:22 -07:00
Ian Bell
6b6f2dbb29
Removed pEOS and replaced it with EOS() function - reference state works properly; Closes #524
2015-03-05 20:59:46 -07: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
mikekaganski
1068b724c3
CoolPropDbl
...
Introduce CoolPropDbl to replace long doubles. This may help to overcome
possible portability problems, and test for efficiency and precision.
2015-02-24 13:24:51 +10:00
mikekaganski
f8bb1c0044
Avoid copying parameters
2015-02-24 09:26:11 +10:00
Ian Bell
aef97f9755
Lots of little changes to squelch warnings
...
Closes #484
Closes #483
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-02-21 14:39:25 -07:00
Jorrit Wronski
5ae43f32a9
Minor adjustments in Python plots and snippet that fixes #482
2015-02-21 18:09:32 +01:00
Ian Bell
fe48c7e403
Fixed bugs with bad departure function names and better error message; Closes #396
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-01-07 13:05:39 -07: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
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
70f737c55d
Predefined mixtures are added, can be accessed with a fluid name like R410A.mix
...
Closes https://github.com/CoolProp/CoolProp/issues/153
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-10-02 09:57:01 +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
07cd616c38
Implemented access to mixture binary pairs in get_global_param_string
...
See https://github.com/CoolProp/CoolProp/issues/152
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-24 16:53:51 +02:00
Ian Bell
ed1d7a41a6
Fixes to Mixture Parameters
...
If F_ij is zero, put in a dummy departure function
If pair is invalid, throw error rather than crash
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-11 13:00:53 +02:00
Ian Bell
518aeca7d8
Fixed MixedParameters.cpp to remove c++11 functionality
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-07 00:34:13 +02:00
Ian Bell
8fdd1fddaf
Refactor of mixing parameters successful
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-06 15:41:33 +02:00