Commit Graph

624 Commits

Author SHA1 Message Date
Ian Bell
590cc7c817 Fix resetting of mole mass; closes #1815 2019-04-06 11:30:47 -06:00
Ian Bell
3c07cf89be Maybe fix shared_ptr for VS2008 2019-03-31 10:43:54 -06:00
Thomas Beutlich
936939b8ab Use std::shared_ptr if available in VS (#1810)
Fix compilation with VS2017, where std::tr1 is no longer enabled by default
2019-03-25 19:44:32 -06:00
Ian Bell
cb8cb0be62 Make ND solver capable of being relaxed 2019-02-21 10:17:02 -07:00
Jorrit Wronski
75c32a5153 Added isentropic expansion coefficient (#1791) 2019-01-15 10:09:06 -07:00
Ian Bell
5ce0b4ef97 Fix bug with name with incomp backend; closes #1707 2019-01-12 17:06:30 -07:00
Ian Bell
a73e447f92 Revert changes for FMT; should have been done in branch (sorry @jowr) 2019-01-11 21:27:56 -07:00
Ian Bell
7410947713 Fix some windows build failures 2019-01-11 20:27:46 -07:00
Ian Bell
b1fd926ef3 First attempt at moving FMTLIB away from header-only; speed up builds maybe? 2019-01-11 20:01:01 -07:00
Ian Bell
502bf0b506 Reduce the number of includes from DataStructures.h 2019-01-10 20:45:44 -07:00
Ian Bell
30b0aea348 Add some more pure-virtual destructors 2019-01-10 14:58:13 -07:00
Jeff Henning
4b1ace160e Throw sensible error message for single-phase surface tension (#1755) 2018-10-29 09:08:54 +01:00
Ian Bell
a68eb19a7e Fix integer comparison 2018-10-08 22:49:26 +02:00
Jorrit Wronski
514ee59e27 Updated external submodules (#1727)
This change is somewhat related to #1604 .

* Catch is now at v2.3.0
* Eigen is now at v3.3.5
* FindMathemaica is now at v3.2.4
* fmtlib (formerly cppformat) is now at v4.1.0 (v5.x.x is not compatible with our code).
* msgpack-c is now at v3.0.1
* pybind11 is now at v2.2.3    
* All the other submodules have been moved to the latest master commit
* All submodules are sorted alphabetically
2018-08-30 10:36:27 +02:00
luzpaz
93f4a986e2 Misc. typos (#1726)
Found via `codespell -i 3 -w -I ../coolprop-word-whitelist.txt` whereby whitelist consists of:
```
cas
formate
hel
nd
te
tim
ue
uint
```
2018-08-14 23:06:49 -06:00
Ian Bell
8b7fb6abd4 Implement get/set_fluid_parameter_double in C++ and python 2018-03-25 17:09:56 -06:00
Ian Bell
a2d72e5f7d I think that setting of departure functions for copied states works properly, but more testing needed 2018-03-17 13:13:50 -06:00
Ian Bell
ac84d0ddaf Remove explicit need for locale, just use the punctuation character 2018-03-11 18:33:37 -06:00
Ian Bell
774ee0c567 Make string->float conversion aware of the locale (#1666)
* Make string->float conversion aware of the locale as specified by configuration variable.

Cannot use the system-default locale because some things (matplotlib) change the system locale and it cannot be relied upon to be stable.

* Also add locale header

* Also requires the use of c_str, std::string overload is c++11
2018-03-10 13:48:24 -07:00
Jeff Henning
abcd91a9a7 Update PropsSI() to Parse Imposed Phase Strings on Input Keys (#1660)
* PropsSI enhancement to allow imposed phase on Input key string

* Update PropsSI documentation for imposing phase [skip ci]
2018-03-07 21:51:41 -07:00
Ian Bell
945f82e90e Fix the default values to assume that l and m are double, not int 2018-03-03 17:13:00 -07:00
Ian Bell
44d8a9ecb0 Allow abiliy to always reload library; closes #1648 2018-02-15 21:53:35 -07:00
Ian Bell
034a2d4612 Add include guard for ODEIntegrators.h 2017-12-03 16:18:35 -07:00
Jeff Henning
b8abf167b3 Patch PT_flash() to update _phase with imposed phase, in case it changed (#1606)
Also makes phase_lookup_string(phases Phase) available through CoolProp.h header for use in debug, warning, and error messages.
2017-12-03 18:02:36 -05:00
Ian Bell
d56cea1d21 Hack to get Catch tests to run properly. See #1530. Not the right solution... 2017-08-06 19:16:15 -06:00
Ian Bell
76a91b4412 Refactor the helmholtz evaluations 2017-06-02 21:31:05 -06:00
Ian Bell
17612bbdef Configuration variable for assuming that the critical points is stable and skipping stability analysis (#1485) 2017-05-03 14:23:47 -06:00
Jorrit Wronski
96ba75e640 Initialize ChemSpider id to fix coverity/143810 2017-04-21 19:42:17 +02:00
Jorrit Wronski
4efe01d593 Feature/refprop paths (#1477)
Explicitly specify a REFPROP library and some convenience functions to handle paths on different platforms.
2017-04-21 12:28:25 +02:00
Ian Bell
dbf729af17 Roll back somewhat to get compilation to work for MSVC2008 2017-04-21 00:32:49 -06:00
Ian Bell
27778abafe Avoid the double-free by a convenience class that is statically initialized that passes the generator 2017-04-17 22:53:10 -06:00
Ian Bell
6641efba59 Switch backend registration to the use of static generators added to a backend library
Allows for easier removal of backends by just not adding their source files
2017-04-17 21:35:42 -06:00
Jorrit Wronski
ea318e82ec Merge branch 'master' into feature/trace_isoline 2017-03-10 09:31:45 +01:00
Ian Bell
260ba2489a Fix typo in CoolPropLib.h (#1450) 2017-03-09 19:05:45 -07:00
Jorrit Wronski
f7af136eb1 Added the line tracer to _PropSI_multi 2017-03-09 23:24:01 +01:00
JonWel
78b953e64c UNIFAQ -> UNIFAC, close #1421 (#1423)
* UNIFAQ -> UNIFAC, close #1421

* UNIFAQ -> UNIFAC, close #1421
Also file names
2017-02-10 00:13:04 -07:00
tobias-loew
2672a929c9 set_reference_state for AbstractSate (#1403)
this allows for setting reference state without changing the state of
the JSONLibrary
2017-01-27 07:51:29 -07:00
Ian Bell
3471e910d0 Expose get_fluid_constant to AbstractState and to python; closes #1394 2017-01-18 19:31:56 -07:00
Reza Afzalan
b1451ab4a6 Update CoolPropLib.h (#1383)
* Update CoolPropLib.h , closes #1379

Update CoolPropLib.h , closes #1379

* Update HumidAirProp.cpp

#1379

* Update CoolPropLib.h

#1379
2017-01-03 18:15:22 -07:00
Ian Bell
064585511a Fix endswith function; closes #1372 2017-01-02 14:56:52 -07:00
Ian Bell
149183e87f Allow fluids to be provided (and overwritten) at runtime; closes #1345 (#1366)
* Provide fluids at runtime; closes #1345
2016-12-02 01:20:06 -05:00
Jorrit Wronski
196b27c1a4 Implemented caching of splined properties, closes #1354, accelerates calculations for #870, is related to 7c478a1925 2016-12-01 10:48:18 +01:00
Ian Bell
8f4afd06a3 Make rapidjson shim functions const-correct 2016-11-29 22:14:09 -07:00
Ian Bell
fb82316fcd Allow for cubic transformations in HEOS multi-fluid model (#1359)
* Allow fluids to be used with SRK in multi-fluid model that have a dash in name

* Add ability to use SRK and PengRobinson as one-fluid transformations in multi-fluid models;see #1346

* Changed API for AbstractCubic so T_r and rho_r are settable

* Also add the ability to set to Peng-Robinson; see #1346

* Actually set the cubic EOS in multi-fluid model

* Enable both SRK and PR for cubic transformations in multi-fluid model
2016-11-29 18:19:14 -05:00
Ian Bell
b5df230da5 Add ability to ignore setup errors for REFPROP mixtures via configuration variable (#1347) 2016-11-21 23:08:35 -07:00
Ian Bell
58a3aed22c Fix some issues with the ND Newton-Raphson solver (#1341) 2016-11-18 11:21:17 -07:00
Ian Bell
5d059a5c14 Add set_string function to rapidjson wrappers (#1340) 2016-11-18 10:48:43 -07:00
Ian Bell
2578e7b92e Add the ability to set a standard departure function through the AbstractState (#1339) 2016-11-17 11:45:11 -07:00
Ian Bell
6270db1cee Remove template specialization for Spline class 2016-11-05 13:26:47 -06:00
Ian Bell
722f4bf5de Finally fix phase envelopes again; closes #1321 2016-11-05 12:29:26 -06:00