yaeos 4.0.0__cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,73 @@
1
+ """Gerg2008 Equation of State"""
2
+
3
+ from yaeos.core import ArModel
4
+ from yaeos.lib import yaeos_c
5
+
6
+
7
+ class GERG2008(ArModel):
8
+ possible_components = {
9
+ "methane": 1,
10
+ "c1": 1,
11
+ "ch4": 1,
12
+ "nitrogen": 2,
13
+ "n2": 2,
14
+ "carbon dioxide": 3,
15
+ "co2": 3,
16
+ "ethane": 4,
17
+ "c2": 4,
18
+ "propane": 5,
19
+ "c3": 5,
20
+ "n-butane": 6,
21
+ "nbutane": 6,
22
+ "nc4": 6,
23
+ "isobutane": 7,
24
+ "ic4": 7,
25
+ "i-butane": 7,
26
+ "n-pentane": 8,
27
+ "npentane": 8,
28
+ "nc5": 8,
29
+ "isopentane": 9,
30
+ "ic5": 9,
31
+ "i-pentane": 9,
32
+ "n-hexane": 10,
33
+ "nhexane": 10,
34
+ "nc6": 10,
35
+ "n-heptane": 11,
36
+ "nheptane": 11,
37
+ "nc7": 11,
38
+ "n-octane": 12,
39
+ "noctane": 12,
40
+ "nc8": 12,
41
+ "nonane": 13,
42
+ "c9": 13,
43
+ "nc9": 13,
44
+ "decane": 14,
45
+ "c10": 14,
46
+ "nc10": 14,
47
+ "hydrogen": 15,
48
+ "h2": 15,
49
+ "oxygen": 16,
50
+ "o2": 16,
51
+ "carbon monoxide": 17,
52
+ "co": 17,
53
+ "water": 18,
54
+ "h2o": 18,
55
+ "hydrogen sulfide": 19,
56
+ "h2s": 19,
57
+ "helium": 20,
58
+ "he": 20,
59
+ "argon": 21,
60
+ "ar": 21,
61
+ }
62
+
63
+ def __init__(self, names):
64
+ """GERG2008 Equation of State.
65
+
66
+ Parameters
67
+ ----------
68
+ names: list, str
69
+ List of names for the components to use in the model.
70
+ """
71
+
72
+ ids = [self.possible_components[name] for name in names]
73
+ self.id = yaeos_c.multifluid_gerg2008(ids)
@@ -0,0 +1,87 @@
1
+ Metadata-Version: 2.1
2
+ Name: yaeos
3
+ Version: 4.0.0
4
+ Summary: Thermodynamic modelling with Equation of State
5
+ Requires-Python: >=3.10
6
+ Requires-Dist: IPython
7
+ Requires-Dist: numpy
8
+ Requires-Dist: scipy
9
+ Requires-Dist: pandas
10
+ Requires-Dist: intersect
11
+ Requires-Dist: matplotlib
12
+ Description-Content-Type: text/markdown
13
+
14
+ # yaeos Python bindings
15
+
16
+ The `yaeos` Python API is on and early stage of development. So the API will
17
+ change with time.
18
+
19
+ ## Supported operative systems
20
+
21
+ - Linux
22
+
23
+ ## Supported Python versions
24
+
25
+ - Python >= 3.10, < 3.13
26
+
27
+ ## Installation
28
+ To install the last version of `yaeos` Python API, you can use `pip`:
29
+
30
+ ```
31
+ pip install yaeos
32
+ ```
33
+
34
+ ### For developers, the editable installation is done by
35
+
36
+ ```
37
+ cd python
38
+ pip install -r requirements-build.txt
39
+ pip install -e . --no-build-isolation
40
+ ```
41
+
42
+ ### Building from source
43
+
44
+ To build `yaeos` from source you can clone the repository and install it with
45
+ pip. The system dependencies are:
46
+
47
+ - LAPACK
48
+ - Fortran compiler
49
+
50
+ To build and install do:
51
+
52
+ ```shell
53
+ git clone https://github.com/ipqa-research/yaeos.git
54
+ cd yaeos/python
55
+ pip install .
56
+ ```
57
+
58
+ ### Setting a Google Colab to use yaeos
59
+
60
+ To install `yaeos` on Google Colab you can do the following command to install
61
+ the last version uploaded to PyPI:
62
+
63
+ ```shell
64
+ %pip install yaeos
65
+ ```
66
+
67
+ To check if the installation worked correctly:
68
+
69
+ ```python
70
+ from yaeos import PengRobinson76
71
+
72
+ import numpy as np
73
+
74
+ model = PengRobinson76(
75
+ np.array([320, 375]),
76
+ np.array([30, 45]),
77
+ np.array([0.0123, 0.045])
78
+ )
79
+
80
+ model.lnphi_vt(np.array([5.0, 4.0]), 2.0, 303.15)
81
+ ```
82
+
83
+ You will get:
84
+
85
+ ```
86
+ array([0.47647471, 0.35338115])
87
+ ```
@@ -0,0 +1,34 @@
1
+ yaeos/__init__.py,sha256=G3Uap7ZG9LJ_nt8o1vzYNEJlwswMG5G6SunlSFMh_cc,1077
2
+ yaeos/constants.py,sha256=mvs2offne-VsaEdF7yXzSBX5GzewlTE0U7EEVZxLdNs,163
3
+ yaeos/core.py,sha256=PoLp0v-4tioO-1YS1Hbj0ydfkbUrQsU9bR7EfFDyMPM,85538
4
+ yaeos/envelopes.py,sha256=lQ6FjWz_YyOv28Mibs1YBzsxBGckx8FN2ozUrBgB5wE,19543
5
+ yaeos/gpec.py,sha256=lvUfgGUkOEvGCd_ayFMxR-O3lSh0fz6GOhJZX5o9xng,6609
6
+ yaeos/fitting/__init__.py,sha256=ljdv9e1bTMFPN_l0kEOVGU8GKLIMD2oqKFoezoTelOg,333
7
+ yaeos/fitting/core.py,sha256=PgKffjoOxs-NDM0nXYyb-k73Vg1nKA7cyKAuUemk-cU,6931
8
+ yaeos/fitting/model_setters.py,sha256=uJLfHeOiAxVMscs9qz0vJHR5tBQ2buPXhUcI1CTJSO4,1558
9
+ yaeos/fitting/solvers.py,sha256=KoL5JYm4eQP5wAAVCcPimeHvEBYSdjngwfnwUAUhSTY,1980
10
+ yaeos/lib/__init__.py,sha256=JoG2sgKPrqe_TbvRI9bYXU0U_SF-GplchencGp9nNT0,199
11
+ yaeos/lib/yaeos_python.cpython-310-x86_64-linux-gnu.so,sha256=SDE-QUZzBhJSh8aLWua-1K6VzRbpHcq8Xi_Cb_hdmDk,13668697
12
+ yaeos/models/__init__.py,sha256=FAhN9mCu0jMyKUjLSxtEYyI7dnIeTAW_Haqib_Z_uHE,853
13
+ yaeos/models/groups.py,sha256=C9Yl-gVujsvz6_ZTKWdSRYT5EX5gNTrLsHpbLjHa9Ig,1573
14
+ yaeos/models/excess_gibbs/__init__.py,sha256=IH3T-uThHJarRVB97eiAeYWVG8dWrkJF5f8AhYDyfqU,653
15
+ yaeos/models/excess_gibbs/dortmund.py,sha256=Z-8P2vHijRTYSuXyjnvBWrxjceDe5rQEA_-uNCbjKLk,1138
16
+ yaeos/models/excess_gibbs/nrtl.py,sha256=U7uLp-SLdjO-By3FSiljO5apyk4AAhbbWKK7a0kKuLg,1023
17
+ yaeos/models/excess_gibbs/psrk_unifac.py,sha256=M_cMma8Af7-GGEyAmy97bn4qOZLWVbWRY7vP1B0FqSM,1114
18
+ yaeos/models/excess_gibbs/unifac.py,sha256=KV0S6SNP6ydD6SVhJlraMpXM4d7PRBmEUVzjZd8_ASA,1103
19
+ yaeos/models/excess_gibbs/uniquac.py,sha256=0ZU58HIqCmHjQnnhThwcj4g0tc5_8tJobUiMvcvW8XQ,3309
20
+ yaeos/models/residual_helmholtz/__init__.py,sha256=IpdYRwmfyOPh7_9MhvGXXuoZML6RMFP8uQyN7vvEJzE,714
21
+ yaeos/models/residual_helmholtz/cubic_eos/__init__.py,sha256=4Jvnh9bAdwDjGFty4vcUH5BkYBQdoGQX3WHOgTR9ln4,727
22
+ yaeos/models/residual_helmholtz/cubic_eos/cubic_eos.py,sha256=yOEFydXApIHbO7CPK0oiRzO7mz4qs-cHRznmP6XzG9Q,12172
23
+ yaeos/models/residual_helmholtz/cubic_eos/mixing_rules.py,sha256=hMcBsNerBwEmtwJLrZdnh18THT7SHlVKPd4PZa6i7h0,6801
24
+ yaeos/models/residual_helmholtz/multifluid/__init__.py,sha256=0DfJK8iKX_DqUDaatEed5S4PzRF92opRKdAW4u0lKIk,127
25
+ yaeos/models/residual_helmholtz/multifluid/gerg2008.py,sha256=ZJNHpG6s8zzg-108EWskoHwn5dN0yYYXSXoki7sgsu0,1588
26
+ yaeos.libs/libblas-fe34f726.so.3.8.0,sha256=yegZKk5ZYkkH3jQeJ1hdqLi94d_7tMcoQCrJAsHBKQI,415169
27
+ yaeos.libs/libgfortran-8f1e9814.so.5.0.0,sha256=qVzErEr62Iny2DCI9Gteb6bNXv1ynbiH4eY5FH7FW3M,2714697
28
+ yaeos.libs/libgomp-870cb1d0.so.1.0.0,sha256=Ta6ZPLbakQH8LP74JzBt0DuJIBHS4nicjkSCjKnyWDw,253289
29
+ yaeos.libs/liblapack-31d7d384.so.3.8.0,sha256=Q4BcY0EzqJXXo8OyRrLhkTU8OaYzRVCo1yhH8M70yBI,7808185
30
+ yaeos.libs/libmvec-2-8eb5c230.28.so,sha256=65kXCJhVuWfybQTtrbZvv-omg-x4rUlzPkkPhbZxa7o,181969
31
+ yaeos.libs/libquadmath-828275a7.so.0.0.0,sha256=cb3C7FerL8k5NgWXlo9zIwQmscZ2QEjmKiy2yNjDof0,272193
32
+ yaeos-4.0.0.dist-info/METADATA,sha256=utlI1_BsmouGRLvVJYuMZPwUUBYUrzyAjBvhtbH6R28,1604
33
+ yaeos-4.0.0.dist-info/WHEEL,sha256=vfbP_HvvLy-INP31CTpVv4U1N18tqUka_uDspXX4qUY,138
34
+ yaeos-4.0.0.dist-info/RECORD,,
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: meson
3
+ Root-Is-Purelib: false
4
+ Tag: cp310-cp310-manylinux_2_27_x86_64
5
+ Tag: cp310-cp310-manylinux_2_28_x86_64
6
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file