Commit Graph

2495 Commits

Author SHA1 Message Date
mikekaganski
358757df84 Fix Coverity CID 38607 2015-03-06 23:38:37 +10:00
mikekaganski
c32f05312a Fix Coverity CID 38609 2015-03-06 23:14:29 +10:00
mikekaganski
40ebfb5a55 Fix Coverity CID 38611 2015-03-06 23:07:12 +10:00
mikekaganski
94f261975a Fix Coverity CID 38612 2015-03-06 23:04:25 +10:00
mikekaganski
725f706c6e Fix Coverity CID 38614 2015-03-06 22:52:20 +10:00
mikekaganski
4ae7040d91 Fix Coverity CID 38615 2015-03-06 22:46:07 +10:00
mikekaganski
31e5e6638e Fix Coverity CID 38621 2015-03-06 22:39:49 +10:00
mikekaganski
a44ac2c7ac Fix Coverity CID 38623 2015-03-06 22:36:51 +10:00
mikekaganski
af3107ed9a Fix Coverity CID 38616 2015-03-06 22:14:30 +10:00
mikekaganski
0fbed17b50 Fix Coverity CID 38618 2015-03-06 20:08:17 +10:00
mikekaganski
6bd986e979 Fix Coverity CID 38619 2015-03-06 20:06:35 +10:00
mikekaganski
0b96d38859 Fix Coverity CID 38624 2015-03-06 19:09:11 +10:00
mikekaganski
d8c9157e35 Fix Coverity CID 38534 2015-03-06 19:07:56 +10: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
5832505ffc Make successive substitution a bit more conservative; closes #528 2015-03-05 23:08:14 -07:00
Ian Bell
01dfa4cdf0 Chop off the ends of phase envelopes where one phase is pretty much pure; closes #526
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-05 22:44:53 -07:00
Ian Bell
5e74610d0e Fix unexplained crashes with setting of reference state; See #524 2015-03-05 21:47:36 -07:00
Ian Bell
05d209ee2f Silence phase envelope stdout; Closes #527
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-05 21:03:42 -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
Ian Bell
7a9f98d187 Fix temperature used for ASHRAE reference state
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-05 18:14:25 -07:00
Ian Bell
1e9afc0071 Bicubic ph extrapolates all the way to saturation; Closes #519 2015-03-04 21:54:44 -07:00
Ian Bell
c984702f9e Tabular files are in fact compressed to z and read as z; Closes #516 2015-03-03 23:06:20 -07:00
Ian Bell
b158b5a585 Completed for now the Tabular docs; Closes #506
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-03 18:09:54 -07:00
Ian Bell
bfcff45491 Add some docs for Tabular methods; See #506
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 22:28:49 -07:00
Ian Bell
6a0dca926e Support isobaric_expansion_coefficient; Closes #517 2015-03-02 21:32:34 -07:00
Ian Bell
8832b4475a Allow tabular backends to be disabled by setting NO_TABULAR_BACKENDS macro; closes #507
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 21:27:46 -07:00
Ian Bell
ac4f01fcd7 Fix wstring on non-windows platform
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 21:26:07 -07:00
Ian Bell
ceef2cd960 Actually check the size of the directory of tables and warn or error appropriately; Closes #43 2015-03-02 21:17:11 -07:00
Ian Bell
2682799307 Merge pull request #518 from CoolProp/tabular
Tabular methods implemented
2015-03-03 04:45:38 +01:00
Ian Bell
e4d28ecaa0 Fixed problems from faulty merge
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 20:43:52 -07:00
Ian Bell
d9e16a77f3 Merge branch 'master' into tabular
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 20:20:51 -07:00
Ian Bell
9bdfb8a5d5 Merge branch 'master' of https://github.com/coolprop/coolprop 2015-03-02 20:13:26 -07:00
Ian Bell
3e88a3216d Fixed swig wrapper to repair CoolPropDbl wrapped function
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-02 20:13:08 -07:00
Ian Bell
c2667db344 Make the submodules be init as well as updated 2015-03-02 19:54:08 -07:00
Ian Bell
c063a40183 Implement a wrapper of AbstractState that can be called through the shared library
Closes #508
Closes #497

Sample code:

```
    #include "CoolPropLib.h"

    const long buffer_length = 255;
    char message_buffer[buffer_length];
    long errcode = 0;
    const long N = 2;
    double fractions[N] = {0.5, 0.5};
    long T_param = get_param_index("T");
    long PQ = get_input_pair_index("PQ_INPUTS");

    long handle = AbstractState_factory("HEOS", "Water&Ethanol", &errcode, message_buffer, buffer_length);
    AbstractState_set_fractions(handle, fractions, N, &errcode, message_buffer, buffer_length);
    AbstractState_update(handle, PQ, 101325, 0,  &errcode, message_buffer, buffer_length);
    double Tc = AbstractState_keyed_output(handle, T_param, &errcode, message_buffer, buffer_length);
    AbstractState_free(handle, &errcode, message_buffer, buffer_length);
```
2015-03-01 15:30:31 -07:00
Ian Bell
2e0f267b77 Only silence CRT warning if compiler is MSVC 2015-03-01 13:23:12 -07:00
Ian Bell
07fa830975 Merge pull request #515 from mikekaganski/master
Kill off the CRT deprecate warning (#512)
2015-03-01 21:20:33 +01:00
mikekaganski
0858d98223 Kill off the CRT deprecate warning (#512) 2015-03-01 20:11:14 +10:00
Ian Bell
00e3071926 Merge pull request #513 from mikekaganski/master
Primitive structures simplification attempt 2
2015-03-01 08:55:12 +01:00
Ian Bell
44d508b8e1 Python should also get dev part of version; Closes #511 2015-03-01 00:10:57 -07:00
mikekaganski
b52a76408f fix warning about deleting void* 2015-03-01 16:59:06 +10:00
mikekaganski
b288b0c096 undo adding unnecessary header 2015-03-01 16:49:33 +10:00
mikekaganski
212182d95a Primitive structures simplification attempt 2 2015-03-01 16:39:29 +10:00
Ian Bell
1a27912400 Bump the revision to 5.1.0dev 2015-02-28 22:50:15 -07:00
Ian Bell
bd14f00ba8 5.0.8 release
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 22:43:04 -07:00
Ian Bell
c603f990a4 Merge branch 'release' of https://github.com/coolprop/coolprop into release v5.0.8 2015-02-28 21:28:03 -07:00
Ian Bell
421a6e050a Bump revision for 5.0.8 release
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 21:26:27 -07:00
Ian Bell
11af811d45 Reverted some C++11 only code
@mikekaganski, if you could please try to compile with C++03, that would make my life a lot easier
2015-02-28 20:26:44 -07:00
Ian Bell
f053de76b1 Kill warning about initialization order in Helmholtz.h 2015-02-28 20:12:59 -07:00
Ian Bell
ecbeaed8fc include "crossplatform_shared_ptr.h"
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-02-28 20:12:12 -07:00