Commit Graph

33 Commits

Author SHA1 Message Date
Ian Bell
267d64533a Superancillaries for pure fluids (#2511)
* Expansions are fully wrapped, looking good. Next step is the set of expansions that is the 1D approximation

* Get 1D approx working via cython

* Count solutions

* SuperAncillary class is working

>1000x speedup for water
Time for C++!

* Superancillaries are working!

In C++, speedup is more than 2000x. In Python, more like 150x because of Python <-> C++ overhead

* Add pmax check for PQ superancillary calls

* Update tests

* Allow T limits to be obtained

* Implement get_fluid_parameter_double for getting superanc value

* Add tests for getting parameters from superanc

* Script for testing superancillaries for sphinx

* Microoptimizations; don't help speed

The limiting factor remains the clear function, which takes about 30 ns

* Add R125 superancillary

* Use the release from fastchebpure for the files

* Drop a .gitignore in the unzipped folder

* Update superancillary injection script

* Turn on superancillaries by default

* Missing header

* Many int conversions in superancillary

* Another int cast

* More annoying solution for boost iter max

* Fix warnings

* One more warning

* Clear up the calculation of rho

* Update docs_docker-build.yml

Use arm64 since the containers were built on mac

* Superfluous ;

* Update backend.py

* Get the critical points working for superancillaries

* Fix wrapping changes of xmin&xmax methods

* squelch warnings

* Version 0 of jupyter notebook for docs

* Try to add the notebook to the docs

* Add jupyter notebook for superancillary

* Lots of updates to superancillary notebook

* More updates to docs

* Skip pseudo-pure for superancillary docs

* Fix output of superancillary figures

* Add superancillary plots to docs for the page for each fluid

* Make a placeholder figure for fluids without superancillary

* Add superancillary plots to task list

* Bump to release fixing m-xylene

* Relax the location of the REFPROP stuff

* Change default name for R-1336mzz(E)

* No need for figures to be so large

* Don't need REFPROP setting

* Bump to fastchebpure release with methanol

* Benchmark caching options

* Benchmark more granularly

* Add the fast methods to public API for HEOS class

* Back to memset - can memset with 0 but no other value

* Fix how caching is managed in Helmholtz class

* Close to final implementation

Perhaps a tiny bit more optimization possible?

* Update function name

* Make message more accurate

* Fix init order

* Expose update_QT_pure_superanc to Python

* Fix when _reducing is set for pures

* Fix the post_update

* Indent

* Notebook

* Notebook

* Make ln(p) construction lazy

Only really matters for debug builds

* Also make reference non-const

* Inject superancillary for methanol

* Make the superancillary loading entirely lazy in debug

* Fix PH bug for Nitrogen

 Closes #2470

* Force the clear to be called on SatL and SatV

To invalidate them at start

* Default is non-lazy superancillary loading

* Add CMake option to have lazy-loading superancillaries [skip ci]

Not a good idea unless doing very narrow testing
2025-05-17 20:27:19 -04:00
Ian Bell
e3032baf45 Pick the runner script based on the platform 2025-04-07 19:36:38 -04:00
Jorrit Wronski
f00c36a9ce Support act to run local debugging sessions of the github actions 2023-08-08 14:34:00 +02:00
Jorrit Wronski
2841dfe217 Build the docs for v6.4.2 (#2191)
- Streamlined the build of the HTML documentation based on a private docker image.
- Invoke doxygen and Sphinx to create the final HTML pages.
- Employ a cache for the GitHub actions to store the output of the expensive tasks.
- Restructured the GitHub actions builders and introduced a naming scheme.
- Fixed a few typos in the docs.
- Automatically publish the documentation to GitHub pages.
2022-12-07 11:55:16 +01:00
Ian Bell
135cb41ae5 REFPROP comparison is not too slow 2020-05-03 13:45:02 -04:00
Ian Bell
3b1eb50324 More pep8 whitespace; see #1612 2019-01-12 20:45:25 -07:00
Ian Bell
3ecd5e0104 Run python scripts unbuffered 2019-01-12 01:24:40 -07:00
Ian Bell
51449edef1 Switch over to new example script 2019-01-11 18:58:28 -07:00
scls19fr
5045c96322 Fix Python print (#1746)
* Fix print

* Some manual fixes

* Revert
2018-10-19 22:59:31 +02: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
Ian Bell
03b76960ce Workaround hang in plot_directive 2016-05-11 09:41:10 -06:00
Ian Bell
02d74f6844 Touch the time-stamped file for expensive builds only after success 2016-05-07 20:30:54 -06:00
Ian Bell
42900543a1 Remove the quitting line from __init__.py 2016-01-09 14:51:37 -07:00
Ian Bell
65aecc2c76 Inject version number into doxygen output 2016-01-09 14:50:55 -07:00
Ian Bell
9f0fa0e47c Added docs for configuration keys, and functions to C++ and python to make this possible; closes #761 2015-08-20 15:57:21 -05:00
Ian Bell
764f2a8739 Run the example as part of the web build
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2015-03-13 20:05:52 -06: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
d463227365 Rebuild the parameter table every time
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-02 21:35:38 -05:00
Ian Bell
7e93aa81a2 Turn back on REFPROP plots, and change plotting style
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-12-01 12:19:48 -05:00
Ian Bell
64c95b6be7 Run the consistency plots with expensive docs build
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-27 18:06:55 -05:00
Jorrit Wronski
8642569674 Removed REFPROP comparison from scripts, does not work on Linux and MacOS, added wxPython to docs builder requirements. 2014-11-26 08:55:21 +01:00
Ian Bell
223f56091f Another attempt at REFPROP plots
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 12:31:27 -05:00
Ian Bell
ae598b366d Add the comparison plots with REFPROP
See also https://github.com/CoolProp/CoolProp/issues/236

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
2014-11-24 01:45:24 -05:00
Jorrit Wronski
fba3bec6e8 Changed daylight savings time settings in scheduled builder 2014-10-26 11:30:14 +00:00
Jorrit Wronski
7bc8541167 Fixed the nightly build scheduler for the docs 2014-10-13 12:22:30 +02:00
Jorrit Wronski
b8b6ba773f Typo in init file for Web 2014-10-13 11:11:52 +02:00
Jorrit Wronski
861cd3cbfb Minor changes in the docs 2014-10-13 11:07:24 +02:00
Jorrit Wronski
a610620d00 Unified buildbot description and added example files 2014-10-09 14:14:37 +02:00
Jorrit Wronski
d61e96514b Added the nightly job 2014-10-09 12:15:38 +02:00
Jorrit Wronski
c22925b32a More cleaning of the code 2014-10-09 10:43:21 +02:00
Jorrit Wronski
d991788141 More rewriting of the doc generators 2014-10-08 14:42:24 +02:00
Jorrit Wronski
f742002aa9 Cleaned the nightly builder and integrated everything into Python scripts 2014-10-08 13:17:59 +02:00