pyEQL 1.1.6__py3-none-any.whl → 1.3.0__py3-none-any.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.
- pyEQL/__init__.py +1 -1
- pyEQL/activity_correction.py +9 -9
- pyEQL/database/pyeql_db.json +20799 -21094
- pyEQL/engines.py +61 -66
- pyEQL/equilibrium.py +2 -2
- pyEQL/functions.py +12 -12
- pyEQL/presets/Ringers lactate.yaml +3 -3
- pyEQL/presets/normal saline.yaml +3 -3
- pyEQL/presets/rainwater.yaml +3 -3
- pyEQL/presets/seawater.yaml +3 -3
- pyEQL/presets/urine.yaml +3 -3
- pyEQL/presets/wastewater.yaml +3 -3
- pyEQL/py.typed +0 -0
- pyEQL/salt_ion_match.py +2 -2
- pyEQL/solution.py +199 -293
- pyEQL/utils.py +22 -9
- {pyEQL-1.1.6.dist-info → pyeql-1.3.0.dist-info}/METADATA +29 -29
- pyeql-1.3.0.dist-info/RECORD +26 -0
- {pyEQL-1.1.6.dist-info → pyeql-1.3.0.dist-info}/WHEEL +1 -1
- {pyEQL-1.1.6.dist-info → pyeql-1.3.0.dist-info/licenses}/AUTHORS.md +5 -0
- pyEQL-1.1.6.dist-info/COPYING +0 -165
- pyEQL-1.1.6.dist-info/RECORD +0 -26
- {pyEQL-1.1.6.dist-info → pyeql-1.3.0.dist-info/licenses}/LICENSE.txt +0 -0
- {pyEQL-1.1.6.dist-info → pyeql-1.3.0.dist-info}/top_level.txt +0 -0
pyEQL/__init__.py
CHANGED
|
@@ -40,7 +40,7 @@ ureg.autoconvert_offset_to_baseunit = True
|
|
|
40
40
|
# activate the "chemistry" context globally
|
|
41
41
|
ureg.enable_contexts("chemistry")
|
|
42
42
|
# set the default string formatting for pint quantities
|
|
43
|
-
ureg.default_format = "P~"
|
|
43
|
+
ureg.formatter.default_format = "P~"
|
|
44
44
|
|
|
45
45
|
# create a Store for the default database
|
|
46
46
|
json_db_file = files("pyEQL") / "database" / "pyeql_db.json"
|
pyEQL/activity_correction.py
CHANGED
|
@@ -34,7 +34,7 @@ def _debye_parameter_B(temperature: str = "25 degC") -> Quantity:
|
|
|
34
34
|
|
|
35
35
|
Returns:
|
|
36
36
|
The parameter B for use in extended Debye-Huckel equation (base e). For base 10,
|
|
37
|
-
divide the resulting value by 2.303. Note that
|
|
37
|
+
divide the resulting value by 2.303. Note that B is often given in base 10 terms
|
|
38
38
|
in older textbooks and reference material (0.3281 at 25 degC).
|
|
39
39
|
|
|
40
40
|
Notes:
|
|
@@ -137,11 +137,11 @@ def _debye_parameter_osmotic(temperature="25 degC"):
|
|
|
137
137
|
.. math:: A^{\phi} = {1 \over 3} A^{\gamma}
|
|
138
138
|
|
|
139
139
|
References:
|
|
140
|
-
.. [kim] Kim, Hee-Talk and Frederick, William Jr, 1988. "Evaluation of Pitzer Ion Interaction Parameters of
|
|
141
|
-
|
|
140
|
+
.. [kim] Kim, Hee-Talk and Frederick, William Jr, 1988. "Evaluation of Pitzer Ion Interaction Parameters of
|
|
141
|
+
Aqueous Electrolytes at 25 C. 1. Single Salt Parameters," *J. Chemical Engineering Data* 33, pp.177-184.
|
|
142
142
|
|
|
143
143
|
.. [arch] Archer, Donald G. and Wang, Peiming. "The Dielectric Constant of Water \
|
|
144
|
-
|
|
144
|
+
and Debye-Huckel Limiting Law Slopes." /J. Phys. Chem. Ref. Data/ 19(2), 1990.
|
|
145
145
|
|
|
146
146
|
Examples:
|
|
147
147
|
>>> _debye_parameter_osmotic() #doctest: +ELLIPSIS
|
|
@@ -166,7 +166,7 @@ def _debye_parameter_volume(temperature="25 degC"):
|
|
|
166
166
|
|
|
167
167
|
Notes:
|
|
168
168
|
Takes the value 1.8305 cm ** 3 * kg ** 0.5 / mol ** 1.5 at 25 C.
|
|
169
|
-
This constant is calculated according to: [
|
|
169
|
+
This constant is calculated according to: [adw90]_
|
|
170
170
|
|
|
171
171
|
.. math:: A_V = -2 A_{\phi} R T \big[ \frac{3}{\epsilon} \frac{\partial \epsilon}{\partial p} \
|
|
172
172
|
- \frac{1}{\rho}\frac{\partial \rho}{\partial p} \big]
|
|
@@ -180,13 +180,13 @@ def _debye_parameter_volume(temperature="25 degC"):
|
|
|
180
180
|
of real data, but is required to give the correct result.
|
|
181
181
|
|
|
182
182
|
The second term is equivalent to the inverse of the bulk modulus of water, which
|
|
183
|
-
is taken to be 2.2 GPa. [
|
|
183
|
+
is taken to be 2.2 GPa. [permot]_
|
|
184
184
|
|
|
185
185
|
References:
|
|
186
|
-
.. [
|
|
187
|
-
|
|
186
|
+
.. [adw90] Archer, Donald G. and Wang, Peiming. "The Dielectric Constant of Water and Debye-Huckel Limiting
|
|
187
|
+
Law Slopes." J. Phys. Chem. Ref. Data/ 19(2), 1990.
|
|
188
188
|
|
|
189
|
-
.. [
|
|
189
|
+
.. [permot] http://hyperphysics.phy-astr.gsu.edu/hbase/permot3.html
|
|
190
190
|
|
|
191
191
|
See Also:
|
|
192
192
|
:func:`_debye_parameter_osmotic`
|