Commit Graph

33 Commits

Author SHA1 Message Date
Ian Bell
de2105fafb Add tests for HAPropsSI
Also, if an output is the same as the input, return the input directly

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-19 16:34:24 -07:00
Ian Bell
0bb60b6ed9 Refactored HAPropsSI to handle better weird inputs
Closes #400
Closes #398
Closes #403

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 23:38:29 -07:00
Ian Bell
5208b32995 Fixed bug with different output for different order of inputs to HAPropsSI; Closes #399
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-12 21:58:40 -07:00
Ian Bell
02987937ef Clean up HAPropsSI
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-11 20:07:57 -07:00
Ian Bell
f7cb65305a Fix bug with humid air properties; Closes #389
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-01-07 14:02:34 -07:00
Ian Bell
16ffbed7b0 Fixed bug when relative humidity was input, but T not provided. Closed #320
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 11:16:27 -05:00
Ian Bell
e0e2591d73 Fixed problems with HAPropsSI when wetbulb is an input by converting call to Brent. Slow but steady.
Closes https://github.com/CoolProp/CoolProp/issues/311

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-09 00:08:27 -05:00
Ian Bell
4960842476 A better step size in secant solver for low W
Closes https://github.com/CoolProp/CoolProp/issues/254

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-04 12:09:06 -05:00
Ian Bell
6b98b80d7b Relaxed convergence criterion for dewpoint.
Closes https://github.com/CoolProp/CoolProp/issues/251

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 14:54:01 -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
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
540da38842 Fixed problem with S as input for humid air
Closes https://github.com/CoolProp/CoolProp/issues/181

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-10-22 21:08:36 +00:00
Ian Bell
7bf4216240 Repaired humid air properties. Validation runs now
Closes https://github.com/CoolProp/CoolProp/issues/125

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-09-10 10:14:29 +02:00
Ian Bell
4b082029c4 Finally repaired flash routines.
Some edge cases remain

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-24 13:40:46 +02:00
Ian Bell
d3261395bf Replaced all fabs() with std::abs()
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-23 14:56:07 +02:00
Ian Bell
f43a0b792b Humid air properties now use string instead of char*
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-19 21:55:23 +02:00
Ian Bell
d4e7a6015e Silenced a few warnings
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-15 15:57:33 +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
ebb2434cc2 Fixed test case for Henry's Constant
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-07 20:43:44 +02:00
Ian Bell
abb7344973 More verbose error logging for HAProps tests
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-04 15:12:05 +02:00
Ian Bell
95e5b6f796 Removed unused variables
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-08-01 10:01:58 +02:00
Ian Bell
7133296b98 Fixed reference state for Air to agree with REFPROP, fixed reference state offsets for humid air
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-28 11:14:52 +02:00
Ian Bell
db3515007b Fixed humid air properties to take into account reference state for air and water to close https://github.com/CoolProp/CoolProp/issues/47
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-28 10:49:24 +02:00
Ian Bell
1701f69e49 Fixed humid air errors with wet bulb
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-07-25 14:02:26 -04: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
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
f93aa76210 ECS conductivity work - nearly works, just need to sort out the conformal state solver.
Goodbye to AbstractStateWrapper - can use std::tr1::shared_ptr, much nicer

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-05-28 19:15:34 +02:00
Ian bell
79ceae2f5c Diabled copy ctor for now for AbstractStateWrapper class until we figure out how to handle ownership and copying
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-20 13:57:28 +02:00
Ian bell
43904c3cac AbstractStateWrapper now checks whether AbstractState has been instantiated; HumidAirProp instantiation moved to function that is called by all exposed functions
Signed-off-by: Ian bell <ian.h.bell@gmail.com>
2014-05-20 12:52:26 +02:00
Ian Bell
8328c271c6 Fixed initialization bug, Octave example compiles and runs on linux now 2014-05-18 00:10:51 +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