Ian Bell
9ec2acc664
Add cair_sat to DLL/SO; closes #1005
2016-03-24 17:31:18 -06:00
Ian Bell
dce9e5ea0e
Fix a bunch of doxygen comments
2016-01-09 14:26:20 -07:00
Ian Bell
240165006a
Add an accessor function to DLL to allow for getting multiple outputs at once from low-level interface
...
see #888
see #880
2015-12-13 00:15:24 -07:00
Ian Bell
4b8bd14d93
Add first_saturation_deriv to high-level interface around AbstractState; closes #835
2015-10-16 14:37:02 +02: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
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
Ian Bell
2495df75ed
Catch exceptions in High-Level API; Closes #441
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2015-01-30 05:00:31 -07: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
d064baf230
Fix bug with PhaseSI function (at DLL level) taking Output parameter as first parameter
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-12-18 18:18:45 -06: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
919d155602
Fixed functions in the dll export to require the length of the output string to be supplied
...
See https://github.com/CoolProp/CoolProp/issues/228
Should be fixed now
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-11-20 18:39:33 -05:00
Ian Bell
babae66294
Fix typo in header
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-11-19 23:07:33 -05:00
Ian Bell
ec3f4033f4
Try to fix __assert linking problem on VxWorks according to https://rowley.zendesk.com/entries/46176--Undefined-reference-to-assert-error-message
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-11-19 23:04:17 -05:00
Ian Bell
82faac7a14
Improve docs for DLL
...
See https://github.com/CoolProp/CoolProp/issues/222
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-11-19 12:00:26 -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
1416f62682
Fixed bug with second linkage problem with CoolPropLib
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-10-15 21:37:23 +02:00
Ian Bell
e049485def
Docs for PhaseSI copying
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-10-14 15:23:37 +02: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
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
67e26391b0
Killed off doxygen errors
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-09-13 15:57:57 +02:00
Ian Bell
e32dfcf255
Updates to docs
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-08-19 00:30:56 +02:00
Ian Bell
817510b29e
Exported get_parameter_information_string in DLL
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-07-07 21:03:18 +02:00
Ian Bell
5ee6627f65
Updated the F77 wrapper functions in the DLL
...
Signed-off-by: Ian Bell <ian.h.bell@gmail.com >
2014-06-26 01:04:58 +02:00
Ian bell
2d17cc53ab
Renamed CoolPropDLL to CoolPropLib
...
Signed-off-by: Ian bell <ian.h.bell@gmail.com >
2014-05-20 22:55:41 +02:00