Commit Graph

37 Commits

Author SHA1 Message Date
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
f8db5bb217 Use CoolProp's secant solver for humid air calculations. should solve #2190 2022-12-07 11:51:47 +01:00
Jorrit Wronski
bb95bdea72 Added a test file for #1611 and #1678 2022-11-29 21:10:21 +01:00
Julien Marrec
6913fc41dc Format macros, they keep getting picked incrementally by clang format + Strip trailing whitespaces
```
find . -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx|py)$' | xargs -I@ sed -i 's/[ \t]*$//' "@"
```
2022-04-01 07:39:35 -04:00
Julien Marrec
05c8cf503b Lint: use automated tooling to reformat C++ and CMakeLists files (#2103)
* Add initial clang tidy / clang format config files

* Clang format the entire codebase

```
find ./src -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./include -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./Web -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./dev -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
find ./wrappers -regextype posix-extended -regex '.*\.(cpp|hpp|c|h|cxx|hxx)$' | xargs clang-format-12 -style=file -i -fallback-style=none
```

* Add a .cmake-format file and reformat CmakeLists.txt with it

https://github.com/cheshirekow/cmake_format

* Add a clang-format workflow


only runs on PRs, only on touched files
2022-03-31 10:51:48 -04:00
Ian Bell
1076753e83 Issues/1820 (#1823)
* Added a CPP file to debug humid air calculations
* Improved the handling of the saturation states
* Twb, Tdb pair fixed
* Tighten tolerances on Brent, better accuracy
* Removed the bounds check from the internal routines
2019-04-23 20:34:18 +02:00
Ian Bell
0e7437f95b More pep8 whitespace; see #1612 2019-01-12 20:48:56 -07:00
Ian Bell
3b1eb50324 More pep8 whitespace; see #1612 2019-01-12 20:45:25 -07:00
Jorrit Wronski
fe7c8f1805 Feature/recent compilers (#1783)
This fixes many issues: 
- Python packages can be built with XCode 10, closes #1782 
- Handling of CMake options for OSX stdc++ is streamlined
- TR1 warnings from MSVC 2017 have been silenced
- Nightly builds fixed, closes #1778 
- Documentation builds fixed, closes #1762 
- Python source packages are updated with recent Cython, closes #1777
2019-01-11 11:42:55 +01:00
scls19fr
5045c96322 Fix Python print (#1746)
* Fix print

* Some manual fixes

* Revert
2018-10-19 22:59:31 +02:00
thorade
b2a97330e6 fix syntax: err_count += 1
https://stackoverflow.com/questions/2632677/python-integer-incrementing-with
2017-12-13 16:10:00 +01:00
Matthis Thorade
19a4875879 More autopep8 (#1621)
* autopep8 rule-groups E101,W1,W2,W3

* autopep8 with rule group E3 (blank lines)

autopep8 --in-place --recursive --max-line-length=200 --exclude="externals" --select="E101,E3,W1,W2,W3" .

* tabs and space W191

* autopep8 aggressive
2017-12-13 14:43:41 +01:00
Matthis Thorade
526cb198a4 autopep8 whitespace (#1613)
* autopep8 whitespace only:

--select="E101,W1,W2"

* revert single file: web2py_online.py

Should this be a .py file at all?

* revert file Tickets/1443.py because the diff looked strange:

maybe there is an encoding problem?

* Rename web2py_online.py to web2py_online.rst
2017-12-12 08:32:38 -07:00
Jorrit Wronski
7a1ee42b27 More testing of the plotting functions 2017-03-10 13:48:29 +01:00
Jorrit Wronski
22f6a3b81d This seems to be the most sane handling of the guess values 2017-03-10 12:14:02 +01:00
Jorrit Wronski
4cf5c8aef6 Started working on #1440 2017-03-10 09:32:32 +01:00
Jorrit Wronski
f7af136eb1 Added the line tracer to _PropSI_multi 2017-03-09 23:24:01 +01:00
Jorrit Wronski
ff960a87b9 Editing main file to include the case generators 2017-03-05 00:36:23 +01:00
Jorrit Wronski
ed88b4e5c0 This one fixes #1352, but some issues remain with the incomplete support of an imposed two phase state 2016-11-28 23:31:12 +01:00
Jorrit Wronski
9294e83256 Trying to work on #1352 2016-11-28 22:59:39 +01:00
Jorrit Wronski
ef0f528401 Added calc_first_two_phase_deriv_splined to tabular backend, it works and closes CoolProp/ExternalMedia#16, but #870 should be kept open due to the use of the AbstractState instance that should be avoided 2016-11-28 21:01:07 +01:00
Jorrit Wronski
4693de315f Started with the first step towards #870 2016-11-27 23:26:47 +01:00
Jorrit Wronski
1cf82b9c88 Added the initial file by @ibell 2016-11-27 17:34:31 +01:00
Jorrit Wronski
3632f76e9a handling of the critical point for the plots seems to done, closes #1118 2016-06-09 16:45:51 +02:00
Jorrit Wronski
7c0d3ebe37 Included a manual copy of the abstract state object and exposed the backend name to Python 2016-06-09 16:18:38 +02:00
Jorrit Wronski
e086f137da Added gas phase and verbosity switches to the test script for #882 2015-12-12 18:43:39 +01:00
Jorrit Wronski
a85a8ba595 Added script for #883 to sources 2015-12-12 17:59:43 +01:00
Ian Bell
0887e37e21 Add testing script for liquid with phase imposed 2015-12-07 07:49:15 -07:00
Ian Bell
d13ee6b915 Add a notebook showing how to calculate metastable properties 2015-12-01 20:17:20 -07:00
Ian Bell
85755f2c0d Improve behavior of tabular backends around saturation; see #845 2015-11-15 22:02:48 -07:00
Ian Bell
a5a5e4a378 Fix bugs with SES36 property evaluations; closes #842 2015-11-14 18:55:06 -07:00
Jorrit Wronski
84210452ce More process drawings 2015-06-30 08:46:26 +02:00
Jorrit Wronski
28fcdbd66b Merge branch 'master' into draw_process 2015-06-22 18:24:21 +02:00
Jorrit Wronski
9496c01a95 Picked up the work on #351 2015-06-22 18:24:07 +02:00
Jorrit Wronski
c9f0fb7bb4 Confirmed the problems mentioned in #524, reopening #524. 2015-03-09 13:11:54 +01:00
Jorrit Wronski
127a9668f4 Fixes #321 - a request for additonal aliases 2014-12-09 15:13:30 +01: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