Commit Graph

5399 Commits

Author SHA1 Message Date
Ian Bell
8eed9591eb Fix javascript building (I think) in GH Actions
See #2394
2024-07-06 18:48:31 -04:00
Ian Bell
4a6c169894 Bump the version for checkout to use new node 2024-07-06 18:31:24 -04:00
Ian Bell
76da60cb35 Rename dev_cppcheck.yml to dev_cppcheck.yml
Disable this action, hasn't been working for ages
2024-07-06 18:28:10 -04:00
Ian Bell
0faa2a80df Update release_get_artifact.yml
Try to fix the node16 issues bit by bit (see #2394)
2024-07-06 18:25:13 -04:00
msaitta-mpr
ae2284e498 Fix bug introduced by 443a2fd (#2351)
Commit 443a2fd addedsome extra checks for convergence in the Helmholtz
PHSU flash routines. However, its checking was more aggressive than the
original routine. This caused the routine to raise an exception on
several values that had previously been deemed acceptable. This trickled
down to cause the TTSE tables to be filled with empty values, making
them less robust.

This commit allows for a solution to be acceptable if the change is
small between iterations as was originally intended.
2024-06-20 21:19:40 -04:00
Ian Bell
f6eb03742f Copy the viscosity correlation into parahydrogen
Paper indicates it is valid for normal H2 and para-H2
Closes #2371
2024-04-21 09:51:17 -04:00
jonCAstickel
41d449d6ba update Mac docs (#2362) 2024-04-04 20:05:39 -04:00
Ian Bell
3c60f822b6 Bump cibuildwheel version
Maybe it fixes the failures?
2024-03-23 11:56:42 -04:00
Aswin N
9144519060 Make AbstractStateLibrary class thread-safe (#2210)
* Make AbstractStateLibrary thread-safe

* Remove global mutex
2024-03-23 09:55:57 -04:00
Ian Bell
0f423dcd20 Go back to the correct ancillary function from Gao
I had the wrong flag for using_tau_r previously

See https://github.com/CoolProp/CoolProp/issues/2356
2024-02-25 10:27:20 -05:00
Ian Bell
c50c029753 Update CoolPropBibTeXLibrary.bib
Mostly small editorial fixes
2024-02-08 15:08:50 -05:00
pkirkham
38caa5ad55 Update CMakeLists.txt (#2347)
Fix compilation for Java wrapper on MacOS.
2024-02-05 17:56:35 -05:00
msaitta-mpr
443a2fd276 Catch singular explosions in saturation_PHSU_pure (#2250)
* Catch singular explosions in saturation_PHSU_pure

Sometimes, the Akasaka solver has issues. This is usually caught and
then it is retried with a new omega. However, sometimes it goes bad
because the J matrix is singular, and this is not caught because the
error is not recalculated.

This commit recalculates the error term to prevent a bad result.

* Add comment to explain error check in saturation_PHSU_pure

* Add extra update check after saturation_PHSU_pure

During saturated PHSU flash calculations, SatL and SatV states have an
imposed phase. This is good for stability, but there is a small chance
that they can both up up with a matching third variable (e.g.,
pressure) that is not actually at the saturation point. This commit
forces a final DT update without this requirement. If an actual solution
has been found, the the error term will still be small. If not, then we
throw an exception and try again.

This continues work on #2245.

* Ensure that saturated phase is specified

In saturation_PHSU_pure, we unspecify the phase of SatL and SatV to
perform a final check. However, for any future updates, these states
*must* be set with specified phase. This commit ensures that no matter
what happens (exception, etc.) the phase is always specified again.

* Revert "Ensure that saturated phase is specified"

This reverts commit c6b650b861.

The commit caused potential recursive lookups and did not solve the
issue at hand.

* Update the ammonio saturated rhoV ancillary

The rhoV ancillary gave somewhat wrong results. This commit provides a
closer fit that prevents errors downstream.
2024-01-15 19:51:04 -05:00
spinnau
956d949bbd Update build process for LibreOffice wrapper (#2341)
* Fix build of LibreOffice wrapper for LibreOffice SDK >= 7.5

In the LibreOffice SDK version 7.4 the "idlc" and "regmerge" tools were
deprecated and replaced by the new UNOIDL compiler "unoidl-write". The
old tools have been removed from version 7.5 onwards. Thus, the build
process is changed to use the new compiler.

- The new binary type libary format produced by "unoidl-write" has
  already been used internally since LibreOffice 4.1 in 2013, so that
  extensions built with the new compiler will also run on older office
  versions. The minimal LibreOffice version for the extension is
  therefore changed to 4.1
- With the "unoidl-write" compiler some API changes were introduced.
  Identifiers containing underscores must start with an uppercase
  letter, as identifiers with underscores and starting with a lowercase
  letter are reserved for internal purposes. Thus, the naming of some
  functions used in the extension is changed.

* Enable install of CoolProp python package dev versions

If the LibreOffice extension was built for a development version, then
it should also download the appropriate development version of the
CoolProp python package.

* Add a builder for LibreOffice wrapper

* Add LibreOffice builder to release workflow
2024-01-11 12:46:33 -05:00
k-collie
1d98aa9f6a Include stdbool for C interface (#2342)
* Include stdbool for C interface

* Maintain pre-C99 compatibility
2024-01-09 12:54:07 -05:00
Ian Bell
ffa5a278ab Fix the triple points densities for R-1336mzz(E) (#2329) 2023-12-06 14:08:13 +01:00
Jorrit Wronski
72e0baae5c Rename R1336mzz(E).json_disabled to R1336mzz(E).json
Prepare for merging #2329
2023-12-06 14:08:00 +01:00
Jorrit Wronski
85f76845be Bump the version number and include mathcad in the release files 2023-11-29 16:19:50 +01:00
Jorrit Wronski
ba21c74fd1 Updated the release description and include the cache handling for GitHub actions v6.6.0 2023-11-29 13:50:35 +01:00
Jorrit Wronski
337526d056 Temporarily remove R1336mzz(E) from the list of fluids until #2309 is fixed 2023-11-29 13:42:16 +01:00
Jorrit Wronski
0979216ec6 Prepare for v6.6.0 2023-11-29 11:22:21 +01:00
Jorrit Wronski
3c0b215b7c Do not force C++14 since some of the Python builders only support C++11 2023-11-29 11:05:24 +01:00
Jorrit Wronski
12a784a541 Skip the C++ standard compile flag for macOS 2023-11-29 10:48:05 +01:00
Jorrit Wronski
fd7badac89 Update the C++ standard to 14 2023-11-29 10:17:27 +01:00
Jorrit Wronski
ce1277fc81 Use lazy initialization and avoid static objects (#2213)
* Use lazy initialization and getter functions to avoid problems with the order of initialization when linking statically.
* Use const ref as suggested by @ibell
2023-11-29 08:55:40 +01:00
Jorrit Wronski
e83c7160d3 Actions for Mathcad (#2322)
Added the Mathcad module to the GitHub actions
2023-11-29 08:35:13 +01:00
Jorrit Wronski
abe3a1b51b Incompresible versions of CoolProp fluids Acetone, Ethanol, Hexane as well as gaseous air
Use an existing CoolProp installation to create data sets for Acetone, Ethanol, Hexane as well as gaseous air. These fluids are added to the list of incompressible fluids for simplified calculations.
2023-11-29 08:34:13 +01:00
Jorrit Wronski
78b4f0e7b5 Fix base temperature and composition problems for incompressible fluids (#2324)
use interpolation to avoid the division by zero when calculating incompressible fluid properties exactly at the base temperature or composition, closes #2295
2023-11-29 08:30:45 +01:00
Jorrit Wronski
cbd53f344b Reformatted the code from #2317 and moved out of the deprecated section. Maybe @CSchulzeTLK can add the doxygen documentation? That would be awesome :-) 2023-11-28 11:21:23 +01:00
Christian Schulze
2cbcc5e236 New C Interface Functions (#2317)
* add more interface functions

* fix phase data type, "const*const"->"const*"
2023-11-28 11:15:33 +01:00
Jorrit Wronski
7bc07f2473 Food properties as incompressible liquids + ice (#2320)
* Directly include the food properties using the coefficients from Choi and Okos (1986)
---------

Co-authored-by: Martin Ryhl Kærn <mrk@ipu.dk>
2023-11-28 11:10:30 +01:00
Jonas Freißmann
ce9c3e57e4 Addition of EoS JSON of R1336mzz(E) from Akasaka-IJT-2023 (#2309)
* Add EOS JSON for R1336mzz(E) from Akasaka-IJT-2023.

* Add BibTeX entry for Akasaka-IJT-2023.

* Add BibTeX_EOS label in R1336mzz(E).json.

* Update R1336mzz(E).json

Fix the triple point liquid density, without it, VLE calculations fail

---------

Co-authored-by: Ian Bell <ian.h.bell@gmail.com>
2023-11-27 21:32:20 -05:00
Ian Bell
4e39188a8f Another new Cython permitted 2023-11-03 19:09:27 -04:00
Ian Bell
03922dfd5c Oops wrong script
See #2310
2023-11-03 18:41:10 -04:00
Ian Bell
cafcd9d92d Hello again pybind11
Needed for #2310
2023-11-03 18:28:26 -04:00
Ian Bell
91a7108359 Goodbye pybind11 (for now) 2023-11-03 18:27:56 -04:00
Ian Bell
b54caf55d9 Bump cibuildwheel to turn on python 3.12
See #2310
2023-11-03 18:25:07 -04:00
Juan F. Coronel
416f608251 App name change: CuadernoDeProblemas -> pSolver, Update index.rst (#2306)
We have changed the name of the app

CuadernoDeProblemas -> pSolver.

pSolver can be used on English and Spanish
2023-10-15 18:28:06 -04:00
Jeff Henning
edbb4920b8 Mathcad Wrapper README Formatting (#2296)
* Mathcad wrapper README formatting fix

* Rename MATHCADPrime.rst to MathcadPrime.rst

Was failing to build TOCtree
2023-09-24 07:41:46 -04:00
Jeff Henning
e1dde6cbff Update Mathcad docs for pre-compiled and discontinuation of Legacy Mathcad [skip-ci] (#2294)
* Update docs for Mathcad Prime install and Legacy Mathcad deprecation
2023-09-20 19:29:02 -04:00
pkirkham
097130daca Fix Missing SWIG Wrapper (#2275)
* Fix Missing SWIG Wrapper

Added pass-through function to CoolProp.cpp for apply_simple_mixing_rule which was not recognised by SWIG and included in wrappers. Had to rename original function to apply_basic_mixing rule to avoid naming conflict. Using a similar approach as CoolProp::add_fluids_as_JSON and keeping the same function name failed to compile. Also added HumidAirProp.h to the SWIG_DEPENDENCIES so that these functions are included in the wrapper.

* Include SWIG wrapper without changing function names

Instead of changing function names, applied same approach as used with add_fluids_as_JSON to implement the passthrough function. apply_simple_mixing_rule is called in MixtureParameters.cpp using a namespace. This means that SWIG wraps the function and the underlying function names are not touched.

* Addressed review comment

Reverted all previous changes to code as per request from code review. This version has no namespace changes and pass-through wrapping of missing function. Only change is to modify CoolProp.i for SWIG to ensure that the missing function, and that function only, is included when SWIG creates the wrapped code.
2023-09-18 21:03:52 -04:00
chrishauptmannAtEsiGroup
c525537175 Added second_partial_deriv and first_two_phase_deriv (#2291)
* Added AbstractState_second_partial_deriv and AbstractState_first_two_phase_deriv to CoolProp.dll

* added functions:  first_two_phase_deriv_splined, second_two_phase_deriv

---------

Co-authored-by: Chris Hauptmann <chn@esi-group.com>
2023-09-15 07:17:14 -04:00
Juan F. Coronel
7dd339147e App name change: CuadernoDeProblemas -> pSolver, Update index.rst (#2292)
We have changed the name of the app

CuadernoDeProblemas -> pSolver.

pSolver can be used on English and Spanish
2023-09-13 03:17:18 -04:00
chris-hampel-CA
36d91f178d Add fugacity functions needed for compatability with CoolProp.jl pkg (#2286)
* attempt to add fugacity functions needed for CoolProp.jl

* address first round of PR edits

change std:size_t to long
remove get_fugacity_coefficients
add .def exports

* remove fugacity refs in CoolPropLib.def
2023-09-07 21:09:50 -04:00
Ian Bell
c4108e5a57 Fix order of initialization 2023-08-28 20:54:20 -04:00
Ian Bell
3cab04a678 format_as should be inline, not static 2023-08-28 20:54:05 -04:00
Jorrit Wronski
43f1e96ce2 Skip the need for bash to evaluate shell variables 2023-08-11 10:32:42 +02:00
Jorrit Wronski
edbd9027a6 Add the different 32bit Windows builds to the CI jobs 2023-08-11 10:23:18 +02:00
Jorrit Wronski
d486ff8401 Add javascript to the release script (#2279)
* Added a Javascript builder
* Updated the docs
2023-08-10 15:51:21 +02:00
Jorrit Wronski
c127739042 Typo in the version number 2023-08-09 14:38:13 +02:00