Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cantera Units #991

Merged
merged 41 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
6cfd088
Implement unit conversion file into Cantera
hallaali Mar 3, 2021
6dabf1a
Create test_units.py
hallaali Mar 19, 2021
594e50f
Create Python examples with units
hallaali Apr 15, 2021
b7051d4
fix tests and update unit examples
hallaali Apr 29, 2021
e7a59fa
Refactor PureFluid derived classes as functions
bryanwweber Apr 30, 2021
b1fbaf0
Refactor setter and getter templates for units
bryanwweber Apr 30, 2021
8bf0fbb
Use numpy.isclose to compare array Quantities
bryanwweber Apr 30, 2021
94c5908
Add critical_density units
bryanwweber Apr 30, 2021
4952189
Fix up tests for units module
bryanwweber Apr 30, 2021
b347d0a
fix capitalization error
hallaali May 3, 2021
0755513
add pint dependency to CI
bryanwweber May 29, 2022
4a03313
Update rankine_units.py
hallaali May 5, 2021
3944c32
[Doc] Add default python_module key into env
bryanwweber May 28, 2022
f3667ab
[Units] Add application-level registry
bryanwweber May 29, 2022
7ae626e
[Cython] Fix setuptools warning about data
bryanwweber Sep 24, 2022
590ebde
[Cython] Move units package to with_units
bryanwweber Sep 24, 2022
443ad26
[Examples] Add example keywords for units
bryanwweber Sep 24, 2022
0f43463
[CI] Run examples from installed wheel
bryanwweber Sep 26, 2022
cde23e3
[Cython] Fix a typo in an error message
bryanwweber Oct 12, 2022
2effd6d
[Test] Add branch coverage to Python
bryanwweber Oct 12, 2022
abd8b4b
[Units] Pass through kwargs in constructor
bryanwweber Oct 12, 2022
cf4c134
[Units] Refactor setter to use a loop
bryanwweber Oct 12, 2022
dfec96f
Missing a license header
bryanwweber Oct 12, 2022
db403b4
[Units/Test] Refactor test suite to use pytest
bryanwweber Oct 12, 2022
7e89b03
Refactor dimensions tests
bryanwweber Oct 17, 2022
966a249
Address review line comments
bryanwweber Oct 23, 2022
9d1b533
[Units] Add documentation
bryanwweber Oct 29, 2022
12a6cb4
[Units] Add tests that all properties are implemented
bryanwweber Oct 30, 2022
1ae4556
Fix testing and docs build failures
bryanwweber Oct 30, 2022
e6941bf
[CI] Add --pre option to sample installation step
bryanwweber Oct 31, 2022
6b554c7
[CI] Don't use PyPI index when installing Cantera
bryanwweber Nov 1, 2022
582ef72
[CI] Fix example installation
bryanwweber Nov 7, 2022
085480c
Remove some tabs
bryanwweber Mar 25, 2023
e382c2a
Apply suggestions from code review
bryanwweber Apr 22, 2023
094d5fa
Move building the units interface to a Scons extension
bryanwweber Apr 23, 2023
0f9167b
General cleanups
bryanwweber Apr 23, 2023
5396e79
Fix one problem with building the sdist
bryanwweber Apr 23, 2023
7459ec3
Address a bunch of review comments
bryanwweber Apr 23, 2023
ee8bdb6
Address comments about tests
bryanwweber Apr 23, 2023
3ba8aec
Docs and AUTHORS
bryanwweber Apr 24, 2023
644bc79
Add a bit more docs
bryanwweber Apr 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tracker.

Rounak Agarwal (@agarwalrounak)
David Akinpelu (@DavidAkinpelu), Louisiana State University
Halla Ali (@hallaali)
Emil Atz (@EmilAtz)
Jongyoon Bae (@jongyoonbae), Brown University
Philip Berndt
Expand Down
10 changes: 10 additions & 0 deletions doc/sphinx/cython/units.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Solution with Units
-------------------

.. autoclass:: Solution
:no-members:
ischoegl marked this conversation as resolved.
Show resolved Hide resolved

PureFluid Phases With Units
---------------------------
Expand All @@ -19,14 +20,23 @@ The following convenience classes are available to create `PureFluid <PureFluid>
objects with the indicated equation of state:

.. autoclass:: CarbonDioxide
:no-members:
.. autoclass:: Heptane
:no-members:
.. autoclass:: Hfc134a
:no-members:
.. autoclass:: Hydrogen
:no-members:
.. autoclass:: Methane
:no-members:
.. autoclass:: Nitrogen
:no-members:
.. autoclass:: Oxygen
:no-members:
.. autoclass:: Water
:no-members:

The full documentation for the `PureFluid <PureFluid>` class and its properties is here:

.. autoclass:: PureFluid
:no-members: