partition stringclasses 3
values | func_name stringlengths 1 134 | docstring stringlengths 1 46.9k | path stringlengths 4 223 | original_string stringlengths 75 104k | code stringlengths 75 104k | docstring_tokens listlengths 1 1.97k | repo stringlengths 7 55 | language stringclasses 1
value | url stringlengths 87 315 | code_tokens listlengths 19 28.4k | sha stringlengths 40 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|
valid | ALPHA_FUNCTIONS.Soave_1984 | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Soave (1984) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Two coefficients needed.
.. math::
\alpha = c_{... | thermo/eos.py | def Soave_1984(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Soave (1984) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Two coefficients nee... | def Soave_1984(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Soave (1984) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Two coefficients nee... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Soave",
"(",
"1984",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
"."... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1062-L1086 | [
"def",
"Soave_1984",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"self",
".",
"Tc",
",",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Yu_Lu | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Yu and Lu (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Four coefficients needed.
.. math::
\alpha... | thermo/eos.py | def Yu_Lu(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Yu and Lu (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Four coefficients ne... | def Yu_Lu(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Yu and Lu (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Four coefficients ne... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Yu",
"and",
"Lu",
"(",
"1987",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1090-L1115 | [
"def",
"Yu_Lu",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
",",
"c3",
",",
"c4",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"sel... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Trebble_Bishnoi | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Trebble and Bishnoi (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. One coefficient needed.
.. math::
... | thermo/eos.py | def Trebble_Bishnoi(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Trebble and Bishnoi (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. ... | def Trebble_Bishnoi(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Trebble and Bishnoi (1987) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. ... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Trebble",
"and",
"Bishnoi",
"(",
"1987",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1118-L1141 | [
"def",
"Trebble_Bishnoi",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"self",
".",
"Tc",
",",
"self",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Androulakis | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Androulakis et al. (1989) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three coefficients needed.
.. math::
... | thermo/eos.py | def Androulakis(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Androulakis et al. (1989) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three... | def Androulakis(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Androulakis et al. (1989) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Androulakis",
"et",
"al",
".",
"(",
"1989",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1173-L1200 | [
"def",
"Androulakis",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
",",
"c3",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"self",
"."... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Schwartzentruber | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Schwartzentruber et al. (1990) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three coefficients needed.
.. math::
... | thermo/eos.py | def Schwartzentruber(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Schwartzentruber et al. (1990) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentat... | def Schwartzentruber(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Schwartzentruber et al. (1990) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentat... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Schwartzentruber",
"et",
"al",
".",
"(",
"1990",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1203-L1227 | [
"def",
"Schwartzentruber",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
",",
"c3",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"self",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Almeida | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Almeida et al. (1991) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three coefficients needed.
.. math::
... | thermo/eos.py | def Almeida(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Almeida et al. (1991) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three coeffic... | def Almeida(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Almeida et al. (1991) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Three coeffic... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Almeida",
"et",
"al",
".",
"(",
"1991",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1230-L1257 | [
"def",
"Almeida",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"# Note: For the second derivative, requires the use a CAS which can ",
"# handle the assumption that Tr-1 != 0.",
"c1",
",",
"c2",
",",
"c3",
"=",
"self",
".",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Coquelet | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Coquelet et al. (2004) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Three coefficients needed.
.. math::
... | thermo/eos.py | def Coquelet(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Coquelet et al. (2004) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Three coeffi... | def Coquelet(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Coquelet et al. (2004) [1]_. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Three coeffi... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Coquelet",
"et",
"al",
".",
"(",
"2004",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1344-L1372 | [
"def",
"Coquelet",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
",",
"c3",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
"a",
"=",
"self",
".",
"T",
",",
"self",
".",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | ALPHA_FUNCTIONS.Chen_Yang | r'''Method to calculate `a_alpha` and its first and second
derivatives according to Hamid and Yang (2017) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Seven coefficients needed.
.. math::
\al... | thermo/eos.py | def Chen_Yang(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Hamid and Yang (2017) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Seven coeffici... | def Chen_Yang(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives according to Hamid and Yang (2017) [1]_. Returns `a_alpha`,
`da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives`
for more documentation. Seven coeffici... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"according",
"to",
"Hamid",
"and",
"Yang",
"(",
"2017",
")",
"[",
"1",
"]",
"_",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1432-L1458 | [
"def",
"Chen_Yang",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"c1",
",",
"c2",
",",
"c3",
",",
"c4",
",",
"c5",
",",
"c6",
",",
"c7",
"=",
"self",
".",
"alpha_function_coeffs",
"T",
",",
"Tc",
",",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | PR.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `kappa`, and `a`.
For use in `solve_T`, returns... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1602-L1638 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"if",
"not",
"full",
":",
"return",
"self",
".",
"a",
"*",
"(",
"1",
"+",
"self",
".",
"kappa",
"*",
"(",
"1",
"-",
"(",
"T"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | PR.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the PR
EOS. Uses `Tc`, `a`, `b`, and `kappa` as well, obtained from the
class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
quick... | thermo/eos.py | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the PR
EOS. Uses `Tc`, `a`, `b`, and `kappa` as well, obtained from the
class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
... | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the PR
EOS. Uses `Tc`, `a`, `b`, and `kappa` as well, obtained from the
class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"PR",
"EOS",
".",
"Uses",
"Tc",
"a",
"b",
"and",
"kappa",
"as",
"well",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1640-L1721 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
",",
"quick",
"=",
"True",
")",
":",
"Tc",
",",
"a",
",",
"b",
",",
"kappa",
"=",
"self",
".",
"Tc",
",",
"self",
".",
"a",
",",
"self",
".",
"b",
",",
"self",
".",
"kappa",
"if",
"quick",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | PRSV.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the PRSV
EOS. Uses `Tc`, `a`, `b`, `kappa0` and `kappa` as well, obtained from
the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
... | thermo/eos.py | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the PRSV
EOS. Uses `Tc`, `a`, `b`, `kappa0` and `kappa` as well, obtained from
the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V... | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the PRSV
EOS. Uses `Tc`, `a`, `b`, `kappa0` and `kappa` as well, obtained from
the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"PRSV",
"EOS",
".",
"Uses",
"Tc",
"a",
"b",
"kappa0",
"and",
"kappa",
"as",
"well",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1931-L1973 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
",",
"quick",
"=",
"True",
")",
":",
"Tc",
",",
"a",
",",
"b",
",",
"kappa0",
",",
"kappa1",
"=",
"self",
".",
"Tc",
",",
"self",
".",
"a",
",",
"self",
".",
"b",
",",
"self",
".",
"kappa0"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | PRSV.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `kappa0`, `kappa1`, and
`a`.
For use i... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L1975-L2026 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"Tc",
",",
"a",
",",
"kappa0",
",",
"kappa1",
"=",
"self",
".",
"Tc",
",",
"self",
".",
"a",
",",
"self",
".",
"kappa0",
",",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | PRSV2.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `kappa0`, `kappa1`,
`kappa2`, `kappa3`, and `a`.
... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2172-L2229 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"Tc",
",",
"a",
",",
"kappa0",
",",
"kappa1",
",",
"kappa2",
",",
"kappa3",
"=",
"self",
".",
"Tc",
",",
"self",
".",
"a",
","... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VDW.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `a`.
.. math::
a\alpha = a
... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `a... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `a... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2313-L2332 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"if",
"not",
"full",
":",
"return",
"self",
".",
"a",
"else",
":",
"a_alpha",
"=",
"self",
".",
"a",
"da_alpha_dT",
"=",
"0.0",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VDW.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the VDW
EOS. Uses `a`, and `b`, obtained from the class's namespace.
.. math::
T = \frac{1}{R V^{2}} \left(P V^{2} \left(V - b\right)
+ V a - a b\right)
Parameters
----------
P : float
... | thermo/eos.py | def solve_T(self, P, V):
r'''Method to calculate `T` from a specified `P` and `V` for the VDW
EOS. Uses `a`, and `b`, obtained from the class's namespace.
.. math::
T = \frac{1}{R V^{2}} \left(P V^{2} \left(V - b\right)
+ V a - a b\right)
Parameters
---... | def solve_T(self, P, V):
r'''Method to calculate `T` from a specified `P` and `V` for the VDW
EOS. Uses `a`, and `b`, obtained from the class's namespace.
.. math::
T = \frac{1}{R V^{2}} \left(P V^{2} \left(V - b\right)
+ V a - a b\right)
Parameters
---... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"VDW",
"EOS",
".",
"Uses",
"a",
"and",
"b",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2334-L2354 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
")",
":",
"return",
"(",
"P",
"*",
"V",
"**",
"2",
"*",
"(",
"V",
"-",
"self",
".",
"b",
")",
"+",
"V",
"*",
"self",
".",
"a",
"-",
"self",
".",
"a",
"*",
"self",
".",
"b",
")",
"/",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VDW.main_derivatives_and_departures | Re-implementation of derivatives and excess property calculations,
as ZeroDivisionError errors occur with the general solution. The
following derivation is the source of these formulas.
>>> from sympy import *
>>> P, T, V, R, b, a = symbols('P, T, V, R, b, a')
>>> P_vd... | thermo/eos.py | def main_derivatives_and_departures(T, P, V, b, delta, epsilon, a_alpha,
da_alpha_dT, d2a_alpha_dT2, quick=True):
'''Re-implementation of derivatives and excess property calculations,
as ZeroDivisionError errors occur with the general solution. The
follo... | def main_derivatives_and_departures(T, P, V, b, delta, epsilon, a_alpha,
da_alpha_dT, d2a_alpha_dT2, quick=True):
'''Re-implementation of derivatives and excess property calculations,
as ZeroDivisionError errors occur with the general solution. The
follo... | [
"Re",
"-",
"implementation",
"of",
"derivatives",
"and",
"excess",
"property",
"calculations",
"as",
"ZeroDivisionError",
"errors",
"occur",
"with",
"the",
"general",
"solution",
".",
"The",
"following",
"derivation",
"is",
"the",
"source",
"of",
"these",
"formula... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2357-L2390 | [
"def",
"main_derivatives_and_departures",
"(",
"T",
",",
"P",
",",
"V",
",",
"b",
",",
"delta",
",",
"epsilon",
",",
"a_alpha",
",",
"da_alpha_dT",
",",
"d2a_alpha_dT2",
",",
"quick",
"=",
"True",
")",
":",
"dP_dT",
"=",
"R",
"/",
"(",
"V",
"-",
"b",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | RK.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the RK
EOS. Uses `a`, and `b`, obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
quick : bool, optional
Wh... | thermo/eos.py | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the RK
EOS. Uses `a`, and `b`, obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
... | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the RK
EOS. Uses `a`, and `b`, obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"RK",
"EOS",
".",
"Uses",
"a",
"and",
"b",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2499-L2540 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
",",
"quick",
"=",
"True",
")",
":",
"a",
",",
"b",
"=",
"self",
".",
"a",
",",
"self",
".",
"b",
"if",
"quick",
":",
"x1",
"=",
"-",
"1.j",
"*",
"1.7320508075688772",
"+",
"1.",
"x2",
"=",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | SRK.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `m`, and `a`.
.. math::
a\alpha = a ... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2630-L2654 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"a",
",",
"Tc",
",",
"m",
"=",
"self",
".",
"a",
",",
"self",
".",
"Tc",
",",
"self",
".",
"m",
"sqTr",
"=",
"(",
"T",
"/"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | SRK.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the SRK
EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
quick : bool, optional
... | thermo/eos.py | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the SRK
EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3... | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the SRK
EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"SRK",
"EOS",
".",
"Uses",
"a",
"b",
"and",
"Tc",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2656-L2722 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
",",
"quick",
"=",
"True",
")",
":",
"a",
",",
"b",
",",
"Tc",
",",
"m",
"=",
"self",
".",
"a",
",",
"self",
".",
"b",
",",
"self",
".",
"Tc",
",",
"self",
".",
"m",
"if",
"quick",
":",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | APISRK.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `a`, `S1`, and `S2`.
.. math::
a\al... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2809-L2851 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"a",
",",
"Tc",
",",
"S1",
",",
"S2",
"=",
"self",
".",
"a",
",",
"self",
".",
"Tc",
",",
"self",
".",
"S1",
",",
"self",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | APISRK.solve_T | r'''Method to calculate `T` from a specified `P` and `V` for the API
SRK EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume, [m^3/mol]
quick : bool, optional
... | thermo/eos.py | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the API
SRK EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume,... | def solve_T(self, P, V, quick=True):
r'''Method to calculate `T` from a specified `P` and `V` for the API
SRK EOS. Uses `a`, `b`, and `Tc` obtained from the class's namespace.
Parameters
----------
P : float
Pressure, [Pa]
V : float
Molar volume,... | [
"r",
"Method",
"to",
"calculate",
"T",
"from",
"a",
"specified",
"P",
"and",
"V",
"for",
"the",
"API",
"SRK",
"EOS",
".",
"Uses",
"a",
"b",
"and",
"Tc",
"obtained",
"from",
"the",
"class",
"s",
"namespace",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L2853-L2897 | [
"def",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
",",
"quick",
"=",
"True",
")",
":",
"if",
"self",
".",
"S2",
"==",
"0",
":",
"self",
".",
"m",
"=",
"self",
".",
"S1",
"return",
"SRK",
".",
"solve_T",
"(",
"self",
",",
"P",
",",
"V",
","... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | TWUSRK.a_alpha_and_derivatives | r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `Tc`, `omega`, and `a`.
Because of its similarity for ... | thermo/eos.py | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | def a_alpha_and_derivatives(self, T, full=True, quick=True):
r'''Method to calculate `a_alpha` and its first and second
derivatives for this EOS. Returns `a_alpha`, `da_alpha_dT`, and
`d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more
documentation. Uses the set values of `T... | [
"r",
"Method",
"to",
"calculate",
"a_alpha",
"and",
"its",
"first",
"and",
"second",
"derivatives",
"for",
"this",
"EOS",
".",
"Returns",
"a_alpha",
"da_alpha_dT",
"and",
"d2a_alpha_dT2",
".",
"See",
"GCEOS",
".",
"a_alpha_and_derivatives",
"for",
"more",
"docum... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L3192-L3202 | [
"def",
"a_alpha_and_derivatives",
"(",
"self",
",",
"T",
",",
"full",
"=",
"True",
",",
"quick",
"=",
"True",
")",
":",
"return",
"TWU_a_alpha_common",
"(",
"T",
",",
"self",
".",
"Tc",
",",
"self",
".",
"omega",
",",
"self",
".",
"a",
",",
"full",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Tb | r'''This function handles the retrieval of a chemical's boiling
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
Prefered sources are 'CRC Physical Constants, organic' for organic
chemicals, and 'CR... | thermo/phase_change.py | def Tb(CASRN, AvailableMethods=False, Method=None, IgnoreMethods=[PSAT_DEFINITION]):
r'''This function handles the retrieval of a chemical's boiling
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
... | def Tb(CASRN, AvailableMethods=False, Method=None, IgnoreMethods=[PSAT_DEFINITION]):
r'''This function handles the retrieval of a chemical's boiling
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
... | [
"r",
"This",
"function",
"handles",
"the",
"retrieval",
"of",
"a",
"chemical",
"s",
"boiling",
"point",
".",
"Lookup",
"is",
"based",
"on",
"CASRNs",
".",
"Will",
"automatically",
"select",
"a",
"data",
"source",
"to",
"use",
"if",
"no",
"Method",
"is",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L89-L188 | [
"def",
"Tb",
"(",
"CASRN",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
",",
"IgnoreMethods",
"=",
"[",
"PSAT_DEFINITION",
"]",
")",
":",
"def",
"list_methods",
"(",
")",
":",
"methods",
"=",
"[",
"]",
"if",
"CASRN",
"in",
"CRC_in... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Tm | r'''This function handles the retrieval of a chemical's melting
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
Prefered sources are 'Open Notebook Melting Points', with backup sources
'CRC Physica... | thermo/phase_change.py | def Tm(CASRN, AvailableMethods=False, Method=None, IgnoreMethods=[]):
r'''This function handles the retrieval of a chemical's melting
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
Prefered source... | def Tm(CASRN, AvailableMethods=False, Method=None, IgnoreMethods=[]):
r'''This function handles the retrieval of a chemical's melting
point. Lookup is based on CASRNs. Will automatically select a data
source to use if no Method is provided; returns None if the data is not
available.
Prefered source... | [
"r",
"This",
"function",
"handles",
"the",
"retrieval",
"of",
"a",
"chemical",
"s",
"melting",
"point",
".",
"Lookup",
"is",
"based",
"on",
"CASRNs",
".",
"Will",
"automatically",
"select",
"a",
"data",
"source",
"to",
"use",
"if",
"no",
"Method",
"is",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L199-L289 | [
"def",
"Tm",
"(",
"CASRN",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
",",
"IgnoreMethods",
"=",
"[",
"]",
")",
":",
"def",
"list_methods",
"(",
")",
":",
"methods",
"=",
"[",
"]",
"if",
"CASRN",
"in",
"Tm_ON_data",
".",
"inde... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Clapeyron | r'''Calculates enthalpy of vaporization at arbitrary temperatures using the
Clapeyron equation.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT \Delta Z \frac{\ln (P_c/Psat)}{(1-T_{r})}
Parameters
----------
T : float
Temperature of fluid [K]
Tc : f... | thermo/phase_change.py | def Clapeyron(T, Tc, Pc, dZ=1, Psat=101325):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using the
Clapeyron equation.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT \Delta Z \frac{\ln (P_c/Psat)}{(1-T_{r})}
Parameters
----------
T : ... | def Clapeyron(T, Tc, Pc, dZ=1, Psat=101325):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using the
Clapeyron equation.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT \Delta Z \frac{\ln (P_c/Psat)}{(1-T_{r})}
Parameters
----------
T : ... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"arbitrary",
"temperatures",
"using",
"the",
"Clapeyron",
"equation",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L294-L345 | [
"def",
"Clapeyron",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"dZ",
"=",
"1",
",",
"Psat",
"=",
"101325",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"return",
"R",
"*",
"T",
"*",
"dZ",
"*",
"log",
"(",
"Pc",
"/",
"Psat",
")",
"/",
"(",
"1.",
"-",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Pitzer | r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
fit by [2]_ to the work of Pitzer [1]_; requires a chemical's critical
temperature and acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta_{vap} H}{RT_c}=7.08(1-T_r)^{0.354}+10.95\omega(1-T_... | thermo/phase_change.py | def Pitzer(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
fit by [2]_ to the work of Pitzer [1]_; requires a chemical's critical
temperature and acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta_{vap} H}{RT_c}=7.08(1... | def Pitzer(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
fit by [2]_ to the work of Pitzer [1]_; requires a chemical's critical
temperature and acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta_{vap} H}{RT_c}=7.08(1... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"arbitrary",
"temperatures",
"using",
"a",
"fit",
"by",
"[",
"2",
"]",
"_",
"to",
"the",
"work",
"of",
"Pitzer",
"[",
"1",
"]",
"_",
";",
"requires",
"a",
"chemical",
"s",
"critical",
"temperatur... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L348-L403 | [
"def",
"Pitzer",
"(",
"T",
",",
"Tc",
",",
"omega",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"return",
"R",
"*",
"Tc",
"*",
"(",
"7.08",
"*",
"(",
"1.",
"-",
"Tr",
")",
"**",
"0.354",
"+",
"10.95",
"*",
"omega",
"*",
"(",
"1.",
"-",
"Tr",
")"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | SMK | r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta H_{vap}} {RT_c} =
\left( \frac{\Delta H_{vap}} {RT_c} \right)^{... | thermo/phase_change.py | def SMK(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta H_{vap}} {RT_c} =
\left( \frac{\Delt... | def SMK(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\frac{\Delta H_{vap}} {RT_c} =
\left( \frac{\Delt... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"arbitrary",
"temperatures",
"using",
"a",
"the",
"work",
"of",
"[",
"1",
"]",
"_",
";",
"requires",
"a",
"chemical",
"s",
"critical",
"temperature",
"and",
"acentric",
"factor",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L406-L497 | [
"def",
"SMK",
"(",
"T",
",",
"Tc",
",",
"omega",
")",
":",
"omegaR1",
",",
"omegaR2",
"=",
"0.212",
",",
"0.461",
"A10",
"=",
"6.536924",
"A20",
"=",
"-",
"2.466698",
"A30",
"=",
"-",
"77.52141",
"B10",
"=",
"59.63435",
"B20",
"=",
"36.09887",
"B30... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | MK | r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = \Delta H_{vap}^{(0)} + \omega \Delta H_{vap}^{(1)} + \omega^2 \Delta... | thermo/phase_change.py | def MK(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = \Delta H_{vap}^{(0)} + \omega \Delta H_{va... | def MK(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = \Delta H_{vap}^{(0)} + \omega \Delta H_{va... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"arbitrary",
"temperatures",
"using",
"a",
"the",
"work",
"of",
"[",
"1",
"]",
"_",
";",
"requires",
"a",
"chemical",
"s",
"critical",
"temperature",
"and",
"acentric",
"factor",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L500-L570 | [
"def",
"MK",
"(",
"T",
",",
"Tc",
",",
"omega",
")",
":",
"bs",
"=",
"[",
"[",
"5.2804",
",",
"0.080022",
",",
"7.2543",
"]",
",",
"[",
"12.8650",
",",
"273.23",
",",
"-",
"346.45",
"]",
",",
"[",
"1.1710",
",",
"465.08",
",",
"-",
"610.48",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Velasco | r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta_{vap} H = RT_c(7.2729 + 10.4962\omega + 0.6061\omega^2)(1-T_r)^{0.38}
Para... | thermo/phase_change.py | def Velasco(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta_{vap} H = RT_c(7.2729 + 10.4962\omega + 0.6061\o... | def Velasco(T, Tc, omega):
r'''Calculates enthalpy of vaporization at arbitrary temperatures using a
the work of [1]_; requires a chemical's critical temperature and
acentric factor.
The enthalpy of vaporization is given by:
.. math::
\Delta_{vap} H = RT_c(7.2729 + 10.4962\omega + 0.6061\o... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"arbitrary",
"temperatures",
"using",
"a",
"the",
"work",
"of",
"[",
"1",
"]",
"_",
";",
"requires",
"a",
"chemical",
"s",
"critical",
"temperature",
"and",
"acentric",
"factor",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L573-L619 | [
"def",
"Velasco",
"(",
"T",
",",
"Tc",
",",
"omega",
")",
":",
"return",
"(",
"7.2729",
"+",
"10.4962",
"*",
"omega",
"+",
"0.6061",
"*",
"omega",
"**",
"2",
")",
"*",
"(",
"1",
"-",
"T",
"/",
"Tc",
")",
"**",
"0.38",
"*",
"R",
"*",
"Tc"
] | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Riedel | r'''Calculates enthalpy of vaporization at the boiling point, using the
Ridel [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_ and [3]_.
The enthalpy of vaporization is given by:
.. math::
\Delta_{vap} H=1.093 T_b R\frac{\... | thermo/phase_change.py | def Riedel(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization at the boiling point, using the
Ridel [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_ and [3]_.
The enthalpy of vaporization is given by:
.. math::
\Delt... | def Riedel(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization at the boiling point, using the
Ridel [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_ and [3]_.
The enthalpy of vaporization is given by:
.. math::
\Delt... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"the",
"boiling",
"point",
"using",
"the",
"Ridel",
"[",
"1",
"]",
"_",
"CSP",
"method",
".",
"Required",
"information",
"are",
"critical",
"temperature",
"and",
"pressure",
"and",
"boiling",
"point",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L624-L679 | [
"def",
"Riedel",
"(",
"Tb",
",",
"Tc",
",",
"Pc",
")",
":",
"Pc",
"=",
"Pc",
"/",
"1E5",
"# Pa to bar",
"Tbr",
"=",
"Tb",
"/",
"Tc",
"return",
"1.093",
"*",
"Tb",
"*",
"R",
"*",
"(",
"log",
"(",
"Pc",
")",
"-",
"1.013",
")",
"/",
"(",
"0.93... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Chen | r'''Calculates enthalpy of vaporization using the Chen [1]_ correlation
and a chemical's critical temperature, pressure and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vb} = RT_b \frac{3.978 T_r - 3.958 + 1.555 \ln P_c}{1.07 - T_r}
Parameters
----------
... | thermo/phase_change.py | def Chen(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization using the Chen [1]_ correlation
and a chemical's critical temperature, pressure and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vb} = RT_b \frac{3.978 T_r - 3.958 + 1.555 \ln P_c}{1.07 - T_r}
Pa... | def Chen(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization using the Chen [1]_ correlation
and a chemical's critical temperature, pressure and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vb} = RT_b \frac{3.978 T_r - 3.958 + 1.555 \ln P_c}{1.07 - T_r}
Pa... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"using",
"the",
"Chen",
"[",
"1",
"]",
"_",
"correlation",
"and",
"a",
"chemical",
"s",
"critical",
"temperature",
"pressure",
"and",
"boiling",
"point",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L682-L732 | [
"def",
"Chen",
"(",
"Tb",
",",
"Tc",
",",
"Pc",
")",
":",
"Tbr",
"=",
"Tb",
"/",
"Tc",
"Pc",
"=",
"Pc",
"/",
"1E5",
"# Pa to bar",
"return",
"R",
"*",
"Tb",
"*",
"(",
"3.978",
"*",
"Tbr",
"-",
"3.958",
"+",
"1.555",
"*",
"log",
"(",
"Pc",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Liu | r'''Calculates enthalpy of vaporization at the normal boiling point using
the Liu [1]_ correlation, and a chemical's critical temperature, pressure
and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT_b \left[ \frac{T_b}{220}\right]^{0.0627} \frac{
... | thermo/phase_change.py | def Liu(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization at the normal boiling point using
the Liu [1]_ correlation, and a chemical's critical temperature, pressure
and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT_b \left[ \frac{T_b}{220}\right... | def Liu(Tb, Tc, Pc):
r'''Calculates enthalpy of vaporization at the normal boiling point using
the Liu [1]_ correlation, and a chemical's critical temperature, pressure
and boiling point.
The enthalpy of vaporization is given by:
.. math::
\Delta H_{vap} = RT_b \left[ \frac{T_b}{220}\right... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"the",
"normal",
"boiling",
"point",
"using",
"the",
"Liu",
"[",
"1",
"]",
"_",
"correlation",
"and",
"a",
"chemical",
"s",
"critical",
"temperature",
"pressure",
"and",
"boiling",
"point",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L735-L788 | [
"def",
"Liu",
"(",
"Tb",
",",
"Tc",
",",
"Pc",
")",
":",
"Tbr",
"=",
"Tb",
"/",
"Tc",
"return",
"R",
"*",
"Tb",
"*",
"(",
"Tb",
"/",
"220.",
")",
"**",
"0.0627",
"*",
"(",
"1.",
"-",
"Tbr",
")",
"**",
"0.38",
"*",
"log",
"(",
"Pc",
"/",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Vetere | r'''Calculates enthalpy of vaporization at the boiling point, using the
Vetere [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_.
The enthalpy of vaporization is given by:
.. math::
\frac {\Delta H_{vap}}{RT_b} = \frac{\tau... | thermo/phase_change.py | def Vetere(Tb, Tc, Pc, F=1):
r'''Calculates enthalpy of vaporization at the boiling point, using the
Vetere [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_.
The enthalpy of vaporization is given by:
.. math::
\frac {\... | def Vetere(Tb, Tc, Pc, F=1):
r'''Calculates enthalpy of vaporization at the boiling point, using the
Vetere [1]_ CSP method. Required information are critical temperature
and pressure, and boiling point. Equation taken from [2]_.
The enthalpy of vaporization is given by:
.. math::
\frac {\... | [
"r",
"Calculates",
"enthalpy",
"of",
"vaporization",
"at",
"the",
"boiling",
"point",
"using",
"the",
"Vetere",
"[",
"1",
"]",
"_",
"CSP",
"method",
".",
"Required",
"information",
"are",
"critical",
"temperature",
"and",
"pressure",
"and",
"boiling",
"point",... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L791-L846 | [
"def",
"Vetere",
"(",
"Tb",
",",
"Tc",
",",
"Pc",
",",
"F",
"=",
"1",
")",
":",
"Tbr",
"=",
"Tb",
"/",
"Tc",
"taub",
"=",
"1",
"-",
"Tb",
"/",
"Tc",
"Pc",
"=",
"Pc",
"/",
"1E5",
"term",
"=",
"taub",
"**",
"0.38",
"*",
"(",
"log",
"(",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Watson | Adjusts enthalpy of vaporization of enthalpy for another temperature, for one temperature. | thermo/phase_change.py | def Watson(T, Hvap_ref, T_Ref, Tc, exponent=0.38):
'''
Adjusts enthalpy of vaporization of enthalpy for another temperature, for one temperature.
'''
Tr = T/Tc
Trefr = T_Ref/Tc
H2 = Hvap_ref*((1-Tr)/(1-Trefr))**exponent
return H2 | def Watson(T, Hvap_ref, T_Ref, Tc, exponent=0.38):
'''
Adjusts enthalpy of vaporization of enthalpy for another temperature, for one temperature.
'''
Tr = T/Tc
Trefr = T_Ref/Tc
H2 = Hvap_ref*((1-Tr)/(1-Trefr))**exponent
return H2 | [
"Adjusts",
"enthalpy",
"of",
"vaporization",
"of",
"enthalpy",
"for",
"another",
"temperature",
"for",
"one",
"temperature",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L854-L861 | [
"def",
"Watson",
"(",
"T",
",",
"Hvap_ref",
",",
"T_Ref",
",",
"Tc",
",",
"exponent",
"=",
"0.38",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"Trefr",
"=",
"T_Ref",
"/",
"Tc",
"H2",
"=",
"Hvap_ref",
"*",
"(",
"(",
"1",
"-",
"Tr",
")",
"/",
"(",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Hfus | This function handles the calculation of a chemical's enthalpy of fusion.
Generally this, is used by the chemical class, as all parameters are passed.
Calling the function directly works okay.
Enthalpy of fusion is a weak function of pressure, and its effects are
neglected.
This API is considered ... | thermo/phase_change.py | def Hfus(T=298.15, P=101325, MW=None, AvailableMethods=False, Method=None, CASRN=''): # pragma: no cover
'''This function handles the calculation of a chemical's enthalpy of fusion.
Generally this, is used by the chemical class, as all parameters are passed.
Calling the function directly works okay.
E... | def Hfus(T=298.15, P=101325, MW=None, AvailableMethods=False, Method=None, CASRN=''): # pragma: no cover
'''This function handles the calculation of a chemical's enthalpy of fusion.
Generally this, is used by the chemical class, as all parameters are passed.
Calling the function directly works okay.
E... | [
"This",
"function",
"handles",
"the",
"calculation",
"of",
"a",
"chemical",
"s",
"enthalpy",
"of",
"fusion",
".",
"Generally",
"this",
"is",
"used",
"by",
"the",
"chemical",
"class",
"as",
"all",
"parameters",
"are",
"passed",
".",
"Calling",
"the",
"functio... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L1312-L1342 | [
"def",
"Hfus",
"(",
"T",
"=",
"298.15",
",",
"P",
"=",
"101325",
",",
"MW",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
",",
"CASRN",
"=",
"''",
")",
":",
"# pragma: no cover",
"def",
"list_methods",
"(",
")",
":",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Hsub | This function handles the calculation of a chemical's enthalpy of sublimation.
Generally this, is used by the chemical class, as all parameters are passed.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more complete object-oriented interface. | thermo/phase_change.py | def Hsub(T=298.15, P=101325, MW=None, AvailableMethods=False, Method=None, CASRN=''): # pragma: no cover
'''This function handles the calculation of a chemical's enthalpy of sublimation.
Generally this, is used by the chemical class, as all parameters are passed.
This API is considered experimental, and ... | def Hsub(T=298.15, P=101325, MW=None, AvailableMethods=False, Method=None, CASRN=''): # pragma: no cover
'''This function handles the calculation of a chemical's enthalpy of sublimation.
Generally this, is used by the chemical class, as all parameters are passed.
This API is considered experimental, and ... | [
"This",
"function",
"handles",
"the",
"calculation",
"of",
"a",
"chemical",
"s",
"enthalpy",
"of",
"sublimation",
".",
"Generally",
"this",
"is",
"used",
"by",
"the",
"chemical",
"class",
"as",
"all",
"parameters",
"are",
"passed",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L1350-L1385 | [
"def",
"Hsub",
"(",
"T",
"=",
"298.15",
",",
"P",
"=",
"101325",
",",
"MW",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
",",
"CASRN",
"=",
"''",
")",
":",
"# pragma: no cover",
"def",
"list_methods",
"(",
")",
":",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Tliquidus | This function handles the retrival of a mixtures's liquidus point.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more complete object-oriented interface.
>>> Tliquidus(Tms=[250.0, 350.0], xs=[0.5, 0.5])
350.0
>>> Tliquidus(Tms=[250, 350], xs=[... | thermo/phase_change.py | def Tliquidus(Tms=None, ws=None, xs=None, CASRNs=None, AvailableMethods=False,
Method=None): # pragma: no cover
'''This function handles the retrival of a mixtures's liquidus point.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more comp... | def Tliquidus(Tms=None, ws=None, xs=None, CASRNs=None, AvailableMethods=False,
Method=None): # pragma: no cover
'''This function handles the retrival of a mixtures's liquidus point.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more comp... | [
"This",
"function",
"handles",
"the",
"retrival",
"of",
"a",
"mixtures",
"s",
"liquidus",
"point",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L1392-L1426 | [
"def",
"Tliquidus",
"(",
"Tms",
"=",
"None",
",",
"ws",
"=",
"None",
",",
"xs",
"=",
"None",
",",
"CASRNs",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
")",
":",
"# pragma: no cover",
"def",
"list_methods",
"(",
")",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | EnthalpyVaporization.load_all_methods | r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which the data exists for.
Called ... | thermo/phase_change.py | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which t... | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which t... | [
"r",
"Method",
"which",
"picks",
"out",
"coefficients",
"for",
"the",
"specified",
"chemical",
"from",
"the",
"various",
"dictionaries",
"and",
"DataFrames",
"storing",
"it",
".",
"All",
"data",
"is",
"stored",
"as",
"attributes",
".",
"This",
"method",
"also"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L1094-L1155 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods",
"=",
"[",
"]",
"Tmins",
",",
"Tmaxs",
"=",
"[",
"]",
",",
"[",
"]",
"if",
"has_CoolProp",
"and",
"self",
".",
"CASRN",
"in",
"coolprop_dict",
":",
"methods",
".",
"append",
"(",
"COOLPROP",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | EnthalpyVaporization.calculate | r'''Method to calculate heat of vaporization of a liquid at
temperature `T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature at which to calculate heat of vaporizatio... | thermo/phase_change.py | def calculate(self, T, method):
r'''Method to calculate heat of vaporization of a liquid at
temperature `T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature a... | def calculate(self, T, method):
r'''Method to calculate heat of vaporization of a liquid at
temperature `T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature a... | [
"r",
"Method",
"to",
"calculate",
"heat",
"of",
"vaporization",
"of",
"a",
"liquid",
"at",
"temperature",
"T",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/phase_change.py#L1157-L1233 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"method",
")",
":",
"if",
"method",
"==",
"COOLPROP",
":",
"Hvap",
"=",
"PropsSI",
"(",
"'HMOLAR'",
",",
"'T'",
",",
"T",
",",
"'Q'",
",",
"1",
",",
"self",
".",
"CASRN",
")",
"-",
"PropsSI",
"(",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | solubility_parameter | r'''This function handles the calculation of a chemical's solubility
parameter. Calculation is a function of temperature, but is not always
presented as such. No lookup values are available; either `Hvapm`, `Vml`,
and `T` are provided or the calculation cannot be performed.
.. math::
\delta = \... | thermo/solubility.py | def solubility_parameter(T=298.15, Hvapm=None, Vml=None,
CASRN='', AvailableMethods=False, Method=None):
r'''This function handles the calculation of a chemical's solubility
parameter. Calculation is a function of temperature, but is not always
presented as such. No lookup values ar... | def solubility_parameter(T=298.15, Hvapm=None, Vml=None,
CASRN='', AvailableMethods=False, Method=None):
r'''This function handles the calculation of a chemical's solubility
parameter. Calculation is a function of temperature, but is not always
presented as such. No lookup values ar... | [
"r",
"This",
"function",
"handles",
"the",
"calculation",
"of",
"a",
"chemical",
"s",
"solubility",
"parameter",
".",
"Calculation",
"is",
"a",
"function",
"of",
"temperature",
"but",
"is",
"not",
"always",
"presented",
"as",
"such",
".",
"No",
"lookup",
"va... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/solubility.py#L72-L156 | [
"def",
"solubility_parameter",
"(",
"T",
"=",
"298.15",
",",
"Hvapm",
"=",
"None",
",",
"Vml",
"=",
"None",
",",
"CASRN",
"=",
"''",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
")",
":",
"def",
"list_methods",
"(",
")",
":",
"m... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | solubility_eutectic | r'''Returns the maximum solubility of a solute in a solvent.
.. math::
\ln x_i^L \gamma_i^L = \frac{\Delta H_{m,i}}{RT}\left(
1 - \frac{T}{T_{m,i}}\right) - \frac{\Delta C_{p,i}(T_{m,i}-T)}{RT}
+ \frac{\Delta C_{p,i}}{R}\ln\frac{T_m}{T}
\Delta C_{p,i} = C_{p,i}^L - C_{p,i}^S
P... | thermo/solubility.py | def solubility_eutectic(T, Tm, Hm, Cpl=0, Cps=0, gamma=1):
r'''Returns the maximum solubility of a solute in a solvent.
.. math::
\ln x_i^L \gamma_i^L = \frac{\Delta H_{m,i}}{RT}\left(
1 - \frac{T}{T_{m,i}}\right) - \frac{\Delta C_{p,i}(T_{m,i}-T)}{RT}
+ \frac{\Delta C_{p,i}}{R}\ln\frac... | def solubility_eutectic(T, Tm, Hm, Cpl=0, Cps=0, gamma=1):
r'''Returns the maximum solubility of a solute in a solvent.
.. math::
\ln x_i^L \gamma_i^L = \frac{\Delta H_{m,i}}{RT}\left(
1 - \frac{T}{T_{m,i}}\right) - \frac{\Delta C_{p,i}(T_{m,i}-T)}{RT}
+ \frac{\Delta C_{p,i}}{R}\ln\frac... | [
"r",
"Returns",
"the",
"maximum",
"solubility",
"of",
"a",
"solute",
"in",
"a",
"solvent",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/solubility.py#L159-L207 | [
"def",
"solubility_eutectic",
"(",
"T",
",",
"Tm",
",",
"Hm",
",",
"Cpl",
"=",
"0",
",",
"Cps",
"=",
"0",
",",
"gamma",
"=",
"1",
")",
":",
"dCp",
"=",
"Cpl",
"-",
"Cps",
"x",
"=",
"exp",
"(",
"-",
"Hm",
"/",
"R",
"/",
"T",
"*",
"(",
"1",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Tm_depression_eutectic | r'''Returns the freezing point depression caused by a solute in a solvent.
Can use either the mole fraction of the solute or its molality and the
molecular weight of the solvent. Assumes ideal system behavior.
.. math::
\Delta T_m = \frac{R T_m^2 x}{\Delta H_m}
\Delta T_m = \frac{R T_m^2 (... | thermo/solubility.py | def Tm_depression_eutectic(Tm, Hm, x=None, M=None, MW=None):
r'''Returns the freezing point depression caused by a solute in a solvent.
Can use either the mole fraction of the solute or its molality and the
molecular weight of the solvent. Assumes ideal system behavior.
.. math::
\Delta T_m = \... | def Tm_depression_eutectic(Tm, Hm, x=None, M=None, MW=None):
r'''Returns the freezing point depression caused by a solute in a solvent.
Can use either the mole fraction of the solute or its molality and the
molecular weight of the solvent. Assumes ideal system behavior.
.. math::
\Delta T_m = \... | [
"r",
"Returns",
"the",
"freezing",
"point",
"depression",
"caused",
"by",
"a",
"solute",
"in",
"a",
"solvent",
".",
"Can",
"use",
"either",
"the",
"mole",
"fraction",
"of",
"the",
"solute",
"or",
"its",
"molality",
"and",
"the",
"molecular",
"weight",
"of"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/solubility.py#L229-L280 | [
"def",
"Tm_depression_eutectic",
"(",
"Tm",
",",
"Hm",
",",
"x",
"=",
"None",
",",
"M",
"=",
"None",
",",
"MW",
"=",
"None",
")",
":",
"if",
"x",
":",
"dTm",
"=",
"R",
"*",
"Tm",
"**",
"2",
"*",
"x",
"/",
"Hm",
"elif",
"M",
"and",
"MW",
":"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Yen_Woods_saturation | r'''Calculates saturation liquid volume, using the Yen and Woods [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
Vc/Vs = 1 + A(1-T_r)^{1/3} + B(1-T_r)^{2/3} + D(1-T_r)^{4/3}
D = 0.93-B
A = 17.4425 - 214.578Z_c + 989.625Z_c... | thermo/volume.py | def Yen_Woods_saturation(T, Tc, Vc, Zc):
r'''Calculates saturation liquid volume, using the Yen and Woods [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
Vc/Vs = 1 + A(1-T_r)^{1/3} + B(1-T_r)^{2/3} + D(1-T_r)^{4/3}
D = 0.93-B
... | def Yen_Woods_saturation(T, Tc, Vc, Zc):
r'''Calculates saturation liquid volume, using the Yen and Woods [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
Vc/Vs = 1 + A(1-T_r)^{1/3} + B(1-T_r)^{2/3} + D(1-T_r)^{4/3}
D = 0.93-B
... | [
"r",
"Calculates",
"saturation",
"liquid",
"volume",
"using",
"the",
"Yen",
"and",
"Woods",
"[",
"1",
"]",
"_",
"CSP",
"method",
"and",
"a",
"chemical",
"s",
"critical",
"properties",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L87-L150 | [
"def",
"Yen_Woods_saturation",
"(",
"T",
",",
"Tc",
",",
"Vc",
",",
"Zc",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"A",
"=",
"17.4425",
"-",
"214.578",
"*",
"Zc",
"+",
"989.625",
"*",
"Zc",
"**",
"2",
"-",
"1522.06",
"*",
"Zc",
"**",
"3",
"if",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Rackett | r'''Calculates saturation liquid volume, using Rackett CSP method and
critical properties.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{Z_c}^{[1+(1-{T/T_c})^{2/7} ]}
Units are all currently in m^3/mol - this can be changed to kg/m^3
Parameters
----------... | thermo/volume.py | def Rackett(T, Tc, Pc, Zc):
r'''Calculates saturation liquid volume, using Rackett CSP method and
critical properties.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{Z_c}^{[1+(1-{T/T_c})^{2/7} ]}
Units are all currently in m^3/mol - this can be changed to kg/m^... | def Rackett(T, Tc, Pc, Zc):
r'''Calculates saturation liquid volume, using Rackett CSP method and
critical properties.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{Z_c}^{[1+(1-{T/T_c})^{2/7} ]}
Units are all currently in m^3/mol - this can be changed to kg/m^... | [
"r",
"Calculates",
"saturation",
"liquid",
"volume",
"using",
"Rackett",
"CSP",
"method",
"and",
"critical",
"properties",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L153-L198 | [
"def",
"Rackett",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"Zc",
")",
":",
"return",
"R",
"*",
"Tc",
"/",
"Pc",
"*",
"Zc",
"**",
"(",
"1",
"+",
"(",
"1",
"-",
"T",
"/",
"Tc",
")",
"**",
"(",
"2",
"/",
"7.",
")",
")"
] | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Yamada_Gunn | r'''Calculates saturation liquid volume, using Yamada and Gunn CSP method
and a chemical's critical properties and acentric factor.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{(0.29056-0.08775\omega)}^{[1+(1-{T/T_c})^{2/7}]}
Units are in m^3/mol.
Parameters... | thermo/volume.py | def Yamada_Gunn(T, Tc, Pc, omega):
r'''Calculates saturation liquid volume, using Yamada and Gunn CSP method
and a chemical's critical properties and acentric factor.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{(0.29056-0.08775\omega)}^{[1+(1-{T/T_c})^{2/7}]}
... | def Yamada_Gunn(T, Tc, Pc, omega):
r'''Calculates saturation liquid volume, using Yamada and Gunn CSP method
and a chemical's critical properties and acentric factor.
The molar volume of a liquid is given by:
.. math::
V_s = \frac{RT_c}{P_c}{(0.29056-0.08775\omega)}^{[1+(1-{T/T_c})^{2/7}]}
... | [
"r",
"Calculates",
"saturation",
"liquid",
"volume",
"using",
"Yamada",
"and",
"Gunn",
"CSP",
"method",
"and",
"a",
"chemical",
"s",
"critical",
"properties",
"and",
"acentric",
"factor",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L201-L249 | [
"def",
"Yamada_Gunn",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"omega",
")",
":",
"return",
"R",
"*",
"Tc",
"/",
"Pc",
"*",
"(",
"0.29056",
"-",
"0.08775",
"*",
"omega",
")",
"**",
"(",
"1",
"+",
"(",
"1",
"-",
"T",
"/",
"Tc",
")",
"**",
"(",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Townsend_Hales | r'''Calculates saturation liquid density, using the Townsend and Hales
CSP method as modified from the original Riedel equation. Uses
chemical critical volume and temperature, as well as acentric factor
The density of a liquid is given by:
.. math::
Vs = V_c/\left(1+0.85(1-T_r)+(1.692+0.986\om... | thermo/volume.py | def Townsend_Hales(T, Tc, Vc, omega):
r'''Calculates saturation liquid density, using the Townsend and Hales
CSP method as modified from the original Riedel equation. Uses
chemical critical volume and temperature, as well as acentric factor
The density of a liquid is given by:
.. math::
Vs... | def Townsend_Hales(T, Tc, Vc, omega):
r'''Calculates saturation liquid density, using the Townsend and Hales
CSP method as modified from the original Riedel equation. Uses
chemical critical volume and temperature, as well as acentric factor
The density of a liquid is given by:
.. math::
Vs... | [
"r",
"Calculates",
"saturation",
"liquid",
"density",
"using",
"the",
"Townsend",
"and",
"Hales",
"CSP",
"method",
"as",
"modified",
"from",
"the",
"original",
"Riedel",
"equation",
".",
"Uses",
"chemical",
"critical",
"volume",
"and",
"temperature",
"as",
"well... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L252-L294 | [
"def",
"Townsend_Hales",
"(",
"T",
",",
"Tc",
",",
"Vc",
",",
"omega",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"return",
"Vc",
"/",
"(",
"1",
"+",
"0.85",
"*",
"(",
"1",
"-",
"Tr",
")",
"+",
"(",
"1.692",
"+",
"0.986",
"*",
"omega",
")",
"*",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Bhirud_normal | r'''Calculates saturation liquid density using the Bhirud [1]_ CSP method.
Uses Critical temperature and pressure and acentric factor.
The density of a liquid is given by:
.. math::
&\ln \frac{P_c}{\rho RT} = \ln U^{(0)} + \omega\ln U^{(1)}
&\ln U^{(0)} = 1.396 44 - 24.076T_r+ 102.615T_r^... | thermo/volume.py | def Bhirud_normal(T, Tc, Pc, omega):
r'''Calculates saturation liquid density using the Bhirud [1]_ CSP method.
Uses Critical temperature and pressure and acentric factor.
The density of a liquid is given by:
.. math::
&\ln \frac{P_c}{\rho RT} = \ln U^{(0)} + \omega\ln U^{(1)}
&\ln U^... | def Bhirud_normal(T, Tc, Pc, omega):
r'''Calculates saturation liquid density using the Bhirud [1]_ CSP method.
Uses Critical temperature and pressure and acentric factor.
The density of a liquid is given by:
.. math::
&\ln \frac{P_c}{\rho RT} = \ln U^{(0)} + \omega\ln U^{(1)}
&\ln U^... | [
"r",
"Calculates",
"saturation",
"liquid",
"density",
"using",
"the",
"Bhirud",
"[",
"1",
"]",
"_",
"CSP",
"method",
".",
"Uses",
"Critical",
"temperature",
"and",
"pressure",
"and",
"acentric",
"factor",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L307-L372 | [
"def",
"Bhirud_normal",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"omega",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"if",
"Tr",
"<=",
"0.98",
":",
"lnU0",
"=",
"1.39644",
"-",
"24.076",
"*",
"Tr",
"+",
"102.615",
"*",
"Tr",
"**",
"2",
"-",
"255.719",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | COSTALD | r'''Calculate saturation liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The density of a liquid is given by:
.. math::
V_s=V^*V^{(0)}[1-\omega_{SRK}V^{(\delta)}]
... | thermo/volume.py | def COSTALD(T, Tc, Vc, omega):
r'''Calculate saturation liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The density of a liquid is given by:
.. math::
V_s=V^*V^{(0)}[1... | def COSTALD(T, Tc, Vc, omega):
r'''Calculate saturation liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The density of a liquid is given by:
.. math::
V_s=V^*V^{(0)}[1... | [
"r",
"Calculate",
"saturation",
"liquid",
"density",
"using",
"the",
"COSTALD",
"CSP",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L375-L438 | [
"def",
"COSTALD",
"(",
"T",
",",
"Tc",
",",
"Vc",
",",
"omega",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"V_delta",
"=",
"(",
"-",
"0.296123",
"+",
"0.386914",
"*",
"Tr",
"-",
"0.0427258",
"*",
"Tr",
"**",
"2",
"-",
"0.0480645",
"*",
"Tr",
"**",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Campbell_Thodos | r'''Calculate saturation liquid density using the Campbell-Thodos [1]_
CSP method.
An old and uncommon estimation method.
.. math::
V_s = \frac{RT_c}{P_c}{Z_{RA}}^{[1+(1-T_r)^{2/7}]}
Z_{RA} = \alpha + \beta(1-T_r)
\alpha = 0.3883-0.0179s
s = T_{br} \frac{\ln P_c}{(1-T_{b... | thermo/volume.py | def Campbell_Thodos(T, Tb, Tc, Pc, M, dipole=None, hydroxyl=False):
r'''Calculate saturation liquid density using the Campbell-Thodos [1]_
CSP method.
An old and uncommon estimation method.
.. math::
V_s = \frac{RT_c}{P_c}{Z_{RA}}^{[1+(1-T_r)^{2/7}]}
Z_{RA} = \alpha + \beta(1-T_r)
... | def Campbell_Thodos(T, Tb, Tc, Pc, M, dipole=None, hydroxyl=False):
r'''Calculate saturation liquid density using the Campbell-Thodos [1]_
CSP method.
An old and uncommon estimation method.
.. math::
V_s = \frac{RT_c}{P_c}{Z_{RA}}^{[1+(1-T_r)^{2/7}]}
Z_{RA} = \alpha + \beta(1-T_r)
... | [
"r",
"Calculate",
"saturation",
"liquid",
"density",
"using",
"the",
"Campbell",
"-",
"Thodos",
"[",
"1",
"]",
"_",
"CSP",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L441-L536 | [
"def",
"Campbell_Thodos",
"(",
"T",
",",
"Tb",
",",
"Tc",
",",
"Pc",
",",
"M",
",",
"dipole",
"=",
"None",
",",
"hydroxyl",
"=",
"False",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"Tbr",
"=",
"Tb",
"/",
"Tc",
"Pc",
"=",
"Pc",
"/",
"101325.",
"s",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | SNM0 | r'''Calculates saturated liquid density using the Mchaweh, Moshfeghian
model [1]_. Designed for simple calculations.
.. math::
V_s = V_c/(1+1.169\tau^{1/3}+1.818\tau^{2/3}-2.658\tau+2.161\tau^{4/3}
\tau = 1-\frac{(T/T_c)}{\alpha_{SRK}}
\alpha_{SRK} = [1 + m(1-\sqrt{T/T_C}]^2
... | thermo/volume.py | def SNM0(T, Tc, Vc, omega, delta_SRK=None):
r'''Calculates saturated liquid density using the Mchaweh, Moshfeghian
model [1]_. Designed for simple calculations.
.. math::
V_s = V_c/(1+1.169\tau^{1/3}+1.818\tau^{2/3}-2.658\tau+2.161\tau^{4/3}
\tau = 1-\frac{(T/T_c)}{\alpha_{SRK}}
\... | def SNM0(T, Tc, Vc, omega, delta_SRK=None):
r'''Calculates saturated liquid density using the Mchaweh, Moshfeghian
model [1]_. Designed for simple calculations.
.. math::
V_s = V_c/(1+1.169\tau^{1/3}+1.818\tau^{2/3}-2.658\tau+2.161\tau^{4/3}
\tau = 1-\frac{(T/T_c)}{\alpha_{SRK}}
\... | [
"r",
"Calculates",
"saturated",
"liquid",
"density",
"using",
"the",
"Mchaweh",
"Moshfeghian",
"model",
"[",
"1",
"]",
"_",
".",
"Designed",
"for",
"simple",
"calculations",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L539-L608 | [
"def",
"SNM0",
"(",
"T",
",",
"Tc",
",",
"Vc",
",",
"omega",
",",
"delta_SRK",
"=",
"None",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"m",
"=",
"0.480",
"+",
"1.574",
"*",
"omega",
"-",
"0.176",
"*",
"omega",
"*",
"omega",
"alpha_SRK",
"=",
"(",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | COSTALD_compressed | r'''Calculates compressed-liquid volume, using the COSTALD [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
V = V_s\left( 1 - C \ln \frac{B + P}{B + P^{sat}}\right)
\frac{B}{P_c} = -1 + a\tau^{1/3} + b\tau^{2/3} + d\tau + e\tau^{4/3... | thermo/volume.py | def COSTALD_compressed(T, P, Psat, Tc, Pc, omega, Vs):
r'''Calculates compressed-liquid volume, using the COSTALD [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
V = V_s\left( 1 - C \ln \frac{B + P}{B + P^{sat}}\right)
\frac{B}... | def COSTALD_compressed(T, P, Psat, Tc, Pc, omega, Vs):
r'''Calculates compressed-liquid volume, using the COSTALD [1]_ CSP
method and a chemical's critical properties.
The molar volume of a liquid is given by:
.. math::
V = V_s\left( 1 - C \ln \frac{B + P}{B + P^{sat}}\right)
\frac{B}... | [
"r",
"Calculates",
"compressed",
"-",
"liquid",
"volume",
"using",
"the",
"COSTALD",
"[",
"1",
"]",
"_",
"CSP",
"method",
"and",
"a",
"chemical",
"s",
"critical",
"properties",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1226-L1295 | [
"def",
"COSTALD_compressed",
"(",
"T",
",",
"P",
",",
"Psat",
",",
"Tc",
",",
"Pc",
",",
"omega",
",",
"Vs",
")",
":",
"a",
"=",
"-",
"9.070217",
"b",
"=",
"62.45326",
"d",
"=",
"-",
"135.1102",
"f",
"=",
"4.79594",
"g",
"=",
"0.250047",
"h",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Amgat | r'''Calculate mixture liquid density using the Amgat mixing rule.
Highly inacurate, but easy to use. Assumes idea liquids with
no excess volume. Average molecular weight should be used with it to obtain
density.
.. math::
V_{mix} = \sum_i x_i V_i
or in terms of density:
.. math::
... | thermo/volume.py | def Amgat(xs, Vms):
r'''Calculate mixture liquid density using the Amgat mixing rule.
Highly inacurate, but easy to use. Assumes idea liquids with
no excess volume. Average molecular weight should be used with it to obtain
density.
.. math::
V_{mix} = \sum_i x_i V_i
or in terms of dens... | def Amgat(xs, Vms):
r'''Calculate mixture liquid density using the Amgat mixing rule.
Highly inacurate, but easy to use. Assumes idea liquids with
no excess volume. Average molecular weight should be used with it to obtain
density.
.. math::
V_{mix} = \sum_i x_i V_i
or in terms of dens... | [
"r",
"Calculate",
"mixture",
"liquid",
"density",
"using",
"the",
"Amgat",
"mixing",
"rule",
".",
"Highly",
"inacurate",
"but",
"easy",
"to",
"use",
".",
"Assumes",
"idea",
"liquids",
"with",
"no",
"excess",
"volume",
".",
"Average",
"molecular",
"weight",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1300-L1340 | [
"def",
"Amgat",
"(",
"xs",
",",
"Vms",
")",
":",
"if",
"not",
"none_and_length_check",
"(",
"[",
"xs",
",",
"Vms",
"]",
")",
":",
"raise",
"Exception",
"(",
"'Function inputs are incorrect format'",
")",
"return",
"mixing_simple",
"(",
"xs",
",",
"Vms",
")... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Rackett_mixture | r'''Calculate mixture liquid density using the Rackett-derived mixing rule
as shown in [2]_.
.. math::
V_m = \sum_i\frac{x_i T_{ci}}{MW_i P_{ci}} Z_{R,m}^{(1 + (1 - T_r)^{2/7})} R \sum_i x_i MW_i
Parameters
----------
T : float
Temperature of liquid [K]
xs: list
Mole fr... | thermo/volume.py | def Rackett_mixture(T, xs, MWs, Tcs, Pcs, Zrs):
r'''Calculate mixture liquid density using the Rackett-derived mixing rule
as shown in [2]_.
.. math::
V_m = \sum_i\frac{x_i T_{ci}}{MW_i P_{ci}} Z_{R,m}^{(1 + (1 - T_r)^{2/7})} R \sum_i x_i MW_i
Parameters
----------
T : float
Te... | def Rackett_mixture(T, xs, MWs, Tcs, Pcs, Zrs):
r'''Calculate mixture liquid density using the Rackett-derived mixing rule
as shown in [2]_.
.. math::
V_m = \sum_i\frac{x_i T_{ci}}{MW_i P_{ci}} Z_{R,m}^{(1 + (1 - T_r)^{2/7})} R \sum_i x_i MW_i
Parameters
----------
T : float
Te... | [
"r",
"Calculate",
"mixture",
"liquid",
"density",
"using",
"the",
"Rackett",
"-",
"derived",
"mixing",
"rule",
"as",
"shown",
"in",
"[",
"2",
"]",
"_",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1343-L1405 | [
"def",
"Rackett_mixture",
"(",
"T",
",",
"xs",
",",
"MWs",
",",
"Tcs",
",",
"Pcs",
",",
"Zrs",
")",
":",
"if",
"not",
"none_and_length_check",
"(",
"[",
"xs",
",",
"MWs",
",",
"Tcs",
",",
"Pcs",
",",
"Zrs",
"]",
")",
":",
"raise",
"Exception",
"(... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | COSTALD_mixture | r'''Calculate mixture liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The mixing rules giving parameters for the pure component COSTALD
equation are:
.. math::
T_{cm} ... | thermo/volume.py | def COSTALD_mixture(xs, T, Tcs, Vcs, omegas):
r'''Calculate mixture liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The mixing rules giving parameters for the pure component COSTAL... | def COSTALD_mixture(xs, T, Tcs, Vcs, omegas):
r'''Calculate mixture liquid density using the COSTALD CSP method.
A popular and accurate estimation method. If possible, fit parameters are
used; alternatively critical properties work well.
The mixing rules giving parameters for the pure component COSTAL... | [
"r",
"Calculate",
"mixture",
"liquid",
"density",
"using",
"the",
"COSTALD",
"CSP",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1408-L1473 | [
"def",
"COSTALD_mixture",
"(",
"xs",
",",
"T",
",",
"Tcs",
",",
"Vcs",
",",
"omegas",
")",
":",
"cmps",
"=",
"range",
"(",
"len",
"(",
"xs",
")",
")",
"if",
"not",
"none_and_length_check",
"(",
"[",
"xs",
",",
"Tcs",
",",
"Vcs",
",",
"omegas",
"]... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeLiquid.load_all_methods | r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
:obj:`all_methods` and obj:`all_methods_P` as a set of methods for
which the data ... | thermo/volume.py | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
:obj:`all_methods` and obj:`all_methods_P` as a set of... | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
:obj:`all_methods` and obj:`all_methods_P` as a set of... | [
"r",
"Method",
"which",
"picks",
"out",
"coefficients",
"for",
"the",
"specified",
"chemical",
"from",
"the",
"various",
"dictionaries",
"and",
"DataFrames",
"storing",
"it",
".",
"All",
"data",
"is",
"stored",
"as",
"attributes",
".",
"This",
"method",
"also"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L937-L1023 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods",
"=",
"[",
"]",
"methods_P",
"=",
"[",
"]",
"Tmins",
",",
"Tmaxs",
"=",
"[",
"]",
",",
"[",
"]",
"if",
"has_CoolProp",
"and",
"self",
".",
"CASRN",
"in",
"coolprop_dict",
":",
"methods",
"."... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeLiquid.calculate | r'''Method to calculate low-pressure liquid molar volume at tempearture
`T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature at which to calculate molar volume, [K]
... | thermo/volume.py | def calculate(self, T, method):
r'''Method to calculate low-pressure liquid molar volume at tempearture
`T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature a... | def calculate(self, T, method):
r'''Method to calculate low-pressure liquid molar volume at tempearture
`T` with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature a... | [
"r",
"Method",
"to",
"calculate",
"low",
"-",
"pressure",
"liquid",
"molar",
"volume",
"at",
"tempearture",
"T",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1025-L1083 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"method",
")",
":",
"if",
"method",
"==",
"RACKETT",
":",
"Vm",
"=",
"Rackett",
"(",
"T",
",",
"self",
".",
"Tc",
",",
"self",
".",
"Pc",
",",
"self",
".",
"Zc",
")",
"elif",
"method",
"==",
"YAMA... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeLiquid.calculate_P | r'''Method to calculate pressure-dependent liquid molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : float
Temperature at which to calcu... | thermo/volume.py | def calculate_P(self, T, P, method):
r'''Method to calculate pressure-dependent liquid molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : fl... | def calculate_P(self, T, P, method):
r'''Method to calculate pressure-dependent liquid molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : fl... | [
"r",
"Method",
"to",
"calculate",
"pressure",
"-",
"dependent",
"liquid",
"molar",
"volume",
"at",
"temperature",
"T",
"and",
"pressure",
"P",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1085-L1117 | [
"def",
"calculate_P",
"(",
"self",
",",
"T",
",",
"P",
",",
"method",
")",
":",
"if",
"method",
"==",
"COSTALD_COMPRESSED",
":",
"Vm",
"=",
"self",
".",
"T_dependent_property",
"(",
"T",
")",
"Psat",
"=",
"self",
".",
"Psat",
"(",
"T",
")",
"if",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeLiquidMixture.load_all_methods | r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of methods which should
work to c... | thermo/volume.py | def load_all_methods(self):
r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of met... | def load_all_methods(self):
r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of met... | [
"r",
"Method",
"to",
"initialize",
"the",
"object",
"by",
"precomputing",
"any",
"values",
"which",
"may",
"be",
"used",
"repeatedly",
"and",
"by",
"retrieving",
"mixture",
"-",
"specific",
"variables",
".",
"All",
"data",
"are",
"stored",
"as",
"attributes",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1587-L1622 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods",
"=",
"[",
"SIMPLE",
"]",
"if",
"none_and_length_check",
"(",
"[",
"self",
".",
"Tcs",
",",
"self",
".",
"Vcs",
",",
"self",
".",
"omegas",
",",
"self",
".",
"CASs",
"]",
")",
":",
"methods"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeLiquidMixture.calculate | r'''Method to calculate molar volume of a liquid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
Parameters
----------
T : float... | thermo/volume.py | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a liquid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a liquid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | [
"r",
"Method",
"to",
"calculate",
"molar",
"volume",
"of",
"a",
"liquid",
"mixture",
"at",
"temperature",
"T",
"pressure",
"P",
"mole",
"fractions",
"zs",
"and",
"weight",
"fractions",
"ws",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1624-L1668 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"P",
",",
"zs",
",",
"ws",
",",
"method",
")",
":",
"if",
"method",
"==",
"SIMPLE",
":",
"Vms",
"=",
"[",
"i",
"(",
"T",
",",
"P",
")",
"for",
"i",
"in",
"self",
".",
"VolumeLiquids",
"]",
"retu... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeGas.load_all_methods | r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets obj:`all_methods_P` as a
set of methods for which the data exists for.
Called on initialization only. See t... | thermo/volume.py | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets obj:`all_methods_P` as a
set of methods for which the data exists for.
... | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets obj:`all_methods_P` as a
set of methods for which the data exists for.
... | [
"r",
"Method",
"which",
"picks",
"out",
"coefficients",
"for",
"the",
"specified",
"chemical",
"from",
"the",
"various",
"dictionaries",
"and",
"DataFrames",
"storing",
"it",
".",
"All",
"data",
"is",
"stored",
"as",
"attributes",
".",
"This",
"method",
"also"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1909-L1933 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods_P",
"=",
"[",
"IDEAL",
"]",
"# no point in getting Tmin, Tmax",
"if",
"all",
"(",
"(",
"self",
".",
"Tc",
",",
"self",
".",
"Pc",
",",
"self",
".",
"omega",
")",
")",
":",
"methods_P",
".",
"ex... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeGas.calculate_P | r'''Method to calculate pressure-dependent gas molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : float
Temperature at which to calculat... | thermo/volume.py | def calculate_P(self, T, P, method):
r'''Method to calculate pressure-dependent gas molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : float... | def calculate_P(self, T, P, method):
r'''Method to calculate pressure-dependent gas molar volume at
temperature `T` and pressure `P` with a given method.
This method has no exception handling; see `TP_dependent_property`
for that.
Parameters
----------
T : float... | [
"r",
"Method",
"to",
"calculate",
"pressure",
"-",
"dependent",
"gas",
"molar",
"volume",
"at",
"temperature",
"T",
"and",
"pressure",
"P",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L1935-L1982 | [
"def",
"calculate_P",
"(",
"self",
",",
"T",
",",
"P",
",",
"method",
")",
":",
"if",
"method",
"==",
"EOS",
":",
"self",
".",
"eos",
"[",
"0",
"]",
"=",
"self",
".",
"eos",
"[",
"0",
"]",
".",
"to_TP",
"(",
"T",
"=",
"T",
",",
"P",
"=",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeGasMixture.load_all_methods | r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of methods which should
work to c... | thermo/volume.py | def load_all_methods(self):
r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of met... | def load_all_methods(self):
r'''Method to initialize the object by precomputing any values which
may be used repeatedly and by retrieving mixture-specific variables.
All data are stored as attributes. This method also sets :obj:`Tmin`,
:obj:`Tmax`, and :obj:`all_methods` as a set of met... | [
"r",
"Method",
"to",
"initialize",
"the",
"object",
"by",
"precomputing",
"any",
"values",
"which",
"may",
"be",
"used",
"repeatedly",
"and",
"by",
"retrieving",
"mixture",
"-",
"specific",
"variables",
".",
"All",
"data",
"are",
"stored",
"as",
"attributes",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L2130-L2145 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods",
"=",
"[",
"SIMPLE",
",",
"IDEAL",
"]",
"if",
"self",
".",
"eos",
":",
"methods",
".",
"append",
"(",
"EOS",
")",
"self",
".",
"all_methods",
"=",
"set",
"(",
"methods",
")"
] | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeGasMixture.calculate | r'''Method to calculate molar volume of a gas mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
Parameters
----------
T : float
... | thermo/volume.py | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a gas mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a gas mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | [
"r",
"Method",
"to",
"calculate",
"molar",
"volume",
"of",
"a",
"gas",
"mixture",
"at",
"temperature",
"T",
"pressure",
"P",
"mole",
"fractions",
"zs",
"and",
"weight",
"fractions",
"ws",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L2147-L2182 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"P",
",",
"zs",
",",
"ws",
",",
"method",
")",
":",
"if",
"method",
"==",
"SIMPLE",
":",
"Vms",
"=",
"[",
"i",
"(",
"T",
",",
"P",
")",
"for",
"i",
"in",
"self",
".",
"VolumeGases",
"]",
"return... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeSolid.load_all_methods | r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which the data exists for.
Called ... | thermo/volume.py | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which t... | def load_all_methods(self):
r'''Method which picks out coefficients for the specified chemical
from the various dictionaries and DataFrames storing it. All data is
stored as attributes. This method also sets :obj:`Tmin`, :obj:`Tmax`,
and :obj:`all_methods` as a set of methods for which t... | [
"r",
"Method",
"which",
"picks",
"out",
"coefficients",
"for",
"the",
"specified",
"chemical",
"from",
"the",
"various",
"dictionaries",
"and",
"DataFrames",
"storing",
"it",
".",
"All",
"data",
"is",
"stored",
"as",
"attributes",
".",
"This",
"method",
"also"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L2360-L2378 | [
"def",
"load_all_methods",
"(",
"self",
")",
":",
"methods",
"=",
"[",
"]",
"if",
"self",
".",
"CASRN",
"in",
"CRC_inorg_s_const_data",
".",
"index",
":",
"methods",
".",
"append",
"(",
"CRC_INORG_S",
")",
"self",
".",
"CRC_INORG_S_Vm",
"=",
"float",
"(",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeSolid.calculate | r'''Method to calculate the molar volume of a solid at tempearture `T`
with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature at which to calculate molar volume, [K]
... | thermo/volume.py | def calculate(self, T, method):
r'''Method to calculate the molar volume of a solid at tempearture `T`
with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature at whi... | def calculate(self, T, method):
r'''Method to calculate the molar volume of a solid at tempearture `T`
with a given method.
This method has no exception handling; see `T_dependent_property`
for that.
Parameters
----------
T : float
Temperature at whi... | [
"r",
"Method",
"to",
"calculate",
"the",
"molar",
"volume",
"of",
"a",
"solid",
"at",
"tempearture",
"T",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L2380-L2405 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"method",
")",
":",
"if",
"method",
"==",
"CRC_INORG_S",
":",
"Vms",
"=",
"self",
".",
"CRC_INORG_S_Vm",
"# elif method == GOODMAN:",
"# Vms = Goodman(T, self.Tt, self.rhol_Tt)",
"elif",
"method",
"in",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | VolumeSolidMixture.calculate | r'''Method to calculate molar volume of a solid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
Parameters
----------
T : float
... | thermo/volume.py | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a solid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | def calculate(self, T, P, zs, ws, method):
r'''Method to calculate molar volume of a solid mixture at
temperature `T`, pressure `P`, mole fractions `zs` and weight fractions
`ws` with a given method.
This method has no exception handling; see `mixture_property`
for that.
... | [
"r",
"Method",
"to",
"calculate",
"molar",
"volume",
"of",
"a",
"solid",
"mixture",
"at",
"temperature",
"T",
"pressure",
"P",
"mole",
"fractions",
"zs",
"and",
"weight",
"fractions",
"ws",
"with",
"a",
"given",
"method",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/volume.py#L2521-L2552 | [
"def",
"calculate",
"(",
"self",
",",
"T",
",",
"P",
",",
"zs",
",",
"ws",
",",
"method",
")",
":",
"if",
"method",
"==",
"SIMPLE",
":",
"Vms",
"=",
"[",
"i",
"(",
"T",
",",
"P",
")",
"for",
"i",
"in",
"self",
".",
"VolumeSolids",
"]",
"retur... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | IdealPPThermodynamic.enthalpy_Cpg_Hvap | r'''Method to calculate the enthalpy of an ideal mixture (no pressure
effects). This routine is based on "route A", where only the gas heat
capacity and enthalpy of vaporization are used.
The reference temperature is a property of the class; it defaults to
298.15 K.
... | thermo/property_package.py | def enthalpy_Cpg_Hvap(self):
r'''Method to calculate the enthalpy of an ideal mixture (no pressure
effects). This routine is based on "route A", where only the gas heat
capacity and enthalpy of vaporization are used.
The reference temperature is a property of the class; it defau... | def enthalpy_Cpg_Hvap(self):
r'''Method to calculate the enthalpy of an ideal mixture (no pressure
effects). This routine is based on "route A", where only the gas heat
capacity and enthalpy of vaporization are used.
The reference temperature is a property of the class; it defau... | [
"r",
"Method",
"to",
"calculate",
"the",
"enthalpy",
"of",
"an",
"ideal",
"mixture",
"(",
"no",
"pressure",
"effects",
")",
".",
"This",
"routine",
"is",
"based",
"on",
"route",
"A",
"where",
"only",
"the",
"gas",
"heat",
"capacity",
"and",
"enthalpy",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/property_package.py#L439-L496 | [
"def",
"enthalpy_Cpg_Hvap",
"(",
"self",
")",
":",
"H",
"=",
"0",
"T",
"=",
"self",
".",
"T",
"if",
"self",
".",
"phase",
"==",
"'g'",
":",
"for",
"i",
"in",
"self",
".",
"cmps",
":",
"H",
"+=",
"self",
".",
"zs",
"[",
"i",
"]",
"*",
"self",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | IdealPPThermodynamic.entropy_Cpg_Hvap | r'''Method to calculate the entropy of an ideal mixture. This routine
is based on "route A", where only the gas heat capacity and enthalpy of
vaporization are used.
The reference temperature and pressure are properties of the class; it
defaults to 298.15 K and 101325 Pa.
... | thermo/property_package.py | def entropy_Cpg_Hvap(self):
r'''Method to calculate the entropy of an ideal mixture. This routine
is based on "route A", where only the gas heat capacity and enthalpy of
vaporization are used.
The reference temperature and pressure are properties of the class; it
defau... | def entropy_Cpg_Hvap(self):
r'''Method to calculate the entropy of an ideal mixture. This routine
is based on "route A", where only the gas heat capacity and enthalpy of
vaporization are used.
The reference temperature and pressure are properties of the class; it
defau... | [
"r",
"Method",
"to",
"calculate",
"the",
"entropy",
"of",
"an",
"ideal",
"mixture",
".",
"This",
"routine",
"is",
"based",
"on",
"route",
"A",
"where",
"only",
"the",
"gas",
"heat",
"capacity",
"and",
"enthalpy",
"of",
"vaporization",
"are",
"used",
".",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/property_package.py#L533-L635 | [
"def",
"entropy_Cpg_Hvap",
"(",
"self",
")",
":",
"S",
"=",
"0",
"T",
"=",
"self",
".",
"T",
"P",
"=",
"self",
".",
"P",
"S",
"-=",
"R",
"*",
"sum",
"(",
"[",
"zi",
"*",
"log",
"(",
"zi",
")",
"for",
"zi",
"in",
"self",
".",
"zs",
"if",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | legal_status | r'''Looks up the legal status of a chemical according to either a specifc
method or with all methods.
Returns either the status as a string for a specified method, or the
status of the chemical in all available data sources, in the format
{source: status}.
Parameters
----------
CASRN : str... | thermo/law.py | def legal_status(CASRN, Method=None, AvailableMethods=False, CASi=None):
r'''Looks up the legal status of a chemical according to either a specifc
method or with all methods.
Returns either the status as a string for a specified method, or the
status of the chemical in all available data sources, in th... | def legal_status(CASRN, Method=None, AvailableMethods=False, CASi=None):
r'''Looks up the legal status of a chemical according to either a specifc
method or with all methods.
Returns either the status as a string for a specified method, or the
status of the chemical in all available data sources, in th... | [
"r",
"Looks",
"up",
"the",
"legal",
"status",
"of",
"a",
"chemical",
"according",
"to",
"either",
"a",
"specifc",
"method",
"or",
"with",
"all",
"methods",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/law.py#L107-L245 | [
"def",
"legal_status",
"(",
"CASRN",
",",
"Method",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
",",
"CASi",
"=",
"None",
")",
":",
"load_law_data",
"(",
")",
"if",
"not",
"CASi",
":",
"CASi",
"=",
"CAS2int",
"(",
"CASRN",
")",
"methods",
"=",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | load_economic_data | OECD are chemicals produced by and OECD members in > 1000 tonnes/year. | thermo/law.py | def load_economic_data():
global HPV_data
if HPV_data is not None:
return None
global _EPACDRDict, _ECHATonnageDict
'''OECD are chemicals produced by and OECD members in > 1000 tonnes/year.'''
HPV_data = pd.read_csv(os.path.join(folder, 'HPV 2015 March 3.csv'),
... | def load_economic_data():
global HPV_data
if HPV_data is not None:
return None
global _EPACDRDict, _ECHATonnageDict
'''OECD are chemicals produced by and OECD members in > 1000 tonnes/year.'''
HPV_data = pd.read_csv(os.path.join(folder, 'HPV 2015 March 3.csv'),
... | [
"OECD",
"are",
"chemicals",
"produced",
"by",
"and",
"OECD",
"members",
"in",
">",
"1000",
"tonnes",
"/",
"year",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/law.py#L262-L300 | [
"def",
"load_economic_data",
"(",
")",
":",
"global",
"HPV_data",
"if",
"HPV_data",
"is",
"not",
"None",
":",
"return",
"None",
"global",
"_EPACDRDict",
",",
"_ECHATonnageDict",
"HPV_data",
"=",
"pd",
".",
"read_csv",
"(",
"os",
".",
"path",
".",
"join",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | economic_status | Look up the economic status of a chemical.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more complete object-oriented interface.
>>> pprint(economic_status(CASRN='98-00-0'))
["US public: {'Manufactured': 0.0, 'Imported': 10272.711, 'Exported': 18... | thermo/law.py | def economic_status(CASRN, Method=None, AvailableMethods=False): # pragma: no cover
'''Look up the economic status of a chemical.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more complete object-oriented interface.
>>> pprint(economic_status(CA... | def economic_status(CASRN, Method=None, AvailableMethods=False): # pragma: no cover
'''Look up the economic status of a chemical.
This API is considered experimental, and is expected to be removed in a
future release in favor of a more complete object-oriented interface.
>>> pprint(economic_status(CA... | [
"Look",
"up",
"the",
"economic",
"status",
"of",
"a",
"chemical",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/law.py#L310-L365 | [
"def",
"economic_status",
"(",
"CASRN",
",",
"Method",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
")",
":",
"# pragma: no cover",
"load_economic_data",
"(",
")",
"CASi",
"=",
"CAS2int",
"(",
"CASRN",
")",
"def",
"list_methods",
"(",
")",
":",
"metho... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | BVirial_Pitzer_Curl | r'''Calculates the second virial coefficient using the model in [1]_.
Designed for simple calculations.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.1445-0.33/T_r-0.1385/T_r^2-0.0121/T_r^3
B^{(1)} = 0.073+0.46/T_r-0.5/T_r^2 -0.097/T_r^3 - 0.0073/T_r^8
Parameters
----------
... | thermo/virial.py | def BVirial_Pitzer_Curl(T, Tc, Pc, omega, order=0):
r'''Calculates the second virial coefficient using the model in [1]_.
Designed for simple calculations.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.1445-0.33/T_r-0.1385/T_r^2-0.0121/T_r^3
B^{(1)} = 0.073+0.46/T_r-0.5/T_r^2 -0.... | def BVirial_Pitzer_Curl(T, Tc, Pc, omega, order=0):
r'''Calculates the second virial coefficient using the model in [1]_.
Designed for simple calculations.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.1445-0.33/T_r-0.1385/T_r^2-0.0121/T_r^3
B^{(1)} = 0.073+0.46/T_r-0.5/T_r^2 -0.... | [
"r",
"Calculates",
"the",
"second",
"virial",
"coefficient",
"using",
"the",
"model",
"in",
"[",
"1",
"]",
"_",
".",
"Designed",
"for",
"simple",
"calculations",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/virial.py#L36-L146 | [
"def",
"BVirial_Pitzer_Curl",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"omega",
",",
"order",
"=",
"0",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"if",
"order",
"==",
"0",
":",
"B0",
"=",
"0.1445",
"-",
"0.33",
"/",
"Tr",
"-",
"0.1385",
"/",
"Tr",
"**... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | BVirial_Abbott | r'''Calculates the second virial coefficient using the model in [1]_.
Simple fit to the Lee-Kesler equation.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.083+\frac{0.422}{T_r^{1.6}}
B^{(1)}=0.139-\frac{0.172}{T_r^{4.2}}
Parameters
----------
T : float
Temperatur... | thermo/virial.py | def BVirial_Abbott(T, Tc, Pc, omega, order=0):
r'''Calculates the second virial coefficient using the model in [1]_.
Simple fit to the Lee-Kesler equation.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.083+\frac{0.422}{T_r^{1.6}}
B^{(1)}=0.139-\frac{0.172}{T_r^{4.2}}
Paramet... | def BVirial_Abbott(T, Tc, Pc, omega, order=0):
r'''Calculates the second virial coefficient using the model in [1]_.
Simple fit to the Lee-Kesler equation.
.. math::
B_r=B^{(0)}+\omega B^{(1)}
B^{(0)}=0.083+\frac{0.422}{T_r^{1.6}}
B^{(1)}=0.139-\frac{0.172}{T_r^{4.2}}
Paramet... | [
"r",
"Calculates",
"the",
"second",
"virial",
"coefficient",
"using",
"the",
"model",
"in",
"[",
"1",
"]",
"_",
".",
"Simple",
"fit",
"to",
"the",
"Lee",
"-",
"Kesler",
"equation",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/virial.py#L149-L257 | [
"def",
"BVirial_Abbott",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"omega",
",",
"order",
"=",
"0",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
"if",
"order",
"==",
"0",
":",
"B0",
"=",
"0.083",
"-",
"0.422",
"/",
"Tr",
"**",
"1.6",
"B1",
"=",
"0.139",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | BVirial_Tsonopoulos_extended | r'''Calculates the second virial coefficient using the
comprehensive model in [1]_. See the notes for the calculation of `a` and
`b`.
.. math::
\frac{BP_c}{RT_c} = B^{(0)} + \omega B^{(1)} + a B^{(2)} + b B^{(3)}
B^{(0)}=0.1445-0.33/T_r-0.1385/T_r^2-0.0121/T_r^3
B^{(1)} = 0.06... | thermo/virial.py | def BVirial_Tsonopoulos_extended(T, Tc, Pc, omega, a=0, b=0, species_type='',
dipole=0, order=0):
r'''Calculates the second virial coefficient using the
comprehensive model in [1]_. See the notes for the calculation of `a` and
`b`.
.. math::
\frac{BP_c}{RT_c} =... | def BVirial_Tsonopoulos_extended(T, Tc, Pc, omega, a=0, b=0, species_type='',
dipole=0, order=0):
r'''Calculates the second virial coefficient using the
comprehensive model in [1]_. See the notes for the calculation of `a` and
`b`.
.. math::
\frac{BP_c}{RT_c} =... | [
"r",
"Calculates",
"the",
"second",
"virial",
"coefficient",
"using",
"the",
"comprehensive",
"model",
"in",
"[",
"1",
"]",
"_",
".",
"See",
"the",
"notes",
"for",
"the",
"calculation",
"of",
"a",
"and",
"b",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/virial.py#L374-L611 | [
"def",
"BVirial_Tsonopoulos_extended",
"(",
"T",
",",
"Tc",
",",
"Pc",
",",
"omega",
",",
"a",
"=",
"0",
",",
"b",
"=",
"0",
",",
"species_type",
"=",
"''",
",",
"dipole",
"=",
"0",
",",
"order",
"=",
"0",
")",
":",
"Tr",
"=",
"T",
"/",
"Tc",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | smarts_fragment | r'''Fragments a molecule into a set of unique groups and counts as
specified by the `catalog`. The molecule can either be an rdkit
molecule object, or a smiles string which will be parsed by rdkit.
Returns a dictionary of groups and their counts according to the
indexes of the catalog provided.
... | thermo/joback.py | def smarts_fragment(catalog, rdkitmol=None, smi=None):
r'''Fragments a molecule into a set of unique groups and counts as
specified by the `catalog`. The molecule can either be an rdkit
molecule object, or a smiles string which will be parsed by rdkit.
Returns a dictionary of groups and their counts ac... | def smarts_fragment(catalog, rdkitmol=None, smi=None):
r'''Fragments a molecule into a set of unique groups and counts as
specified by the `catalog`. The molecule can either be an rdkit
molecule object, or a smiles string which will be parsed by rdkit.
Returns a dictionary of groups and their counts ac... | [
"r",
"Fragments",
"a",
"molecule",
"into",
"a",
"set",
"of",
"unique",
"groups",
"and",
"counts",
"as",
"specified",
"by",
"the",
"catalog",
".",
"The",
"molecule",
"can",
"either",
"be",
"an",
"rdkit",
"molecule",
"object",
"or",
"a",
"smiles",
"string",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L187-L281 | [
"def",
"smarts_fragment",
"(",
"catalog",
",",
"rdkitmol",
"=",
"None",
",",
"smi",
"=",
"None",
")",
":",
"if",
"not",
"hasRDKit",
":",
"# pragma: no cover",
"raise",
"Exception",
"(",
"rdkit_missing",
")",
"if",
"rdkitmol",
"is",
"None",
"and",
"smi",
"i... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.estimate | Method to compute all available properties with the Joback method;
returns their results as a dict. For the tempearture dependent values
Cpig and mul, both the coefficients and objects to perform calculations
are returned. | thermo/joback.py | def estimate(self):
'''Method to compute all available properties with the Joback method;
returns their results as a dict. For the tempearture dependent values
Cpig and mul, both the coefficients and objects to perform calculations
are returned.
'''
# Pre-generate the coe... | def estimate(self):
'''Method to compute all available properties with the Joback method;
returns their results as a dict. For the tempearture dependent values
Cpig and mul, both the coefficients and objects to perform calculations
are returned.
'''
# Pre-generate the coe... | [
"Method",
"to",
"compute",
"all",
"available",
"properties",
"with",
"the",
"Joback",
"method",
";",
"returns",
"their",
"results",
"as",
"a",
"dict",
".",
"For",
"the",
"tempearture",
"dependent",
"values",
"Cpig",
"and",
"mul",
"both",
"the",
"coefficients",... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L403-L425 | [
"def",
"estimate",
"(",
"self",
")",
":",
"# Pre-generate the coefficients or they will not be returned",
"self",
".",
"mul",
"(",
"300",
")",
"self",
".",
"Cpig",
"(",
"300",
")",
"estimates",
"=",
"{",
"'Tb'",
":",
"self",
".",
"Tb",
"(",
"self",
".",
"c... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Tb | r'''Estimates the normal boiling temperature of an organic compound
using the Joback method as a function of chemical structure only.
.. math::
T_b = 198.2 + \sum_i {T_{b,i}}
For 438 compounds tested by Joback, the absolute average error was
12.91 K an... | thermo/joback.py | def Tb(counts):
r'''Estimates the normal boiling temperature of an organic compound
using the Joback method as a function of chemical structure only.
.. math::
T_b = 198.2 + \sum_i {T_{b,i}}
For 438 compounds tested by Joback, the absolute average error... | def Tb(counts):
r'''Estimates the normal boiling temperature of an organic compound
using the Joback method as a function of chemical structure only.
.. math::
T_b = 198.2 + \sum_i {T_{b,i}}
For 438 compounds tested by Joback, the absolute average error... | [
"r",
"Estimates",
"the",
"normal",
"boiling",
"temperature",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"T_b",
"=",
"198",
".",
"2",
"+",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L428-L459 | [
"def",
"Tb",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Tb",
"*",
"count",
"Tb",
"=",
"198.2",
"+",
"tot",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Tm | r'''Estimates the melting temperature of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
T_m = 122.5 + \sum_i {T_{m,i}}
For 388 compounds tested by Joback, the absolute average error was
22.6 K and standa... | thermo/joback.py | def Tm(counts):
r'''Estimates the melting temperature of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
T_m = 122.5 + \sum_i {T_{m,i}}
For 388 compounds tested by Joback, the absolute average error was
... | def Tm(counts):
r'''Estimates the melting temperature of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
T_m = 122.5 + \sum_i {T_{m,i}}
For 388 compounds tested by Joback, the absolute average error was
... | [
"r",
"Estimates",
"the",
"melting",
"temperature",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"T_m",
"=",
"122",
".",
"5",
"+",
"\\",
"sum_... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L462-L493 | [
"def",
"Tm",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Tm",
"*",
"count",
"Tm",
"=",
"122.5",
"+",
"tot",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Tc | r'''Estimates the critcal temperature of an organic compound using the
Joback method as a function of chemical structure only, or optionally
improved by using an experimental boiling point. If the experimental
boiling point is not provided it will be estimated with the Joback
method as ... | thermo/joback.py | def Tc(counts, Tb=None):
r'''Estimates the critcal temperature of an organic compound using the
Joback method as a function of chemical structure only, or optionally
improved by using an experimental boiling point. If the experimental
boiling point is not provided it will be estimated w... | def Tc(counts, Tb=None):
r'''Estimates the critcal temperature of an organic compound using the
Joback method as a function of chemical structure only, or optionally
improved by using an experimental boiling point. If the experimental
boiling point is not provided it will be estimated w... | [
"r",
"Estimates",
"the",
"critcal",
"temperature",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
"or",
"optionally",
"improved",
"by",
"using",
"an",
"experimental",
"boiling"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L496-L537 | [
"def",
"Tc",
"(",
"counts",
",",
"Tb",
"=",
"None",
")",
":",
"if",
"Tb",
"is",
"None",
":",
"Tb",
"=",
"Joback",
".",
"Tb",
"(",
"counts",
")",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"to... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Pc | r'''Estimates the critcal pressure of an organic compound using the
Joback method as a function of chemical structure only. This
correlation was developed using the actual number of atoms forming
the molecule as well.
.. math::
P_c = \left [0.113 + 0.0032N_A - \su... | thermo/joback.py | def Pc(counts, atom_count):
r'''Estimates the critcal pressure of an organic compound using the
Joback method as a function of chemical structure only. This
correlation was developed using the actual number of atoms forming
the molecule as well.
.. math::
... | def Pc(counts, atom_count):
r'''Estimates the critcal pressure of an organic compound using the
Joback method as a function of chemical structure only. This
correlation was developed using the actual number of atoms forming
the molecule as well.
.. math::
... | [
"r",
"Estimates",
"the",
"critcal",
"pressure",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"This",
"correlation",
"was",
"developed",
"using",
"the",
"actual",
"numb... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L540-L578 | [
"def",
"Pc",
"(",
"counts",
",",
"atom_count",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Pc",
"*",
"count",
"Pc",
"=",
"(",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Vc | r'''Estimates the critcal volume of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
V_c = 17.5 + \sum_i {V_{c,i}}
In the above equation, critical volume is calculated in cm^3/mol; it
is converted to m^3/... | thermo/joback.py | def Vc(counts):
r'''Estimates the critcal volume of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
V_c = 17.5 + \sum_i {V_{c,i}}
In the above equation, critical volume is calculated in cm^3/mol; it
... | def Vc(counts):
r'''Estimates the critcal volume of an organic compound using the
Joback method as a function of chemical structure only.
.. math::
V_c = 17.5 + \sum_i {V_{c,i}}
In the above equation, critical volume is calculated in cm^3/mol; it
... | [
"r",
"Estimates",
"the",
"critcal",
"volume",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"V_c",
"=",
"17",
".",
"5",
"+",
"\\",
"sum_i",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L581-L615 | [
"def",
"Vc",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Vc",
"*",
"count",
"Vc",
"=",
"17.5",
"+",
"tot",
"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Hf | r'''Estimates the ideal-gas enthalpy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
H_{formation} = 68.29 + \sum_i {H_{f,i}}
In the above equation, enthalpy of formation is ... | thermo/joback.py | def Hf(counts):
r'''Estimates the ideal-gas enthalpy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
H_{formation} = 68.29 + \sum_i {H_{f,i}}
In the above equation, e... | def Hf(counts):
r'''Estimates the ideal-gas enthalpy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
H_{formation} = 68.29 + \sum_i {H_{f,i}}
In the above equation, e... | [
"r",
"Estimates",
"the",
"ideal",
"-",
"gas",
"enthalpy",
"of",
"formation",
"at",
"298",
".",
"15",
"K",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"mat... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L618-L653 | [
"def",
"Hf",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Hform",
"*",
"count",
"Hf",
"=",
"68.29",
"+",
"tot",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Gf | r'''Estimates the ideal-gas Gibbs energy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
G_{formation} = 53.88 + \sum {G_{f,i}}
In the above equation, Gibbs energy of formati... | thermo/joback.py | def Gf(counts):
r'''Estimates the ideal-gas Gibbs energy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
G_{formation} = 53.88 + \sum {G_{f,i}}
In the above equation,... | def Gf(counts):
r'''Estimates the ideal-gas Gibbs energy of formation at 298.15 K of an
organic compound using the Joback method as a function of chemical
structure only.
.. math::
G_{formation} = 53.88 + \sum {G_{f,i}}
In the above equation,... | [
"r",
"Estimates",
"the",
"ideal",
"-",
"gas",
"Gibbs",
"energy",
"of",
"formation",
"at",
"298",
".",
"15",
"K",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L656-L691 | [
"def",
"Gf",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Gform",
"*",
"count",
"Gf",
"=",
"53.88",
"+",
"tot",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Hfus | r'''Estimates the enthalpy of fusion of an organic compound at its
melting point using the Joback method as a function of chemical
structure only.
.. math::
\Delta H_{fus} = -0.88 + \sum_i H_{fus,i}
In the above equation, enthalpy of fusion is calcula... | thermo/joback.py | def Hfus(counts):
r'''Estimates the enthalpy of fusion of an organic compound at its
melting point using the Joback method as a function of chemical
structure only.
.. math::
\Delta H_{fus} = -0.88 + \sum_i H_{fus,i}
In the above equation, ent... | def Hfus(counts):
r'''Estimates the enthalpy of fusion of an organic compound at its
melting point using the Joback method as a function of chemical
structure only.
.. math::
\Delta H_{fus} = -0.88 + \sum_i H_{fus,i}
In the above equation, ent... | [
"r",
"Estimates",
"the",
"enthalpy",
"of",
"fusion",
"of",
"an",
"organic",
"compound",
"at",
"its",
"melting",
"point",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"\\",
"Delta... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L694-L730 | [
"def",
"Hfus",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Hfus",
"*",
"count",
"Hfus",
"=",
"-",
"0.88",
"+",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Hvap | r'''Estimates the enthalpy of vaporization of an organic compound at
its normal boiling point using the Joback method as a function of
chemical structure only.
.. math::
\Delta H_{vap} = 15.30 + \sum_i H_{vap,i}
In the above equation, enthalpy of fu... | thermo/joback.py | def Hvap(counts):
r'''Estimates the enthalpy of vaporization of an organic compound at
its normal boiling point using the Joback method as a function of
chemical structure only.
.. math::
\Delta H_{vap} = 15.30 + \sum_i H_{vap,i}
In the abov... | def Hvap(counts):
r'''Estimates the enthalpy of vaporization of an organic compound at
its normal boiling point using the Joback method as a function of
chemical structure only.
.. math::
\Delta H_{vap} = 15.30 + \sum_i H_{vap,i}
In the abov... | [
"r",
"Estimates",
"the",
"enthalpy",
"of",
"vaporization",
"of",
"an",
"organic",
"compound",
"at",
"its",
"normal",
"boiling",
"point",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L733-L769 | [
"def",
"Hvap",
"(",
"counts",
")",
":",
"tot",
"=",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"tot",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"Hvap",
"*",
"count",
"Hvap",
"=",
"15.3",
"+",
"tot... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Cpig_coeffs | r'''Computes the ideal-gas polynomial heat capacity coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
+ \left[ \sum_i c_i - 3.91 ... | thermo/joback.py | def Cpig_coeffs(counts):
r'''Computes the ideal-gas polynomial heat capacity coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
... | def Cpig_coeffs(counts):
r'''Computes the ideal-gas polynomial heat capacity coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
... | [
"r",
"Computes",
"the",
"ideal",
"-",
"gas",
"polynomial",
"heat",
"capacity",
"coefficients",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"C_p^... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L772-L819 | [
"def",
"Cpig_coeffs",
"(",
"counts",
")",
":",
"a",
",",
"b",
",",
"c",
",",
"d",
"=",
"0.0",
",",
"0.0",
",",
"0.0",
",",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"a",
"+=",
"joback_groups_id_dict",
"[",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.mul_coeffs | r'''Computes the liquid phase viscosity Joback coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+ \sum_i \mu_b - 11.202 \right)
... | thermo/joback.py | def mul_coeffs(counts):
r'''Computes the liquid phase viscosity Joback coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+... | def mul_coeffs(counts):
r'''Computes the liquid phase viscosity Joback coefficients
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+... | [
"r",
"Computes",
"the",
"liquid",
"phase",
"viscosity",
"Joback",
"coefficients",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"\\",
"mu_",
"{",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L822-L866 | [
"def",
"mul_coeffs",
"(",
"counts",
")",
":",
"a",
",",
"b",
"=",
"0.0",
",",
"0.0",
"for",
"group",
",",
"count",
"in",
"counts",
".",
"items",
"(",
")",
":",
"a",
"+=",
"joback_groups_id_dict",
"[",
"group",
"]",
".",
"mua",
"*",
"count",
"b",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.Cpig | r'''Computes ideal-gas heat capacity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
+ \left[ \sum_i c_i - 3.91 \... | thermo/joback.py | def Cpig(self, T):
r'''Computes ideal-gas heat capacity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
+... | def Cpig(self, T):
r'''Computes ideal-gas heat capacity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
C_p^{ig} = \sum_i a_i - 37.93 + \left[ \sum_i b_i + 0.210 \right] T
+... | [
"r",
"Computes",
"ideal",
"-",
"gas",
"heat",
"capacity",
"at",
"a",
"specified",
"temperature",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L868-L896 | [
"def",
"Cpig",
"(",
"self",
",",
"T",
")",
":",
"if",
"self",
".",
"calculated_Cpig_coeffs",
"is",
"None",
":",
"self",
".",
"calculated_Cpig_coeffs",
"=",
"Joback",
".",
"Cpig_coeffs",
"(",
"self",
".",
"counts",
")",
"return",
"horner",
"(",
"reversed",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Joback.mul | r'''Computes liquid viscosity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+ \sum_i \mu_b - 11.202 \right)
... | thermo/joback.py | def mul(self, T):
r'''Computes liquid viscosity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+ \sum_i \m... | def mul(self, T):
r'''Computes liquid viscosity at a specified temperature
of an organic compound using the Joback method as a function of
chemical structure only.
.. math::
\mu_{liq} = \text{MW} \exp\left( \frac{ \sum_i \mu_a - 597.82}{T}
+ \sum_i \m... | [
"r",
"Computes",
"liquid",
"viscosity",
"at",
"a",
"specified",
"temperature",
"of",
"an",
"organic",
"compound",
"using",
"the",
"Joback",
"method",
"as",
"a",
"function",
"of",
"chemical",
"structure",
"only",
".",
"..",
"math",
"::",
"\\",
"mu_",
"{",
"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/joback.py#L898-L926 | [
"def",
"mul",
"(",
"self",
",",
"T",
")",
":",
"if",
"self",
".",
"calculated_mul_coeffs",
"is",
"None",
":",
"self",
".",
"calculated_mul_coeffs",
"=",
"Joback",
".",
"mul_coeffs",
"(",
"self",
".",
"counts",
")",
"a",
",",
"b",
"=",
"self",
".",
"c... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_viscosity_i | r'''Calculate the viscosity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature. Units are Kelvin and Pa*s.
.. math::
\mu_i = \frac{\exp\left( \frac{v_1(1-w_w)^{v_2}+v_3}{v_4 t +1}\right)}
{v_5(1-w_w)^{v_6}+1}
Parameters
----------
T : float
... | thermo/electrochem.py | def Laliberte_viscosity_i(T, w_w, v1, v2, v3, v4, v5, v6):
r'''Calculate the viscosity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature. Units are Kelvin and Pa*s.
.. math::
\mu_i = \frac{\exp\left( \frac{v_1(1-w_w)^{v_2}+v_3}{v_4 t +1}\right)}
{v_5(1... | def Laliberte_viscosity_i(T, w_w, v1, v2, v3, v4, v5, v6):
r'''Calculate the viscosity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature. Units are Kelvin and Pa*s.
.. math::
\mu_i = \frac{\exp\left( \frac{v_1(1-w_w)^{v_2}+v_3}{v_4 t +1}\right)}
{v_5(1... | [
"r",
"Calculate",
"the",
"viscosity",
"of",
"a",
"solute",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
"Parameters",
"are",
"needed",
"and",
"a",
"temperature",
".",
"Units",
"are",
"Kelvin",
"and",
"Pa",
"*",
"s",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L145-L187 | [
"def",
"Laliberte_viscosity_i",
"(",
"T",
",",
"w_w",
",",
"v1",
",",
"v2",
",",
"v3",
",",
"v4",
",",
"v5",
",",
"v6",
")",
":",
"t",
"=",
"T",
"-",
"273.15",
"mu_i",
"=",
"exp",
"(",
"(",
"v1",
"*",
"(",
"1",
"-",
"w_w",
")",
"**",
"v2",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_viscosity | r'''Calculate the viscosity of an aqueous mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\mu_m = \mu_w^{w_w} \Pi\mu_i^{w_i}
Parameters
----------
T : float
Temperature of fluid [K]
ws : array
... | thermo/electrochem.py | def Laliberte_viscosity(T, ws, CASRNs):
r'''Calculate the viscosity of an aqueous mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\mu_m = \mu_w^{w_w} \Pi\mu_i^{w_i}
Parameters
----------
T : float
Te... | def Laliberte_viscosity(T, ws, CASRNs):
r'''Calculate the viscosity of an aqueous mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\mu_m = \mu_w^{w_w} \Pi\mu_i^{w_i}
Parameters
----------
T : float
Te... | [
"r",
"Calculate",
"the",
"viscosity",
"of",
"an",
"aqueous",
"mixture",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
".",
"Parameters",
"are",
"loaded",
"by",
"the",
"function",
"as",
"needed",
".",
"Units",
"are",
"Kelvin",
"and",
"Pa",... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L190-L235 | [
"def",
"Laliberte_viscosity",
"(",
"T",
",",
"ws",
",",
"CASRNs",
")",
":",
"mu_w",
"=",
"Laliberte_viscosity_w",
"(",
"T",
")",
"*",
"1000.",
"w_w",
"=",
"1",
"-",
"sum",
"(",
"ws",
")",
"mu",
"=",
"mu_w",
"**",
"(",
"w_w",
")",
"for",
"i",
"in"... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_density_w | r'''Calculate the density of water using the form proposed by [1]_.
No parameters are needed, just a temperature. Units are Kelvin and kg/m^3h.
.. math::
\rho_w = \frac{\left\{\left([(-2.8054253\times 10^{-10}\cdot t +
1.0556302\times 10^{-7})t - 4.6170461\times 10^{-5}]t
-0.0079870401\... | thermo/electrochem.py | def Laliberte_density_w(T):
r'''Calculate the density of water using the form proposed by [1]_.
No parameters are needed, just a temperature. Units are Kelvin and kg/m^3h.
.. math::
\rho_w = \frac{\left\{\left([(-2.8054253\times 10^{-10}\cdot t +
1.0556302\times 10^{-7})t - 4.6170461\times ... | def Laliberte_density_w(T):
r'''Calculate the density of water using the form proposed by [1]_.
No parameters are needed, just a temperature. Units are Kelvin and kg/m^3h.
.. math::
\rho_w = \frac{\left\{\left([(-2.8054253\times 10^{-10}\cdot t +
1.0556302\times 10^{-7})t - 4.6170461\times ... | [
"r",
"Calculate",
"the",
"density",
"of",
"water",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
".",
"No",
"parameters",
"are",
"needed",
"just",
"a",
"temperature",
".",
"Units",
"are",
"Kelvin",
"and",
"kg",
"/",
"m^3h",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L240-L282 | [
"def",
"Laliberte_density_w",
"(",
"T",
")",
":",
"t",
"=",
"T",
"-",
"273.15",
"rho_w",
"=",
"(",
"(",
"(",
"(",
"(",
"-",
"2.8054253E-10",
"*",
"t",
"+",
"1.0556302E-7",
")",
"*",
"t",
"-",
"4.6170461E-5",
")",
"*",
"t",
"-",
"0.0079870401",
")",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_density_i | r'''Calculate the density of a solute using the form proposed by Laliberte [1]_.
Parameters are needed, and a temperature, and water fraction. Units are Kelvin and Pa*s.
.. math::
\rho_{app,i} = \frac{(c_0[1-w_w]+c_1)\exp(10^{-6}[t+c_4]^2)}
{(1-w_w) + c_2 + c_3 t}
Parameters
----------... | thermo/electrochem.py | def Laliberte_density_i(T, w_w, c0, c1, c2, c3, c4):
r'''Calculate the density of a solute using the form proposed by Laliberte [1]_.
Parameters are needed, and a temperature, and water fraction. Units are Kelvin and Pa*s.
.. math::
\rho_{app,i} = \frac{(c_0[1-w_w]+c_1)\exp(10^{-6}[t+c_4]^2)}
... | def Laliberte_density_i(T, w_w, c0, c1, c2, c3, c4):
r'''Calculate the density of a solute using the form proposed by Laliberte [1]_.
Parameters are needed, and a temperature, and water fraction. Units are Kelvin and Pa*s.
.. math::
\rho_{app,i} = \frac{(c_0[1-w_w]+c_1)\exp(10^{-6}[t+c_4]^2)}
... | [
"r",
"Calculate",
"the",
"density",
"of",
"a",
"solute",
"using",
"the",
"form",
"proposed",
"by",
"Laliberte",
"[",
"1",
"]",
"_",
".",
"Parameters",
"are",
"needed",
"and",
"a",
"temperature",
"and",
"water",
"fraction",
".",
"Units",
"are",
"Kelvin",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L285-L326 | [
"def",
"Laliberte_density_i",
"(",
"T",
",",
"w_w",
",",
"c0",
",",
"c1",
",",
"c2",
",",
"c3",
",",
"c4",
")",
":",
"t",
"=",
"T",
"-",
"273.15",
"return",
"(",
"(",
"c0",
"*",
"(",
"1",
"-",
"w_w",
")",
"+",
"c1",
")",
"*",
"exp",
"(",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_density | r'''Calculate the density of an aqueous electrolyte mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\rho_m = \left(\frac{w_w}{\rho_w} + \sum_i \frac{w_i}{\rho_{app_i}}\right)^{-1}
Parameters
----------
T : float... | thermo/electrochem.py | def Laliberte_density(T, ws, CASRNs):
r'''Calculate the density of an aqueous electrolyte mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\rho_m = \left(\frac{w_w}{\rho_w} + \sum_i \frac{w_i}{\rho_{app_i}}\right)^{-1}
... | def Laliberte_density(T, ws, CASRNs):
r'''Calculate the density of an aqueous electrolyte mixture using the form proposed by [1]_.
Parameters are loaded by the function as needed. Units are Kelvin and Pa*s.
.. math::
\rho_m = \left(\frac{w_w}{\rho_w} + \sum_i \frac{w_i}{\rho_{app_i}}\right)^{-1}
... | [
"r",
"Calculate",
"the",
"density",
"of",
"an",
"aqueous",
"electrolyte",
"mixture",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
".",
"Parameters",
"are",
"loaded",
"by",
"the",
"function",
"as",
"needed",
".",
"Units",
"are",
"Kelvin",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L329-L373 | [
"def",
"Laliberte_density",
"(",
"T",
",",
"ws",
",",
"CASRNs",
")",
":",
"rho_w",
"=",
"Laliberte_density_w",
"(",
"T",
")",
"w_w",
"=",
"1",
"-",
"sum",
"(",
"ws",
")",
"rho",
"=",
"w_w",
"/",
"rho_w",
"for",
"i",
"in",
"range",
"(",
"len",
"("... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_heat_capacity_i | r'''Calculate the heat capacity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature, and water fraction.
.. math::
Cp_i = a_1 e^\alpha + a_5(1-w_w)^{a_6}
\alpha = a_2 t + a_3 \exp(0.01t) + a_4(1-w_w)
Parameters
----------
T : float
Temperatu... | thermo/electrochem.py | def Laliberte_heat_capacity_i(T, w_w, a1, a2, a3, a4, a5, a6):
r'''Calculate the heat capacity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature, and water fraction.
.. math::
Cp_i = a_1 e^\alpha + a_5(1-w_w)^{a_6}
\alpha = a_2 t + a_3 \exp(0.01t) + a_4(1-... | def Laliberte_heat_capacity_i(T, w_w, a1, a2, a3, a4, a5, a6):
r'''Calculate the heat capacity of a solute using the form proposed by [1]_
Parameters are needed, and a temperature, and water fraction.
.. math::
Cp_i = a_1 e^\alpha + a_5(1-w_w)^{a_6}
\alpha = a_2 t + a_3 \exp(0.01t) + a_4(1-... | [
"r",
"Calculate",
"the",
"heat",
"capacity",
"of",
"a",
"solute",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
"Parameters",
"are",
"needed",
"and",
"a",
"temperature",
"and",
"water",
"fraction",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L423-L466 | [
"def",
"Laliberte_heat_capacity_i",
"(",
"T",
",",
"w_w",
",",
"a1",
",",
"a2",
",",
"a3",
",",
"a4",
",",
"a5",
",",
"a6",
")",
":",
"t",
"=",
"T",
"-",
"273.15",
"alpha",
"=",
"a2",
"*",
"t",
"+",
"a3",
"*",
"exp",
"(",
"0.01",
"*",
"t",
... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | Laliberte_heat_capacity | r'''Calculate the heat capacity of an aqueous electrolyte mixture using the
form proposed by [1]_.
Parameters are loaded by the function as needed.
.. math::
TODO
Parameters
----------
T : float
Temperature of fluid [K]
ws : array
Weight fractions of fluid component... | thermo/electrochem.py | def Laliberte_heat_capacity(T, ws, CASRNs):
r'''Calculate the heat capacity of an aqueous electrolyte mixture using the
form proposed by [1]_.
Parameters are loaded by the function as needed.
.. math::
TODO
Parameters
----------
T : float
Temperature of fluid [K]
ws : a... | def Laliberte_heat_capacity(T, ws, CASRNs):
r'''Calculate the heat capacity of an aqueous electrolyte mixture using the
form proposed by [1]_.
Parameters are loaded by the function as needed.
.. math::
TODO
Parameters
----------
T : float
Temperature of fluid [K]
ws : a... | [
"r",
"Calculate",
"the",
"heat",
"capacity",
"of",
"an",
"aqueous",
"electrolyte",
"mixture",
"using",
"the",
"form",
"proposed",
"by",
"[",
"1",
"]",
"_",
".",
"Parameters",
"are",
"loaded",
"by",
"the",
"function",
"as",
"needed",
"."
] | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L469-L516 | [
"def",
"Laliberte_heat_capacity",
"(",
"T",
",",
"ws",
",",
"CASRNs",
")",
":",
"Cp_w",
"=",
"Laliberte_heat_capacity_w",
"(",
"T",
")",
"w_w",
"=",
"1",
"-",
"sum",
"(",
"ws",
")",
"Cp",
"=",
"w_w",
"*",
"Cp_w",
"for",
"i",
"in",
"range",
"(",
"le... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | dilute_ionic_conductivity | r'''This function handles the calculation of the electrical conductivity of
a dilute electrolytic aqueous solution. Requires the mole fractions of
each ion, the molar density of the whole mixture, and ionic conductivity
coefficients for each ion.
.. math::
\lambda = \sum_i \lambda_i^\cir... | thermo/electrochem.py | def dilute_ionic_conductivity(ionic_conductivities, zs, rhom):
r'''This function handles the calculation of the electrical conductivity of
a dilute electrolytic aqueous solution. Requires the mole fractions of
each ion, the molar density of the whole mixture, and ionic conductivity
coefficients for e... | def dilute_ionic_conductivity(ionic_conductivities, zs, rhom):
r'''This function handles the calculation of the electrical conductivity of
a dilute electrolytic aqueous solution. Requires the mole fractions of
each ion, the molar density of the whole mixture, and ionic conductivity
coefficients for e... | [
"r",
"This",
"function",
"handles",
"the",
"calculation",
"of",
"the",
"electrical",
"conductivity",
"of",
"a",
"dilute",
"electrolytic",
"aqueous",
"solution",
".",
"Requires",
"the",
"mole",
"fractions",
"of",
"each",
"ion",
"the",
"molar",
"density",
"of",
... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L532-L583 | [
"def",
"dilute_ionic_conductivity",
"(",
"ionic_conductivities",
",",
"zs",
",",
"rhom",
")",
":",
"return",
"sum",
"(",
"[",
"ci",
"*",
"(",
"zi",
"*",
"rhom",
")",
"for",
"zi",
",",
"ci",
"in",
"zip",
"(",
"zs",
",",
"ionic_conductivities",
")",
"]",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | conductivity_McCleskey | r'''This function handles the calculation of the electrical conductivity of
an electrolytic aqueous solution with one electrolyte in solution. It
handles temperature dependency and concentrated solutions. Requires the
temperature of the solution; its molality, and four sets of coefficients
`lambda_coe... | thermo/electrochem.py | def conductivity_McCleskey(T, M, lambda_coeffs, A_coeffs, B, multiplier, rho=1000.):
r'''This function handles the calculation of the electrical conductivity of
an electrolytic aqueous solution with one electrolyte in solution. It
handles temperature dependency and concentrated solutions. Requires the
... | def conductivity_McCleskey(T, M, lambda_coeffs, A_coeffs, B, multiplier, rho=1000.):
r'''This function handles the calculation of the electrical conductivity of
an electrolytic aqueous solution with one electrolyte in solution. It
handles temperature dependency and concentrated solutions. Requires the
... | [
"r",
"This",
"function",
"handles",
"the",
"calculation",
"of",
"the",
"electrical",
"conductivity",
"of",
"an",
"electrolytic",
"aqueous",
"solution",
"with",
"one",
"electrolyte",
"in",
"solution",
".",
"It",
"handles",
"temperature",
"dependency",
"and",
"conce... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L599-L671 | [
"def",
"conductivity_McCleskey",
"(",
"T",
",",
"M",
",",
"lambda_coeffs",
",",
"A_coeffs",
",",
"B",
",",
"multiplier",
",",
"rho",
"=",
"1000.",
")",
":",
"t",
"=",
"T",
"-",
"273.15",
"lambda_coeff",
"=",
"horner",
"(",
"lambda_coeffs",
",",
"t",
")... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | conductivity | r'''This function handles the retrieval of a chemical's conductivity.
Lookup is based on CASRNs. Will automatically select a data source to use
if no Method is provided; returns None if the data is not available.
Function has data for approximately 100 chemicals.
Parameters
----------
CASRN : ... | thermo/electrochem.py | def conductivity(CASRN=None, AvailableMethods=False, Method=None, full_info=True):
r'''This function handles the retrieval of a chemical's conductivity.
Lookup is based on CASRNs. Will automatically select a data source to use
if no Method is provided; returns None if the data is not available.
Functio... | def conductivity(CASRN=None, AvailableMethods=False, Method=None, full_info=True):
r'''This function handles the retrieval of a chemical's conductivity.
Lookup is based on CASRNs. Will automatically select a data source to use
if no Method is provided; returns None if the data is not available.
Functio... | [
"r",
"This",
"function",
"handles",
"the",
"retrieval",
"of",
"a",
"chemical",
"s",
"conductivity",
".",
"Lookup",
"is",
"based",
"on",
"CASRNs",
".",
"Will",
"automatically",
"select",
"a",
"data",
"source",
"to",
"use",
"if",
"no",
"Method",
"is",
"provi... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L686-L760 | [
"def",
"conductivity",
"(",
"CASRN",
"=",
"None",
",",
"AvailableMethods",
"=",
"False",
",",
"Method",
"=",
"None",
",",
"full_info",
"=",
"True",
")",
":",
"def",
"list_methods",
"(",
")",
":",
"methods",
"=",
"[",
"]",
"if",
"CASRN",
"in",
"Lange_co... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
valid | thermal_conductivity_Magomedov | r'''Calculate the thermal conductivity of an aqueous mixture of
electrolytes using the form proposed by Magomedov [1]_.
Parameters are loaded by the function as needed. Function will fail if an
electrolyte is not in the database.
.. math::
\lambda = \lambda_w\left[ 1 - \sum_{i=1}^n A_i (w_i + 2... | thermo/electrochem.py | def thermal_conductivity_Magomedov(T, P, ws, CASRNs, k_w=None):
r'''Calculate the thermal conductivity of an aqueous mixture of
electrolytes using the form proposed by Magomedov [1]_.
Parameters are loaded by the function as needed. Function will fail if an
electrolyte is not in the database.
.. ma... | def thermal_conductivity_Magomedov(T, P, ws, CASRNs, k_w=None):
r'''Calculate the thermal conductivity of an aqueous mixture of
electrolytes using the form proposed by Magomedov [1]_.
Parameters are loaded by the function as needed. Function will fail if an
electrolyte is not in the database.
.. ma... | [
"r",
"Calculate",
"the",
"thermal",
"conductivity",
"of",
"an",
"aqueous",
"mixture",
"of",
"electrolytes",
"using",
"the",
"form",
"proposed",
"by",
"Magomedov",
"[",
"1",
"]",
"_",
".",
"Parameters",
"are",
"loaded",
"by",
"the",
"function",
"as",
"needed"... | CalebBell/thermo | python | https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/electrochem.py#L766-L823 | [
"def",
"thermal_conductivity_Magomedov",
"(",
"T",
",",
"P",
",",
"ws",
",",
"CASRNs",
",",
"k_w",
"=",
"None",
")",
":",
"P",
"=",
"P",
"/",
"1E6",
"ws",
"=",
"[",
"i",
"*",
"100",
"for",
"i",
"in",
"ws",
"]",
"if",
"not",
"k_w",
":",
"raise",... | 3857ed023a3e64fd3039a32d53576c24990ef1c3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.