Commit Graph

62 Commits

Author SHA1 Message Date
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
Ian Bell
aff594bb25 Fix reducing state access for REFPROP; closes #487
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-22 23:11:40 -07:00
Ian Bell
183868dee2 Implement acentric factor through AbstractState and Props1SI; closes #448
Fix all instances of accentric->acentric in fluid files and codebase.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-03 17:37:53 -05:00
Ian Bell
ad978bf294 Expose second derivatives through AbstractState and add test (passes)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-04 00:34:45 -05:00
Ian Bell
9e5c3d6035 Preliminary work on two-phase derivatives and splines
Added two-phase derivative, works!
Spline for drho/dh|p works
Spline for drho/dh|p NOT WORKING

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-01 22:58:05 -05:00
Ian Bell
50b611bd4a Move predefined mixture parsing to HelmholtzEOS initializer function; Closes #373
Renamed functions for Helmholtz backend for getting const or non-const reference to mole fractions

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-31 18:06:12 -05:00
Ian Bell
733cf60b31 Call clear() in instantiator for AbstractState
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 23:04:03 -05:00
Ian Bell
9c05e93fd6 Refactor AbstractState::factory to take vector of strings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-30 16:06:07 -05:00
Ian Bell
6dc00552e4 Implement the Prandtl number. Closes #372
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-27 00:38:37 -05:00
Ian Bell
a8375c3912 Added saturated_liquid_keyed_output and saturated_vapor_keyed_output functions to get access to internals for saturation state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-26 22:24:25 -05:00
Ian Bell
884a3ff8ff Implemented second saturation derivatives with respect to p; Closes #238
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-19 17:39:47 -06:00
Ian Bell
19353c764c Merge branch 'master' into refprop_derivative_support
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:39:00 -05:00
Ian Bell
751a92232a Implemented second partial derivatives in the AbstractState class
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:37:04 -05:00
Ian Bell
fe1e41f0eb Expose fluid names through the AbstractState. Closes #322
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-10 00:05:55 -05:00
Ian Bell
1a9f0a4e32 Derivatives are working, seems like a bug in REFPROP PHI0dll function is the only remaining problem
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 18:55:52 -05:00
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
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
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
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
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
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
58556c6e14 Expose mole fractions of liquid and vapor through python
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-11 02:12:44 +02:00
Ian Bell
92299092a4 Updated python wrappers of both Abstract State and old kSI based state class
Fixed cp0
Works again with PDSim
Closes https://github.com/CoolProp/CoolProp/issues/134

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-09 14:30:42 +02:00
Ian Bell
cdc21e38e8 PhaseEnvelopeData can be extracted using the get_phase_envelope_data function from the AbstractState
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-06 21:41:14 +02:00
Ian Bell
799422fe40 Implemented generalized second derivative, seems to work, implemented at PropsSI level too
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-24 17:26:46 +02:00
Ian Bell
cd8ee9eb52 Added code and tests for saturation ancillaries (p, rho', rho'')
Closes https://github.com/CoolProp/CoolProp/issues/75

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-23 13:01:56 +02:00
Ian Bell
0dcdf7ef5d Implemented PQ for pseudo-pure to close https://github.com/CoolProp/CoolProp/issues/92
* As a consequence, made update function take CoolProp::input_pairs enum as first input (thanks @jowr for the idea)
* Decoupled the pre_update and post_update functions in order to allow for more creative update functions using guess values, etc.

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-20 21:44:13 +02:00
Ian Bell
881a6c4616 Added handling for first partial derivative as a string - added tests - they pass
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-19 00:34:26 +02:00
Ian Bell
39a99e183c Removed _forceSinglePhase, _forceTwoPhase (not used), specify_phase() should be used instead
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-18 19:25:25 +02:00
Ian Bell
61bc24e7b1 phases is now an enum, added (non-working) critical region VLE solver
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-15 17:13:00 +02:00
Ian Bell
a84edcdb57 Implemented saturation P 1D solver for low pressure for some fluids like n-Propane
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-13 11:24:27 +02:00
Ian Bell
f7c0cb0b06 Relaxed some pressure domain checks and pass state by reference
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 23:40:16 +02:00
Ian Bell
36620cdc94 Fixed parameters in AbstractState header - SWIG is not pleased
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 22:25:24 +02:00
Ian Bell
8f9c6ca438 Added hs_anchor test (passing) and function get_state to allow to get access to states stored in the backends
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 21:17:34 +02:00
Ian Bell
b7bd58d986 More work on flash routines, number of failures is rapidly decreasing - still have problems for low pressure sat_p calcs
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-12 11:21:12 +02:00
Ian Bell
c3cc696080 P,Y now works if P > pc
Add supercritical_gas and supercritical_liquid phase flags for a bit finer granularity

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-09 15:10:09 +02:00
Ian Bell
faf530d588 Fixed melting curves, PY flash works for subcritical cases 2014-08-09 11:07:21 +02:00
Ian Bell
1aec75df85 PY subcrit superheated tests pass
There was a typo in umass() function

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-08 11:26:35 +02:00
Ian Bell
138135f5b7 Added Tmin and Tmax
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 18:58:13 +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
df17eaf6cc python wrapper builds with vs2008 (fixed bug in Eigen)
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-03 11:37:17 +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
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
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
Ian Bell
f4764eb929 Incompressibles load and run! ExamplePure works.
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-09 18:06:21 +02:00
Ian Bell
ca7fc30a58 Added saturation spline to the AbstractState and REFPROP interfaces
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-06-11 15:38:49 +02:00