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
K_value
r'''Calculates the equilibrium K-value assuming Raoult's law, or an equation of state model, or an activity coefficient model, or a combined equation of state-activity model. The calculation procedure will use the most advanced approach with the provided inputs: * If `P`, `Psat`, `phi_l`, `phi...
thermo/activity.py
def K_value(P=None, Psat=None, phi_l=None, phi_g=None, gamma=None, Poynting=1): r'''Calculates the equilibrium K-value assuming Raoult's law, or an equation of state model, or an activity coefficient model, or a combined equation of state-activity model. The calculation procedure will use the most adva...
def K_value(P=None, Psat=None, phi_l=None, phi_g=None, gamma=None, Poynting=1): r'''Calculates the equilibrium K-value assuming Raoult's law, or an equation of state model, or an activity coefficient model, or a combined equation of state-activity model. The calculation procedure will use the most adva...
[ "r", "Calculates", "the", "equilibrium", "K", "-", "value", "assuming", "Raoult", "s", "law", "or", "an", "equation", "of", "state", "model", "or", "an", "activity", "coefficient", "model", "or", "a", "combined", "equation", "of", "state", "-", "activity", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L39-L168
[ "def", "K_value", "(", "P", "=", "None", ",", "Psat", "=", "None", ",", "phi_l", "=", "None", ",", "phi_g", "=", "None", ",", "gamma", "=", "None", ",", "Poynting", "=", "1", ")", ":", "try", ":", "if", "gamma", ":", "if", "phi_l", ":", "return...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Rachford_Rice_flash_error
r'''Calculates the objective function of the Rachford-Rice flash equation. This function should be called by a solver seeking a solution to a flash calculation. The unknown variable is `V_over_F`, for which a solution must be between 0 and 1. .. math:: \sum_i \frac{z_i(K_i-1)}{1 + \frac{V}{F}(K...
thermo/activity.py
def Rachford_Rice_flash_error(V_over_F, zs, Ks): r'''Calculates the objective function of the Rachford-Rice flash equation. This function should be called by a solver seeking a solution to a flash calculation. The unknown variable is `V_over_F`, for which a solution must be between 0 and 1. .. math...
def Rachford_Rice_flash_error(V_over_F, zs, Ks): r'''Calculates the objective function of the Rachford-Rice flash equation. This function should be called by a solver seeking a solution to a flash calculation. The unknown variable is `V_over_F`, for which a solution must be between 0 and 1. .. math...
[ "r", "Calculates", "the", "objective", "function", "of", "the", "Rachford", "-", "Rice", "flash", "equation", ".", "This", "function", "should", "be", "called", "by", "a", "solver", "seeking", "a", "solution", "to", "a", "flash", "calculation", ".", "The", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L175-L227
[ "def", "Rachford_Rice_flash_error", "(", "V_over_F", ",", "zs", ",", "Ks", ")", ":", "return", "sum", "(", "[", "zi", "*", "(", "Ki", "-", "1.", ")", "/", "(", "1.", "+", "V_over_F", "*", "(", "Ki", "-", "1.", ")", ")", "for", "Ki", ",", "zi", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Rachford_Rice_solution
r'''Solves the objective function of the Rachford-Rice flash equation. Uses the method proposed in [2]_ to obtain an initial guess. .. math:: \sum_i \frac{z_i(K_i-1)}{1 + \frac{V}{F}(K_i-1)} = 0 Parameters ---------- zs : list[float] Overall mole fractions of all species, [-] K...
thermo/activity.py
def Rachford_Rice_solution(zs, Ks): r'''Solves the objective function of the Rachford-Rice flash equation. Uses the method proposed in [2]_ to obtain an initial guess. .. math:: \sum_i \frac{z_i(K_i-1)}{1 + \frac{V}{F}(K_i-1)} = 0 Parameters ---------- zs : list[float] Overall ...
def Rachford_Rice_solution(zs, Ks): r'''Solves the objective function of the Rachford-Rice flash equation. Uses the method proposed in [2]_ to obtain an initial guess. .. math:: \sum_i \frac{z_i(K_i-1)}{1 + \frac{V}{F}(K_i-1)} = 0 Parameters ---------- zs : list[float] Overall ...
[ "r", "Solves", "the", "objective", "function", "of", "the", "Rachford", "-", "Rice", "flash", "equation", ".", "Uses", "the", "method", "proposed", "in", "[", "2", "]", "_", "to", "obtain", "an", "initial", "guess", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L230-L321
[ "def", "Rachford_Rice_solution", "(", "zs", ",", "Ks", ")", ":", "Kmin", "=", "min", "(", "Ks", ")", "Kmax", "=", "max", "(", "Ks", ")", "z_of_Kmax", "=", "zs", "[", "Ks", ".", "index", "(", "Kmax", ")", "]", "V_over_F_min", "=", "(", "(", "Kmax"...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Li_Johns_Ahmadi_solution
r'''Solves the objective function of the Li-Johns-Ahmadi flash equation. Uses the method proposed in [1]_ to obtain an initial guess. .. math:: 0 = 1 + \left(\frac{K_{max}-K_{min}}{K_{min}-1}\right)x_1 + \sum_{i=2}^{n-1}\frac{K_i-K_{min}}{K_{min}-1}\left[\frac{z_i(K_{max} -1)x_{max}}{(K...
thermo/activity.py
def Li_Johns_Ahmadi_solution(zs, Ks): r'''Solves the objective function of the Li-Johns-Ahmadi flash equation. Uses the method proposed in [1]_ to obtain an initial guess. .. math:: 0 = 1 + \left(\frac{K_{max}-K_{min}}{K_{min}-1}\right)x_1 + \sum_{i=2}^{n-1}\frac{K_i-K_{min}}{K_{min}-1}\lef...
def Li_Johns_Ahmadi_solution(zs, Ks): r'''Solves the objective function of the Li-Johns-Ahmadi flash equation. Uses the method proposed in [1]_ to obtain an initial guess. .. math:: 0 = 1 + \left(\frac{K_{max}-K_{min}}{K_{min}-1}\right)x_1 + \sum_{i=2}^{n-1}\frac{K_i-K_{min}}{K_{min}-1}\lef...
[ "r", "Solves", "the", "objective", "function", "of", "the", "Li", "-", "Johns", "-", "Ahmadi", "flash", "equation", ".", "Uses", "the", "method", "proposed", "in", "[", "1", "]", "_", "to", "obtain", "an", "initial", "guess", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L324-L419
[ "def", "Li_Johns_Ahmadi_solution", "(", "zs", ",", "Ks", ")", ":", "# Re-order both Ks and Zs by K value, higher coming first", "p", "=", "sorted", "(", "zip", "(", "Ks", ",", "zs", ")", ",", "reverse", "=", "True", ")", "Ks_sorted", ",", "zs_sorted", "=", "["...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
flash_inner_loop
r'''This function handles the solution of the inner loop of a flash calculation, solving for liquid and gas mole fractions and vapor fraction based on specified overall mole fractions and K values. As K values are weak functions of composition, this should be called repeatedly by an outer loop. Will aut...
thermo/activity.py
def flash_inner_loop(zs, Ks, AvailableMethods=False, Method=None): r'''This function handles the solution of the inner loop of a flash calculation, solving for liquid and gas mole fractions and vapor fraction based on specified overall mole fractions and K values. As K values are weak functions of compo...
def flash_inner_loop(zs, Ks, AvailableMethods=False, Method=None): r'''This function handles the solution of the inner loop of a flash calculation, solving for liquid and gas mole fractions and vapor fraction based on specified overall mole fractions and K values. As K values are weak functions of compo...
[ "r", "This", "function", "handles", "the", "solution", "of", "the", "inner", "loop", "of", "a", "flash", "calculation", "solving", "for", "liquid", "and", "gas", "mole", "fractions", "and", "vapor", "fraction", "based", "on", "specified", "overall", "mole", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L423-L513
[ "def", "flash_inner_loop", "(", "zs", ",", "Ks", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "l", "=", "len", "(", "zs", ")", "def", "list_methods", "(", ")", ":", "methods", "=", "[", "]", "if", "l", "in", "[", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
NRTL
r'''Calculates the activity coefficients of each species in a mixture using the Non-Random Two-Liquid (NRTL) method, given their mole fractions, dimensionless interaction parameters, and nonrandomness constants. Those are normally correlated with temperature in some form, and need to be calculated separ...
thermo/activity.py
def NRTL(xs, taus, alphas): r'''Calculates the activity coefficients of each species in a mixture using the Non-Random Two-Liquid (NRTL) method, given their mole fractions, dimensionless interaction parameters, and nonrandomness constants. Those are normally correlated with temperature in some form, and...
def NRTL(xs, taus, alphas): r'''Calculates the activity coefficients of each species in a mixture using the Non-Random Two-Liquid (NRTL) method, given their mole fractions, dimensionless interaction parameters, and nonrandomness constants. Those are normally correlated with temperature in some form, and...
[ "r", "Calculates", "the", "activity", "coefficients", "of", "each", "species", "in", "a", "mixture", "using", "the", "Non", "-", "Random", "Two", "-", "Liquid", "(", "NRTL", ")", "method", "given", "their", "mole", "fractions", "dimensionless", "interaction", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L516-L596
[ "def", "NRTL", "(", "xs", ",", "taus", ",", "alphas", ")", ":", "gammas", "=", "[", "]", "cmps", "=", "range", "(", "len", "(", "xs", ")", ")", "Gs", "=", "[", "[", "exp", "(", "-", "alphas", "[", "i", "]", "[", "j", "]", "*", "taus", "["...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Wilson
r'''Calculates the activity coefficients of each species in a mixture using the Wilson method, given their mole fractions, and dimensionless interaction parameters. Those are normally correlated with temperature, and need to be calculated separately. .. math:: \ln \gamma_i = 1 - \ln \left(\sum_...
thermo/activity.py
def Wilson(xs, params): r'''Calculates the activity coefficients of each species in a mixture using the Wilson method, given their mole fractions, and dimensionless interaction parameters. Those are normally correlated with temperature, and need to be calculated separately. .. math:: \ln \g...
def Wilson(xs, params): r'''Calculates the activity coefficients of each species in a mixture using the Wilson method, given their mole fractions, and dimensionless interaction parameters. Those are normally correlated with temperature, and need to be calculated separately. .. math:: \ln \g...
[ "r", "Calculates", "the", "activity", "coefficients", "of", "each", "species", "in", "a", "mixture", "using", "the", "Wilson", "method", "given", "their", "mole", "fractions", "and", "dimensionless", "interaction", "parameters", ".", "Those", "are", "normally", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L599-L670
[ "def", "Wilson", "(", "xs", ",", "params", ")", ":", "gammas", "=", "[", "]", "cmps", "=", "range", "(", "len", "(", "xs", ")", ")", "for", "i", "in", "cmps", ":", "tot1", "=", "log", "(", "sum", "(", "[", "params", "[", "i", "]", "[", "j",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
UNIQUAC
r'''Calculates the activity coefficients of each species in a mixture using the Universal quasi-chemical (UNIQUAC) equation, given their mole fractions, `rs`, `qs`, and dimensionless interaction parameters. The interaction parameters are normally correlated with temperature, and need to be calculated se...
thermo/activity.py
def UNIQUAC(xs, rs, qs, taus): r'''Calculates the activity coefficients of each species in a mixture using the Universal quasi-chemical (UNIQUAC) equation, given their mole fractions, `rs`, `qs`, and dimensionless interaction parameters. The interaction parameters are normally correlated with temperatur...
def UNIQUAC(xs, rs, qs, taus): r'''Calculates the activity coefficients of each species in a mixture using the Universal quasi-chemical (UNIQUAC) equation, given their mole fractions, `rs`, `qs`, and dimensionless interaction parameters. The interaction parameters are normally correlated with temperatur...
[ "r", "Calculates", "the", "activity", "coefficients", "of", "each", "species", "in", "a", "mixture", "using", "the", "Universal", "quasi", "-", "chemical", "(", "UNIQUAC", ")", "equation", "given", "their", "mole", "fractions", "rs", "qs", "and", "dimensionles...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L673-L777
[ "def", "UNIQUAC", "(", "xs", ",", "rs", ",", "qs", ",", "taus", ")", ":", "cmps", "=", "range", "(", "len", "(", "xs", ")", ")", "rsxs", "=", "sum", "(", "[", "rs", "[", "i", "]", "*", "xs", "[", "i", "]", "for", "i", "in", "cmps", "]", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
bubble_at_T
>>> bubble_at_T([0.5, 0.5], [1400, 7000]) 4200.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75]) 3395.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75], fugacities=[.995, 0.98]) 3452.440775305097
thermo/activity.py
def bubble_at_T(zs, Psats, fugacities=None, gammas=None): ''' >>> bubble_at_T([0.5, 0.5], [1400, 7000]) 4200.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75]) 3395.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75], fugacities=[.995, 0.98]) 3452.440775305097 ''' ...
def bubble_at_T(zs, Psats, fugacities=None, gammas=None): ''' >>> bubble_at_T([0.5, 0.5], [1400, 7000]) 4200.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75]) 3395.0 >>> bubble_at_T([0.5, 0.5], [1400, 7000], gammas=[1.1, .75], fugacities=[.995, 0.98]) 3452.440775305097 ''' ...
[ ">>>", "bubble_at_T", "(", "[", "0", ".", "5", "0", ".", "5", "]", "[", "1400", "7000", "]", ")", "4200", ".", "0", ">>>", "bubble_at_T", "(", "[", "0", ".", "5", "0", ".", "5", "]", "[", "1400", "7000", "]", "gammas", "=", "[", "1", ".", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L825-L841
[ "def", "bubble_at_T", "(", "zs", ",", "Psats", ",", "fugacities", "=", "None", ",", "gammas", "=", "None", ")", ":", "if", "not", "fugacities", ":", "fugacities", "=", "[", "1", "for", "i", "in", "range", "(", "len", "(", "Psats", ")", ")", "]", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
identify_phase
r'''Determines the phase of a one-species chemical system according to basic rules, using whatever information is available. Considers only the phases liquid, solid, and gas; does not consider two-phase scenarios, as should occurs between phase boundaries. * If the melting temperature is known and the ...
thermo/activity.py
def identify_phase(T, P, Tm=None, Tb=None, Tc=None, Psat=None): r'''Determines the phase of a one-species chemical system according to basic rules, using whatever information is available. Considers only the phases liquid, solid, and gas; does not consider two-phase scenarios, as should occurs between p...
def identify_phase(T, P, Tm=None, Tb=None, Tc=None, Psat=None): r'''Determines the phase of a one-species chemical system according to basic rules, using whatever information is available. Considers only the phases liquid, solid, and gas; does not consider two-phase scenarios, as should occurs between p...
[ "r", "Determines", "the", "phase", "of", "a", "one", "-", "species", "chemical", "system", "according", "to", "basic", "rules", "using", "whatever", "information", "is", "available", ".", "Considers", "only", "the", "phases", "liquid", "solid", "and", "gas", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L844-L923
[ "def", "identify_phase", "(", "T", ",", "P", ",", "Tm", "=", "None", ",", "Tb", "=", "None", ",", "Tc", "=", "None", ",", "Psat", "=", "None", ")", ":", "if", "Tm", "and", "T", "<=", "Tm", ":", "return", "'s'", "elif", "Tc", "and", "T", ">=",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
identify_phase_mixture
>>> identify_phase_mixture(T=280, P=5000., zs=[0.5, 0.5], Psats=[1400, 7000]) ('l', [0.5, 0.5], None, 0) >>> identify_phase_mixture(T=280, P=3000., zs=[0.5, 0.5], Psats=[1400, 7000]) ('two-phase', [0.7142857142857143, 0.2857142857142857], [0.33333333333333337, 0.6666666666666666], 0.5625000000000001) >>...
thermo/activity.py
def identify_phase_mixture(T=None, P=None, zs=None, Tcs=None, Pcs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> identify_phase_mixture(T=280, P=5000., zs=[0.5, 0.5], Psats=[1400, 7000]) ('l', [0.5, 0.5],...
def identify_phase_mixture(T=None, P=None, zs=None, Tcs=None, Pcs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> identify_phase_mixture(T=280, P=5000., zs=[0.5, 0.5], Psats=[1400, 7000]) ('l', [0.5, 0.5],...
[ ">>>", "identify_phase_mixture", "(", "T", "=", "280", "P", "=", "5000", ".", "zs", "=", "[", "0", ".", "5", "0", ".", "5", "]", "Psats", "=", "[", "1400", "7000", "]", ")", "(", "l", "[", "0", ".", "5", "0", ".", "5", "]", "None", "0", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L928-L1010
[ "def", "identify_phase_mixture", "(", "T", "=", "None", ",", "P", "=", "None", ",", "zs", "=", "None", ",", "Tcs", "=", "None", ",", "Pcs", "=", "None", ",", "Psats", "=", "None", ",", "CASRNs", "=", "None", ",", "AvailableMethods", "=", "False", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Pbubble_mixture
>>> Pbubble_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 4200.0
thermo/activity.py
def Pbubble_mixture(T=None, zs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> Pbubble_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 4200.0 ''' def list_methods(): methods = [] if none_and_length_check((Psats, zs)): ...
def Pbubble_mixture(T=None, zs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> Pbubble_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 4200.0 ''' def list_methods(): methods = [] if none_and_length_check((Psats, zs)): ...
[ ">>>", "Pbubble_mixture", "(", "zs", "=", "[", "0", ".", "5", "0", ".", "5", "]", "Psats", "=", "[", "1400", "7000", "]", ")", "4200", ".", "0" ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L1013-L1036
[ "def", "Pbubble_mixture", "(", "T", "=", "None", ",", "zs", "=", "None", ",", "Psats", "=", "None", ",", "CASRNs", "=", "None", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "# pragma: no cover", "def", "list_methods", "(",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
bubble_at_P
Calculates bubble point for a given pressure Parameters ---------- P : float Pressure, [Pa] zs : list[float] Overall mole fractions of all species, [-] vapor_pressure_eqns : list[functions] Temperature dependent function for each specie, Returns Psat, [Pa] fugacities : l...
thermo/activity.py
def bubble_at_P(P, zs, vapor_pressure_eqns, fugacities=None, gammas=None): '''Calculates bubble point for a given pressure Parameters ---------- P : float Pressure, [Pa] zs : list[float] Overall mole fractions of all species, [-] vapor_pressure_eqns : list[functions] Tem...
def bubble_at_P(P, zs, vapor_pressure_eqns, fugacities=None, gammas=None): '''Calculates bubble point for a given pressure Parameters ---------- P : float Pressure, [Pa] zs : list[float] Overall mole fractions of all species, [-] vapor_pressure_eqns : list[functions] Tem...
[ "Calculates", "bubble", "point", "for", "a", "given", "pressure" ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L1039-L1070
[ "def", "bubble_at_P", "(", "P", ",", "zs", ",", "vapor_pressure_eqns", ",", "fugacities", "=", "None", ",", "gammas", "=", "None", ")", ":", "def", "bubble_P_error", "(", "T", ")", ":", "Psats", "=", "[", "VP", "(", "T", ")", "for", "VP", "in", "va...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Pdew_mixture
>>> Pdew_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 2333.3333333333335
thermo/activity.py
def Pdew_mixture(T=None, zs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> Pdew_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 2333.3333333333335 ''' def list_methods(): methods = [] if none_and_length_check((Psats, zs)):...
def Pdew_mixture(T=None, zs=None, Psats=None, CASRNs=None, AvailableMethods=False, Method=None): # pragma: no cover ''' >>> Pdew_mixture(zs=[0.5, 0.5], Psats=[1400, 7000]) 2333.3333333333335 ''' def list_methods(): methods = [] if none_and_length_check((Psats, zs)):...
[ ">>>", "Pdew_mixture", "(", "zs", "=", "[", "0", ".", "5", "0", ".", "5", "]", "Psats", "=", "[", "1400", "7000", "]", ")", "2333", ".", "3333333333335" ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/activity.py#L1073-L1096
[ "def", "Pdew_mixture", "(", "T", "=", "None", ",", "zs", "=", "None", ",", "Psats", "=", "None", ",", "CASRNs", "=", "None", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "# pragma: no cover", "def", "list_methods", "(", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.draw_2d
r'''Interface for drawing a 2D image of the molecule. Requires an HTML5 browser, and the libraries RDKit and IPython. An exception is raised if either of these libraries is absent. Parameters ---------- width : int Number of pixels wide for the view h...
thermo/chemical.py
def draw_2d(self, width=300, height=300, Hs=False): # pragma: no cover r'''Interface for drawing a 2D image of the molecule. Requires an HTML5 browser, and the libraries RDKit and IPython. An exception is raised if either of these libraries is absent. Parameters --------...
def draw_2d(self, width=300, height=300, Hs=False): # pragma: no cover r'''Interface for drawing a 2D image of the molecule. Requires an HTML5 browser, and the libraries RDKit and IPython. An exception is raised if either of these libraries is absent. Parameters --------...
[ "r", "Interface", "for", "drawing", "a", "2D", "image", "of", "the", "molecule", ".", "Requires", "an", "HTML5", "browser", "and", "the", "libraries", "RDKit", "and", "IPython", ".", "An", "exception", "is", "raised", "if", "either", "of", "these", "librar...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L603-L632
[ "def", "draw_2d", "(", "self", ",", "width", "=", "300", ",", "height", "=", "300", ",", "Hs", "=", "False", ")", ":", "# pragma: no cover", "try", ":", "from", "rdkit", ".", "Chem", "import", "Draw", "from", "rdkit", ".", "Chem", ".", "Draw", "impor...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.draw_3d
r'''Interface for drawing an interactive 3D view of the molecule. Requires an HTML5 browser, and the libraries RDKit, pymol3D, and IPython. An exception is raised if all three of these libraries are not installed. Parameters ---------- width : int Number of p...
thermo/chemical.py
def draw_3d(self, width=300, height=500, style='stick', Hs=True): # pragma: no cover r'''Interface for drawing an interactive 3D view of the molecule. Requires an HTML5 browser, and the libraries RDKit, pymol3D, and IPython. An exception is raised if all three of these libraries are not ...
def draw_3d(self, width=300, height=500, style='stick', Hs=True): # pragma: no cover r'''Interface for drawing an interactive 3D view of the molecule. Requires an HTML5 browser, and the libraries RDKit, pymol3D, and IPython. An exception is raised if all three of these libraries are not ...
[ "r", "Interface", "for", "drawing", "an", "interactive", "3D", "view", "of", "the", "molecule", ".", "Requires", "an", "HTML5", "browser", "and", "the", "libraries", "RDKit", "pymol3D", "and", "IPython", ".", "An", "exception", "is", "raised", "if", "all", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L634-L671
[ "def", "draw_3d", "(", "self", ",", "width", "=", "300", ",", "height", "=", "500", ",", "style", "=", "'stick'", ",", "Hs", "=", "True", ")", ":", "# pragma: no cover", "try", ":", "import", "py3Dmol", "from", "IPython", ".", "display", "import", "dis...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Um
r'''Internal energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current conditions.
thermo/chemical.py
def Um(self): r'''Internal energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
def Um(self): r'''Internal energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
[ "r", "Internal", "energy", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "J", "/", "mol", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1132-L1141
[ "def", "Um", "(", "self", ")", ":", "return", "self", ".", "Hm", "-", "self", ".", "P", "*", "self", ".", "Vm", "if", "(", "self", ".", "Vm", "and", "self", ".", "Hm", "is", "not", "None", ")", "else", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Am
r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current conditions.
thermo/chemical.py
def Am(self): r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
def Am(self): r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/mol]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
[ "r", "Helmholtz", "energy", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "J", "/", "mol", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1156-L1165
[ "def", "Am", "(", "self", ")", ":", "return", "self", ".", "Um", "-", "self", ".", "T", "*", "self", ".", "Sm", "if", "(", "self", ".", "Um", "is", "not", "None", "and", "self", ".", "Sm", "is", "not", "None", ")", "else", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.A
r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/kg]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current conditions.
thermo/chemical.py
def A(self): r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/kg]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
def A(self): r'''Helmholtz energy of the chemical at its current temperature and pressure, in units of [J/kg]. This property requires that :obj:`thermo.chemical.set_thermo` ran successfully to be accurate. It also depends on the molar volume of the chemical at its current ...
[ "r", "Helmholtz", "energy", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "J", "/", "kg", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1168-L1177
[ "def", "A", "(", "self", ")", ":", "return", "self", ".", "U", "-", "self", ".", "T", "*", "self", ".", "S", "if", "(", "self", ".", "U", "is", "not", "None", "and", "self", ".", "S", "is", "not", "None", ")", "else", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.charge
r'''Charge of a chemical, computed with RDKit from a chemical's SMILES. If RDKit is not available, holds None. Examples -------- >>> Chemical('sodium ion').charge 1
thermo/chemical.py
def charge(self): r'''Charge of a chemical, computed with RDKit from a chemical's SMILES. If RDKit is not available, holds None. Examples -------- >>> Chemical('sodium ion').charge 1 ''' try: if not self.rdkitmol: return charge...
def charge(self): r'''Charge of a chemical, computed with RDKit from a chemical's SMILES. If RDKit is not available, holds None. Examples -------- >>> Chemical('sodium ion').charge 1 ''' try: if not self.rdkitmol: return charge...
[ "r", "Charge", "of", "a", "chemical", "computed", "with", "RDKit", "from", "a", "chemical", "s", "SMILES", ".", "If", "RDKit", "is", "not", "available", "holds", "None", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1182-L1197
[ "def", "charge", "(", "self", ")", ":", "try", ":", "if", "not", "self", ".", "rdkitmol", ":", "return", "charge_from_formula", "(", "self", ".", "formula", ")", "else", ":", "return", "Chem", ".", "GetFormalCharge", "(", "self", ".", "rdkitmol", ")", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rdkitmol
r'''RDKit object of the chemical, without hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_.
thermo/chemical.py
def rdkitmol(self): r'''RDKit object of the chemical, without hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_. ''' if self.__rdkitmol: r...
def rdkitmol(self): r'''RDKit object of the chemical, without hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_. ''' if self.__rdkitmol: r...
[ "r", "RDKit", "object", "of", "the", "chemical", "without", "hydrogen", ".", "If", "RDKit", "is", "not", "available", "holds", "None", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1230-L1244
[ "def", "rdkitmol", "(", "self", ")", ":", "if", "self", ".", "__rdkitmol", ":", "return", "self", ".", "__rdkitmol", "else", ":", "try", ":", "self", ".", "__rdkitmol", "=", "Chem", ".", "MolFromSmiles", "(", "self", ".", "smiles", ")", "return", "self...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rdkitmol_Hs
r'''RDKit object of the chemical, with hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_.
thermo/chemical.py
def rdkitmol_Hs(self): r'''RDKit object of the chemical, with hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_. ''' if self.__rdkitmol_Hs: ...
def rdkitmol_Hs(self): r'''RDKit object of the chemical, with hydrogen. If RDKit is not available, holds None. For examples of what can be done with RDKit, see `their website <http://www.rdkit.org/docs/GettingStartedInPython.html>`_. ''' if self.__rdkitmol_Hs: ...
[ "r", "RDKit", "object", "of", "the", "chemical", "with", "hydrogen", ".", "If", "RDKit", "is", "not", "available", "holds", "None", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1247-L1261
[ "def", "rdkitmol_Hs", "(", "self", ")", ":", "if", "self", ".", "__rdkitmol_Hs", ":", "return", "self", ".", "__rdkitmol_Hs", "else", ":", "try", ":", "self", ".", "__rdkitmol_Hs", "=", "Chem", ".", "AddHs", "(", "self", ".", "rdkitmol", ")", "return", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Hill
r'''Hill formula of a compound. For a description of the Hill system, see :obj:`thermo.elements.atoms_to_Hill`. Examples -------- >>> Chemical('furfuryl alcohol').Hill 'C5H6O2'
thermo/chemical.py
def Hill(self): r'''Hill formula of a compound. For a description of the Hill system, see :obj:`thermo.elements.atoms_to_Hill`. Examples -------- >>> Chemical('furfuryl alcohol').Hill 'C5H6O2' ''' if self.__Hill: return self.__Hill els...
def Hill(self): r'''Hill formula of a compound. For a description of the Hill system, see :obj:`thermo.elements.atoms_to_Hill`. Examples -------- >>> Chemical('furfuryl alcohol').Hill 'C5H6O2' ''' if self.__Hill: return self.__Hill els...
[ "r", "Hill", "formula", "of", "a", "compound", ".", "For", "a", "description", "of", "the", "Hill", "system", "see", ":", "obj", ":", "thermo", ".", "elements", ".", "atoms_to_Hill", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1264-L1277
[ "def", "Hill", "(", "self", ")", ":", "if", "self", ".", "__Hill", ":", "return", "self", ".", "__Hill", "else", ":", "self", ".", "__Hill", "=", "atoms_to_Hill", "(", "self", ".", "atoms", ")", "return", "self", ".", "__Hill" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.atom_fractions
r'''Dictionary of atom:fractional occurence of the elements in a chemical. Useful when performing element balances. For mass-fraction occurences, see :obj:`mass_fractions`. Examples -------- >>> Chemical('Ammonium aluminium sulfate').atom_fractions {'H': 0.25, 'S': 0.125...
thermo/chemical.py
def atom_fractions(self): r'''Dictionary of atom:fractional occurence of the elements in a chemical. Useful when performing element balances. For mass-fraction occurences, see :obj:`mass_fractions`. Examples -------- >>> Chemical('Ammonium aluminium sulfate').atom_fracti...
def atom_fractions(self): r'''Dictionary of atom:fractional occurence of the elements in a chemical. Useful when performing element balances. For mass-fraction occurences, see :obj:`mass_fractions`. Examples -------- >>> Chemical('Ammonium aluminium sulfate').atom_fracti...
[ "r", "Dictionary", "of", "atom", ":", "fractional", "occurence", "of", "the", "elements", "in", "a", "chemical", ".", "Useful", "when", "performing", "element", "balances", ".", "For", "mass", "-", "fraction", "occurences", "see", ":", "obj", ":", "mass_frac...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1280-L1294
[ "def", "atom_fractions", "(", "self", ")", ":", "if", "self", ".", "__atom_fractions", ":", "return", "self", ".", "__atom_fractions", "else", ":", "self", ".", "__atom_fractions", "=", "atom_fractions", "(", "self", ".", "atoms", ")", "return", "self", ".",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.mass_fractions
r'''Dictionary of atom:mass-weighted fractional occurence of elements. Useful when performing mass balances. For atom-fraction occurences, see :obj:`atom_fractions`. Examples -------- >>> Chemical('water').mass_fractions {'H': 0.11189834407236524, 'O': 0.8881016559276347...
thermo/chemical.py
def mass_fractions(self): r'''Dictionary of atom:mass-weighted fractional occurence of elements. Useful when performing mass balances. For atom-fraction occurences, see :obj:`atom_fractions`. Examples -------- >>> Chemical('water').mass_fractions {'H': 0.11189834...
def mass_fractions(self): r'''Dictionary of atom:mass-weighted fractional occurence of elements. Useful when performing mass balances. For atom-fraction occurences, see :obj:`atom_fractions`. Examples -------- >>> Chemical('water').mass_fractions {'H': 0.11189834...
[ "r", "Dictionary", "of", "atom", ":", "mass", "-", "weighted", "fractional", "occurence", "of", "elements", ".", "Useful", "when", "performing", "mass", "balances", ".", "For", "atom", "-", "fraction", "occurences", "see", ":", "obj", ":", "atom_fractions", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1297-L1311
[ "def", "mass_fractions", "(", "self", ")", ":", "if", "self", ".", "__mass_fractions", ":", "return", "self", ".", "__mass_fractions", "else", ":", "self", ".", "__mass_fractions", "=", "mass_fractions", "(", "self", ".", "atoms", ",", "self", ".", "MW", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.legal_status
r'''Dictionary of legal status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').legal_status) {'DSL': 'LISTED', 'EINECS': 'LISTED', 'NLP': 'UNLISTED', 'SPIN': 'LISTED', 'TSCA': 'LISTED'}
thermo/chemical.py
def legal_status(self): r'''Dictionary of legal status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').legal_status) {'DSL': 'LISTED', 'EINECS': 'LISTED', 'NLP': 'UNLISTED', 'SPIN': 'LISTED', 'TSCA': 'LISTED'} ...
def legal_status(self): r'''Dictionary of legal status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').legal_status) {'DSL': 'LISTED', 'EINECS': 'LISTED', 'NLP': 'UNLISTED', 'SPIN': 'LISTED', 'TSCA': 'LISTED'} ...
[ "r", "Dictionary", "of", "legal", "status", "indicators", "for", "the", "chemical", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1314-L1330
[ "def", "legal_status", "(", "self", ")", ":", "if", "self", ".", "__legal_status", ":", "return", "self", ".", "__legal_status", "else", ":", "self", ".", "__legal_status", "=", "legal_status", "(", "self", ".", "CAS", ",", "Method", "=", "'COMBINED'", ")"...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.economic_status
r'''Dictionary of economic status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').economic_status) ["US public: {'Manufactured': 6165232.1, 'Imported': 463146.474, 'Exported': 271908.252}", u'1,000,000 - 10,000,000 tonnes per annum', u'Int...
thermo/chemical.py
def economic_status(self): r'''Dictionary of economic status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').economic_status) ["US public: {'Manufactured': 6165232.1, 'Imported': 463146.474, 'Exported': 271908.252}", u'1,000,000 - 10,000,00...
def economic_status(self): r'''Dictionary of economic status indicators for the chemical. Examples -------- >>> pprint(Chemical('benzene').economic_status) ["US public: {'Manufactured': 6165232.1, 'Imported': 463146.474, 'Exported': 271908.252}", u'1,000,000 - 10,000,00...
[ "r", "Dictionary", "of", "economic", "status", "indicators", "for", "the", "chemical", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1333-L1348
[ "def", "economic_status", "(", "self", ")", ":", "if", "self", ".", "__economic_status", ":", "return", "self", ".", "__economic_status", "else", ":", "self", ".", "__economic_status", "=", "economic_status", "(", "self", ".", "CAS", ",", "Method", "=", "'Co...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.UNIFAC_groups
r'''Dictionary of UNIFAC subgroup: count groups for the original UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_groups) {1: 2, 9: 5, 13: 1}
thermo/chemical.py
def UNIFAC_groups(self): r'''Dictionary of UNIFAC subgroup: count groups for the original UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_groups) {1: 2, 9: 5, 13: 1}...
def UNIFAC_groups(self): r'''Dictionary of UNIFAC subgroup: count groups for the original UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_groups) {1: 2, 9: 5, 13: 1}...
[ "r", "Dictionary", "of", "UNIFAC", "subgroup", ":", "count", "groups", "for", "the", "original", "UNIFAC", "subgroups", "as", "determined", "by", "DDBST", "s", "online", "service", "<http", ":", "//", "www", ".", "ddbst", ".", "com", "/", "unifacga", ".", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1352-L1369
[ "def", "UNIFAC_groups", "(", "self", ")", ":", "if", "self", ".", "__UNIFAC_groups", ":", "return", "self", ".", "__UNIFAC_groups", "else", ":", "load_group_assignments_DDBST", "(", ")", "if", "self", ".", "InChI_Key", "in", "DDBST_UNIFAC_assignments", ":", "sel...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.UNIFAC_Dortmund_groups
r'''Dictionary of Dortmund UNIFAC subgroup: count groups for the Dortmund UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_Dortmund_groups) {1: 2, 9: 5, 13: 1}
thermo/chemical.py
def UNIFAC_Dortmund_groups(self): r'''Dictionary of Dortmund UNIFAC subgroup: count groups for the Dortmund UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_Dortmund_groups) ...
def UNIFAC_Dortmund_groups(self): r'''Dictionary of Dortmund UNIFAC subgroup: count groups for the Dortmund UNIFAC subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').UNIFAC_Dortmund_groups) ...
[ "r", "Dictionary", "of", "Dortmund", "UNIFAC", "subgroup", ":", "count", "groups", "for", "the", "Dortmund", "UNIFAC", "subgroups", "as", "determined", "by", "DDBST", "s", "online", "service", "<http", ":", "//", "www", ".", "ddbst", ".", "com", "/", "unif...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1372-L1389
[ "def", "UNIFAC_Dortmund_groups", "(", "self", ")", ":", "if", "self", ".", "__UNIFAC_Dortmund_groups", ":", "return", "self", ".", "__UNIFAC_Dortmund_groups", "else", ":", "load_group_assignments_DDBST", "(", ")", "if", "self", ".", "InChI_Key", "in", "DDBST_MODIFIE...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.PSRK_groups
r'''Dictionary of PSRK subgroup: count groups for the PSRK subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').PSRK_groups) {1: 2, 9: 5, 13: 1}
thermo/chemical.py
def PSRK_groups(self): r'''Dictionary of PSRK subgroup: count groups for the PSRK subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').PSRK_groups) {1: 2, 9: 5, 13: 1} ''' ...
def PSRK_groups(self): r'''Dictionary of PSRK subgroup: count groups for the PSRK subgroups, as determined by `DDBST's online service <http://www.ddbst.com/unifacga.html>`_. Examples -------- >>> pprint(Chemical('Cumene').PSRK_groups) {1: 2, 9: 5, 13: 1} ''' ...
[ "r", "Dictionary", "of", "PSRK", "subgroup", ":", "count", "groups", "for", "the", "PSRK", "subgroups", "as", "determined", "by", "DDBST", "s", "online", "service", "<http", ":", "//", "www", ".", "ddbst", ".", "com", "/", "unifacga", ".", "html", ">", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1392-L1409
[ "def", "PSRK_groups", "(", "self", ")", ":", "if", "self", ".", "__PSRK_groups", ":", "return", "self", ".", "__PSRK_groups", "else", ":", "load_group_assignments_DDBST", "(", ")", "if", "self", ".", "InChI_Key", "in", "DDBST_PSRK_assignments", ":", "self", "....
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Hvap
r'''Enthalpy of vaporization of the chemical at its current temperature, in units of [J/kg]. This property uses the object-oriented interface :obj:`thermo.phase_change.EnthalpyVaporization`, but converts its results from molar to mass units. Examples -------- >>...
thermo/chemical.py
def Hvap(self): r'''Enthalpy of vaporization of the chemical at its current temperature, in units of [J/kg]. This property uses the object-oriented interface :obj:`thermo.phase_change.EnthalpyVaporization`, but converts its results from molar to mass units. Examples ...
def Hvap(self): r'''Enthalpy of vaporization of the chemical at its current temperature, in units of [J/kg]. This property uses the object-oriented interface :obj:`thermo.phase_change.EnthalpyVaporization`, but converts its results from molar to mass units. Examples ...
[ "r", "Enthalpy", "of", "vaporization", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "kg", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1517-L1533
[ "def", "Hvap", "(", "self", ")", ":", "Hvamp", "=", "self", ".", "Hvapm", "if", "Hvamp", ":", "return", "property_molar_to_mass", "(", "Hvamp", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cps
r'''Solid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.heat_capacity.HeatCapa...
thermo/chemical.py
def Cps(self): r'''Solid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo...
def Cps(self): r'''Solid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo...
[ "r", "Solid", "-", "phase", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "kg", "/", "K", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "temperatures", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1604-L1625
[ "def", "Cps", "(", "self", ")", ":", "Cpsm", "=", "self", ".", "HeatCapacitySolid", "(", "self", ".", "T", ")", "if", "Cpsm", ":", "return", "property_molar_to_mass", "(", "Cpsm", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cpl
r'''Liquid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.heat_capacity.HeatCap...
thermo/chemical.py
def Cpl(self): r'''Liquid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`therm...
def Cpl(self): r'''Liquid-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`therm...
[ "r", "Liquid", "-", "phase", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "kg", "/", "K", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "temperatures", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1628-L1652
[ "def", "Cpl", "(", "self", ")", ":", "Cplm", "=", "self", ".", "HeatCapacityLiquid", "(", "self", ".", "T", ")", "if", "Cplm", ":", "return", "property_molar_to_mass", "(", "Cplm", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cpg
r'''Gas-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.heat_capacity.HeatCapaci...
thermo/chemical.py
def Cpg(self): r'''Gas-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.h...
def Cpg(self): r'''Gas-phase heat capacity of the chemical at its current temperature, in units of [J/kg/K]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.h...
[ "r", "Gas", "-", "phase", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "kg", "/", "K", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "temperatures", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1655-L1673
[ "def", "Cpg", "(", "self", ")", ":", "Cpgm", "=", "self", ".", "HeatCapacityGas", "(", "self", ".", "T", ")", "if", "Cpgm", ":", "return", "property_molar_to_mass", "(", "Cpgm", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cvgm
r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/mol/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- >>> w = Chemical('wat...
thermo/chemical.py
def Cvgm(self): r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/mol/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- ...
def Cvgm(self): r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/mol/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- ...
[ "r", "Gas", "-", "phase", "ideal", "-", "gas", "contant", "-", "volume", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "mol", "/", "K", "]", ".", "Subtracts", "R", "from", "the...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1676-L1691
[ "def", "Cvgm", "(", "self", ")", ":", "Cpgm", "=", "self", ".", "HeatCapacityGas", "(", "self", ".", "T", ")", "if", "Cpgm", ":", "return", "Cpgm", "-", "R", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cvg
r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/kg/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- >>> w = Chemical('wate...
thermo/chemical.py
def Cvg(self): r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/kg/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- ...
def Cvg(self): r'''Gas-phase ideal-gas contant-volume heat capacity of the chemical at its current temperature, in units of [J/kg/K]. Subtracts R from the ideal-gas heat capacity; does not include pressure-compensation from an equation of state. Examples -------- ...
[ "r", "Gas", "-", "phase", "ideal", "-", "gas", "contant", "-", "volume", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "J", "/", "kg", "/", "K", "]", ".", "Subtracts", "R", "from", "the"...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1694-L1709
[ "def", "Cvg", "(", "self", ")", ":", "Cvgm", "=", "self", ".", "Cvgm", "if", "Cvgm", ":", "return", "property_molar_to_mass", "(", "Cvgm", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.isentropic_exponent
r'''Gas-phase ideal-gas isentropic exponent of the chemical at its current temperature, [dimensionless]. Does not include pressure-compensation from an equation of state. Examples -------- >>> Chemical('hydrogen').isentropic_exponent 1.405237786321222
thermo/chemical.py
def isentropic_exponent(self): r'''Gas-phase ideal-gas isentropic exponent of the chemical at its current temperature, [dimensionless]. Does not include pressure-compensation from an equation of state. Examples -------- >>> Chemical('hydrogen').isentropic_exponent ...
def isentropic_exponent(self): r'''Gas-phase ideal-gas isentropic exponent of the chemical at its current temperature, [dimensionless]. Does not include pressure-compensation from an equation of state. Examples -------- >>> Chemical('hydrogen').isentropic_exponent ...
[ "r", "Gas", "-", "phase", "ideal", "-", "gas", "isentropic", "exponent", "of", "the", "chemical", "at", "its", "current", "temperature", "[", "dimensionless", "]", ".", "Does", "not", "include", "pressure", "-", "compensation", "from", "an", "equation", "of"...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1712-L1725
[ "def", "isentropic_exponent", "(", "self", ")", ":", "Cp", ",", "Cv", "=", "self", ".", "Cpg", ",", "self", ".", "Cvg", "if", "all", "(", "(", "Cp", ",", "Cv", ")", ")", ":", "return", "isentropic_exponent", "(", "Cp", ",", "Cv", ")", "return", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rhos
r'''Solid-phase mass density of the chemical at its current temperature, in units of [kg/m^3]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo.volume.VolumeSolid`; ea...
thermo/chemical.py
def rhos(self): r'''Solid-phase mass density of the chemical at its current temperature, in units of [kg/m^3]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo...
def rhos(self): r'''Solid-phase mass density of the chemical at its current temperature, in units of [kg/m^3]. For calculation of this property at other temperatures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo...
[ "r", "Solid", "-", "phase", "mass", "density", "of", "the", "chemical", "at", "its", "current", "temperature", "in", "units", "of", "[", "kg", "/", "m^3", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "temperatures", "or", "spe...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1779-L1796
[ "def", "rhos", "(", "self", ")", ":", "Vms", "=", "self", ".", "Vms", "if", "Vms", ":", "return", "Vm_to_rho", "(", "Vms", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rhol
r'''Liquid-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures and pressures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`th...
thermo/chemical.py
def rhol(self): r'''Liquid-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures and pressures, or specifying manually the method used to calculate it, and more - see the object oriented ...
def rhol(self): r'''Liquid-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures and pressures, or specifying manually the method used to calculate it, and more - see the object oriented ...
[ "r", "Liquid", "-", "phase", "mass", "density", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "kg", "/", "m^3", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "tempe...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1799-L1816
[ "def", "rhol", "(", "self", ")", ":", "Vml", "=", "self", ".", "Vml", "if", "Vml", ":", "return", "Vm_to_rho", "(", "Vml", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rhog
r'''Gas-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures or pressures, or specifying manually the method used to calculate it, and more - see the object oriented interface :obj:`thermo...
thermo/chemical.py
def rhog(self): r'''Gas-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures or pressures, or specifying manually the method used to calculate it, and more - see the object oriented interf...
def rhog(self): r'''Gas-phase mass density of the chemical at its current temperature and pressure, in units of [kg/m^3]. For calculation of this property at other temperatures or pressures, or specifying manually the method used to calculate it, and more - see the object oriented interf...
[ "r", "Gas", "-", "phase", "mass", "density", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "kg", "/", "m^3", "]", ".", "For", "calculation", "of", "this", "property", "at", "other", "temperat...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1819-L1850
[ "def", "rhog", "(", "self", ")", ":", "Vmg", "=", "self", ".", "Vmg", "if", "Vmg", ":", "return", "Vm_to_rho", "(", "Vmg", ",", "self", ".", "MW", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Zs
r'''Compressibility factor of the chemical in the solid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeSolid` to perform the actual calculation of molar volume. Examples -------- ...
thermo/chemical.py
def Zs(self): r'''Compressibility factor of the chemical in the solid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeSolid` to perform the actual calculation of molar volume. Examples ...
def Zs(self): r'''Compressibility factor of the chemical in the solid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeSolid` to perform the actual calculation of molar volume. Examples ...
[ "r", "Compressibility", "factor", "of", "the", "chemical", "in", "the", "solid", "phase", "at", "the", "current", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1910-L1926
[ "def", "Zs", "(", "self", ")", ":", "Vms", "=", "self", ".", "Vms", "if", "Vms", ":", "return", "Z", "(", "self", ".", "T", ",", "self", ".", "P", ",", "Vms", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Zl
r'''Compressibility factor of the chemical in the liquid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeLiquid` to perform the actual calculation of molar volume. Examples -------- ...
thermo/chemical.py
def Zl(self): r'''Compressibility factor of the chemical in the liquid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeLiquid` to perform the actual calculation of molar volume. Example...
def Zl(self): r'''Compressibility factor of the chemical in the liquid phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeLiquid` to perform the actual calculation of molar volume. Example...
[ "r", "Compressibility", "factor", "of", "the", "chemical", "in", "the", "liquid", "phase", "at", "the", "current", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1929-L1945
[ "def", "Zl", "(", "self", ")", ":", "Vml", "=", "self", ".", "Vml", "if", "Vml", ":", "return", "Z", "(", "self", ".", "T", ",", "self", ".", "P", ",", "Vml", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Zg
r'''Compressibility factor of the chemical in the gas phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeGas` to perform the actual calculation of molar volume. Examples -------- >...
thermo/chemical.py
def Zg(self): r'''Compressibility factor of the chemical in the gas phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeGas` to perform the actual calculation of molar volume. Examples ...
def Zg(self): r'''Compressibility factor of the chemical in the gas phase at the current temperature and pressure, [dimensionless]. Utilizes the object oriented interface and :obj:`thermo.volume.VolumeGas` to perform the actual calculation of molar volume. Examples ...
[ "r", "Compressibility", "factor", "of", "the", "chemical", "in", "the", "gas", "phase", "at", "the", "current", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L1948-L1964
[ "def", "Zg", "(", "self", ")", ":", "Vmg", "=", "self", ".", "Vmg", "if", "Vmg", ":", "return", "Z", "(", "self", ".", "T", ",", "self", ".", "P", ",", "Vmg", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.SGg
r'''Specific gravity of the gas phase of the chemical, [dimensionless]. The reference condition is air at 15.6 °C (60 °F) and 1 atm (rho=1.223 kg/m^3). The definition for gases uses the compressibility factor of the reference gas and the chemical both at the reference conditions, not th...
thermo/chemical.py
def SGg(self): r'''Specific gravity of the gas phase of the chemical, [dimensionless]. The reference condition is air at 15.6 °C (60 °F) and 1 atm (rho=1.223 kg/m^3). The definition for gases uses the compressibility factor of the reference gas and the chemical both at the reference ...
def SGg(self): r'''Specific gravity of the gas phase of the chemical, [dimensionless]. The reference condition is air at 15.6 °C (60 °F) and 1 atm (rho=1.223 kg/m^3). The definition for gases uses the compressibility factor of the reference gas and the chemical both at the reference ...
[ "r", "Specific", "gravity", "of", "the", "gas", "phase", "of", "the", "chemical", "[", "dimensionless", "]", ".", "The", "reference", "condition", "is", "air", "at", "15", ".", "6", "°C", "(", "60", "°F", ")", "and", "1", "atm", "(", "rho", "=", "1...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2004-L2020
[ "def", "SGg", "(", "self", ")", ":", "Vmg", "=", "self", ".", "VolumeGas", "(", "T", "=", "288.70555555555552", ",", "P", "=", "101325", ")", "if", "Vmg", ":", "rho", "=", "Vm_to_rho", "(", "Vmg", ",", "self", ".", "MW", ")", "return", "SG", "(",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.API
r'''API gravity of the liquid phase of the chemical, [degrees]. The reference condition is water at 15.6 °C (60 °F) and 1 atm (rho=999.016 kg/m^3, standardized). Examples -------- >>> Chemical('water').API 9.999752435378895
thermo/chemical.py
def API(self): r'''API gravity of the liquid phase of the chemical, [degrees]. The reference condition is water at 15.6 °C (60 °F) and 1 atm (rho=999.016 kg/m^3, standardized). Examples -------- >>> Chemical('water').API 9.999752435378895 '''...
def API(self): r'''API gravity of the liquid phase of the chemical, [degrees]. The reference condition is water at 15.6 °C (60 °F) and 1 atm (rho=999.016 kg/m^3, standardized). Examples -------- >>> Chemical('water').API 9.999752435378895 '''...
[ "r", "API", "gravity", "of", "the", "liquid", "phase", "of", "the", "chemical", "[", "degrees", "]", ".", "The", "reference", "condition", "is", "water", "at", "15", ".", "6", "°C", "(", "60", "°F", ")", "and", "1", "atm", "(", "rho", "=", "999", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2023-L2037
[ "def", "API", "(", "self", ")", ":", "Vml", "=", "self", ".", "VolumeLiquid", "(", "T", "=", "288.70555555555552", ",", "P", "=", "101325", ")", "if", "Vml", ":", "rho", "=", "Vm_to_rho", "(", "Vml", ",", "self", ".", "MW", ")", "sg", "=", "SG", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Bvirial
r'''Second virial coefficient of the gas phase of the chemical at its current temperature and pressure, in units of [mol/m^3]. This property uses the object-oriented interface :obj:`thermo.volume.VolumeGas`, converting its result with :obj:`thermo.utils.B_from_Z`. Examples ...
thermo/chemical.py
def Bvirial(self): r'''Second virial coefficient of the gas phase of the chemical at its current temperature and pressure, in units of [mol/m^3]. This property uses the object-oriented interface :obj:`thermo.volume.VolumeGas`, converting its result with :obj:`thermo.utils.B_from...
def Bvirial(self): r'''Second virial coefficient of the gas phase of the chemical at its current temperature and pressure, in units of [mol/m^3]. This property uses the object-oriented interface :obj:`thermo.volume.VolumeGas`, converting its result with :obj:`thermo.utils.B_from...
[ "r", "Second", "virial", "coefficient", "of", "the", "gas", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "mol", "/", "m^3", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2040-L2055
[ "def", "Bvirial", "(", "self", ")", ":", "if", "self", ".", "Vmg", ":", "return", "B_from_Z", "(", "self", ".", "Zg", ",", "self", ".", "T", ",", "self", ".", "P", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.isobaric_expansion_l
r'''Isobaric (constant-pressure) expansion of the liquid phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-derivative method of :obj:`thermo.v...
thermo/chemical.py
def isobaric_expansion_l(self): r'''Isobaric (constant-pressure) expansion of the liquid phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-der...
def isobaric_expansion_l(self): r'''Isobaric (constant-pressure) expansion of the liquid phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-der...
[ "r", "Isobaric", "(", "constant", "-", "pressure", ")", "expansion", "of", "the", "liquid", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "1", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2058-L2077
[ "def", "isobaric_expansion_l", "(", "self", ")", ":", "dV_dT", "=", "self", ".", "VolumeLiquid", ".", "TP_dependent_property_derivative_T", "(", "self", ".", "T", ",", "self", ".", "P", ")", "Vm", "=", "self", ".", "Vml", "if", "dV_dT", "and", "Vm", ":",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.isobaric_expansion_g
r'''Isobaric (constant-pressure) expansion of the gas phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-derivative method of :obj:`thermo.Volu...
thermo/chemical.py
def isobaric_expansion_g(self): r'''Isobaric (constant-pressure) expansion of the gas phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-deriva...
def isobaric_expansion_g(self): r'''Isobaric (constant-pressure) expansion of the gas phase of the chemical at its current temperature and pressure, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Utilizes the temperature-deriva...
[ "r", "Isobaric", "(", "constant", "-", "pressure", ")", "expansion", "of", "the", "gas", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "1", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2080-L2099
[ "def", "isobaric_expansion_g", "(", "self", ")", ":", "dV_dT", "=", "self", ".", "VolumeGas", ".", "TP_dependent_property_derivative_T", "(", "self", ".", "T", ",", "self", ".", "P", ")", "Vm", "=", "self", ".", "Vmg", "if", "dV_dT", "and", "Vm", ":", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.JTl
r'''Joule Thomson coefficient of the chemical in the liquid phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)_P - V\right] ...
thermo/chemical.py
def JTl(self): r'''Joule Thomson coefficient of the chemical in the liquid phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\rig...
def JTl(self): r'''Joule Thomson coefficient of the chemical in the liquid phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\rig...
[ "r", "Joule", "Thomson", "coefficient", "of", "the", "chemical", "in", "the", "liquid", "phase", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "K", "/", "Pa", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2226-L2248
[ "def", "JTl", "(", "self", ")", ":", "Vml", ",", "Cplm", ",", "isobaric_expansion_l", "=", "self", ".", "Vml", ",", "self", ".", "Cplm", ",", "self", ".", "isobaric_expansion_l", "if", "all", "(", "(", "Vml", ",", "Cplm", ",", "isobaric_expansion_l", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.JTg
r'''Joule Thomson coefficient of the chemical in the gas phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)_P - V\right] ...
thermo/chemical.py
def JTg(self): r'''Joule Thomson coefficient of the chemical in the gas phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)...
def JTg(self): r'''Joule Thomson coefficient of the chemical in the gas phase at its current temperature and pressure, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)...
[ "r", "Joule", "Thomson", "coefficient", "of", "the", "chemical", "in", "the", "gas", "phase", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "K", "/", "Pa", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2251-L2273
[ "def", "JTg", "(", "self", ")", ":", "Vmg", ",", "Cpgm", ",", "isobaric_expansion_g", "=", "self", ".", "Vmg", ",", "self", ".", "Cpgm", ",", "self", ".", "isobaric_expansion_g", "if", "all", "(", "(", "Vmg", ",", "Cpgm", ",", "isobaric_expansion_g", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.nul
r'''Kinematic viscosity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.VolumeLiquid`, :...
thermo/chemical.py
def nul(self): r'''Kinematic viscosity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.V...
def nul(self): r'''Kinematic viscosity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.V...
[ "r", "Kinematic", "viscosity", "of", "the", "liquid", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2276-L2296
[ "def", "nul", "(", "self", ")", ":", "mul", ",", "rhol", "=", "self", ".", "mul", ",", "self", ".", "rhol", "if", "all", "(", "[", "mul", ",", "rhol", "]", ")", ":", "return", "nu_mu_converter", "(", "mu", "=", "mul", ",", "rho", "=", "rhol", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.nug
r'''Kinematic viscosity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.VolumeGas`, :obj:`t...
thermo/chemical.py
def nug(self): r'''Kinematic viscosity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.Volu...
def nug(self): r'''Kinematic viscosity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.Volu...
[ "r", "Kinematic", "viscosity", "of", "the", "gas", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2299-L2319
[ "def", "nug", "(", "self", ")", ":", "mug", ",", "rhog", "=", "self", ".", "mug", ",", "self", ".", "rhog", "if", "all", "(", "[", "mug", ",", "rhog", "]", ")", ":", "return", "nu_mu_converter", "(", "mu", "=", "mug", ",", "rho", "=", "rhog", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.alphal
r'''Thermal diffusivity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.VolumeLiquid`, ...
thermo/chemical.py
def alphal(self): r'''Thermal diffusivity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.v...
def alphal(self): r'''Thermal diffusivity of the liquid phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.v...
[ "r", "Thermal", "diffusivity", "of", "the", "liquid", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2322-L2343
[ "def", "alphal", "(", "self", ")", ":", "kl", ",", "rhol", ",", "Cpl", "=", "self", ".", "kl", ",", "self", ".", "rhol", ",", "self", ".", "Cpl", "if", "all", "(", "[", "kl", ",", "rhol", ",", "Cpl", "]", ")", ":", "return", "thermal_diffusivit...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.alphag
r'''Thermal diffusivity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volume.VolumeGas`, :ob...
thermo/chemical.py
def alphag(self): r'''Thermal diffusivity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volu...
def alphag(self): r'''Thermal diffusivity of the gas phase of the chemical at its current temperature and pressure, in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.volu...
[ "r", "Thermal", "diffusivity", "of", "the", "gas", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2346-L2367
[ "def", "alphag", "(", "self", ")", ":", "kg", ",", "rhog", ",", "Cpg", "=", "self", ".", "kg", ",", "self", ".", "rhog", ",", "self", ".", "Cpg", "if", "all", "(", "[", "kg", ",", "rhog", ",", "Cpg", "]", ")", ":", "return", "thermal_diffusivit...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Prl
r'''Prandtl number of the liquid phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.ViscosityLiquid`, :obj...
thermo/chemical.py
def Prl(self): r'''Prandtl number of the liquid phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.Viscosi...
def Prl(self): r'''Prandtl number of the liquid phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.Viscosi...
[ "r", "Prandtl", "number", "of", "the", "liquid", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2370-L2391
[ "def", "Prl", "(", "self", ")", ":", "Cpl", ",", "mul", ",", "kl", "=", "self", ".", "Cpl", ",", "self", ".", "mul", ",", "self", ".", "kl", "if", "all", "(", "[", "Cpl", ",", "mul", ",", "kl", "]", ")", ":", "return", "Prandtl", "(", "Cp",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Prg
r'''Prandtl number of the gas phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.ViscosityGas`, :obj:`ther...
thermo/chemical.py
def Prg(self): r'''Prandtl number of the gas phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.ViscosityG...
def Prg(self): r'''Prandtl number of the gas phase of the chemical at its current temperature and pressure, [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Utilizes the temperature and pressure dependent object oriented interfaces :obj:`thermo.viscosity.ViscosityG...
[ "r", "Prandtl", "number", "of", "the", "gas", "phase", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2394-L2415
[ "def", "Prg", "(", "self", ")", ":", "Cpg", ",", "mug", ",", "kg", "=", "self", ".", "Cpg", ",", "self", ".", "mug", ",", "self", ".", "kg", "if", "all", "(", "[", "Cpg", ",", "mug", ",", "kg", "]", ")", ":", "return", "Prandtl", "(", "Cp",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.solubility_parameter
r'''Solubility parameter of the chemical at its current temperature and pressure, in units of [Pa^0.5]. .. math:: \delta = \sqrt{\frac{\Delta H_{vap} - RT}{V_m}} Calculated based on enthalpy of vaporization and molar volume. Normally calculated at STP. For uses of this prop...
thermo/chemical.py
def solubility_parameter(self): r'''Solubility parameter of the chemical at its current temperature and pressure, in units of [Pa^0.5]. .. math:: \delta = \sqrt{\frac{\Delta H_{vap} - RT}{V_m}} Calculated based on enthalpy of vaporization and molar volume. Normally ...
def solubility_parameter(self): r'''Solubility parameter of the chemical at its current temperature and pressure, in units of [Pa^0.5]. .. math:: \delta = \sqrt{\frac{\Delta H_{vap} - RT}{V_m}} Calculated based on enthalpy of vaporization and molar volume. Normally ...
[ "r", "Solubility", "parameter", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "Pa^0", ".", "5", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2418-L2436
[ "def", "solubility_parameter", "(", "self", ")", ":", "return", "solubility_parameter", "(", "T", "=", "self", ".", "T", ",", "Hvapm", "=", "self", ".", "Hvapm", ",", "Vml", "=", "self", ".", "Vml", ",", "Method", "=", "self", ".", "solubility_parameter_...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Parachor
r'''Parachor of the chemical at its current temperature and pressure, in units of [N^0.25*m^2.75/mol]. .. math:: P = \frac{\sigma^{0.25} MW}{\rho_L - \rho_V} Calculated based on surface tension, density of the liquid and gas phase, and molecular weight. For uses of this pro...
thermo/chemical.py
def Parachor(self): r'''Parachor of the chemical at its current temperature and pressure, in units of [N^0.25*m^2.75/mol]. .. math:: P = \frac{\sigma^{0.25} MW}{\rho_L - \rho_V} Calculated based on surface tension, density of the liquid and gas phase, and molecular ...
def Parachor(self): r'''Parachor of the chemical at its current temperature and pressure, in units of [N^0.25*m^2.75/mol]. .. math:: P = \frac{\sigma^{0.25} MW}{\rho_L - \rho_V} Calculated based on surface tension, density of the liquid and gas phase, and molecular ...
[ "r", "Parachor", "of", "the", "chemical", "at", "its", "current", "temperature", "and", "pressure", "in", "units", "of", "[", "N^0", ".", "25", "*", "m^2", ".", "75", "/", "mol", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2439-L2458
[ "def", "Parachor", "(", "self", ")", ":", "sigma", ",", "rhol", ",", "rhog", "=", "self", ".", "sigma", ",", "self", ".", "rhol", ",", "self", ".", "rhog", "if", "all", "(", "(", "sigma", ",", "rhol", ",", "rhog", ",", "self", ".", "MW", ")", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cp
r'''Mass heat capacity of the chemical at its current phase and temperature, in units of [J/kg/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.heat_capacity.HeatCapacityGa...
thermo/chemical.py
def Cp(self): r'''Mass heat capacity of the chemical at its current phase and temperature, in units of [J/kg/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.heat_c...
def Cp(self): r'''Mass heat capacity of the chemical at its current phase and temperature, in units of [J/kg/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.heat_c...
[ "r", "Mass", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "in", "units", "of", "[", "J", "/", "kg", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2463-L2482
[ "def", "Cp", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "s", "=", "self", ".", "Cps", ",", "l", "=", "self", ".", "Cpl", ",", "g", "=", "self", ".", "Cpg", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Cpm
r'''Molar heat capacity of the chemical at its current phase and temperature, in units of [J/mol/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.heat_capacity.HeatCapacity...
thermo/chemical.py
def Cpm(self): r'''Molar heat capacity of the chemical at its current phase and temperature, in units of [J/mol/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.hea...
def Cpm(self): r'''Molar heat capacity of the chemical at its current phase and temperature, in units of [J/mol/K]. Utilizes the object oriented interfaces :obj:`thermo.heat_capacity.HeatCapacitySolid`, :obj:`thermo.heat_capacity.HeatCapacityLiquid`, and :obj:`thermo.hea...
[ "r", "Molar", "heat", "capacity", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "in", "units", "of", "[", "J", "/", "mol", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2485-L2502
[ "def", "Cpm", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "s", "=", "self", ".", "Cpsm", ",", "l", "=", "self", ".", "Cplm", ",", "g", "=", "self", ".", "Cpgm", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Vm
r'''Molar volume of the chemical at its current phase and temperature and pressure, in units of [m^3/mol]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to perform the actua...
thermo/chemical.py
def Vm(self): r'''Molar volume of the chemical at its current phase and temperature and pressure, in units of [m^3/mol]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to per...
def Vm(self): r'''Molar volume of the chemical at its current phase and temperature and pressure, in units of [m^3/mol]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to per...
[ "r", "Molar", "volume", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "and", "pressure", "in", "units", "of", "[", "m^3", "/", "mol", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2505-L2520
[ "def", "Vm", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "s", "=", "self", ".", "Vms", ",", "l", "=", "self", ".", "Vml", ",", "g", "=", "self", ".", "Vmg", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.rho
r'''Mass density of the chemical at its current phase and temperature and pressure, in units of [kg/m^3]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to perform the actual...
thermo/chemical.py
def rho(self): r'''Mass density of the chemical at its current phase and temperature and pressure, in units of [kg/m^3]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to per...
def rho(self): r'''Mass density of the chemical at its current phase and temperature and pressure, in units of [kg/m^3]. Utilizes the object oriented interfaces :obj:`thermo.volume.VolumeSolid`, :obj:`thermo.volume.VolumeLiquid`, and :obj:`thermo.volume.VolumeGas` to per...
[ "r", "Mass", "density", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "and", "pressure", "in", "units", "of", "[", "kg", "/", "m^3", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2523-L2539
[ "def", "rho", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "s", "=", "self", ".", "rhos", ",", "l", "=", "self", ".", "rhol", ",", "g", "=", "self", ".", "rhog", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Z
r'''Compressibility factor of the chemical at its current phase and temperature and pressure, [dimensionless]. Examples -------- >>> Chemical('MTBE', T=900, P=1E-2).Z 0.9999999999079768
thermo/chemical.py
def Z(self): r'''Compressibility factor of the chemical at its current phase and temperature and pressure, [dimensionless]. Examples -------- >>> Chemical('MTBE', T=900, P=1E-2).Z 0.9999999999079768 ''' Vm = self.Vm if Vm: return Z(sel...
def Z(self): r'''Compressibility factor of the chemical at its current phase and temperature and pressure, [dimensionless]. Examples -------- >>> Chemical('MTBE', T=900, P=1E-2).Z 0.9999999999079768 ''' Vm = self.Vm if Vm: return Z(sel...
[ "r", "Compressibility", "factor", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "and", "pressure", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2561-L2573
[ "def", "Z", "(", "self", ")", ":", "Vm", "=", "self", ".", "Vm", "if", "Vm", ":", "return", "Z", "(", "self", ".", "T", ",", "self", ".", "P", ",", "Vm", ")", "return", "None" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.SG
r'''Specific gravity of the chemical, [dimensionless]. For gas-phase conditions, this is calculated at 15.6 °C (60 °F) and 1 atm for the chemical and the reference fluid, air. For liquid and solid phase conditions, this is calculated based on a reference fluid of water at 4°...
thermo/chemical.py
def SG(self): r'''Specific gravity of the chemical, [dimensionless]. For gas-phase conditions, this is calculated at 15.6 °C (60 °F) and 1 atm for the chemical and the reference fluid, air. For liquid and solid phase conditions, this is calculated based on a referenc...
def SG(self): r'''Specific gravity of the chemical, [dimensionless]. For gas-phase conditions, this is calculated at 15.6 °C (60 °F) and 1 atm for the chemical and the reference fluid, air. For liquid and solid phase conditions, this is calculated based on a referenc...
[ "r", "Specific", "gravity", "of", "the", "chemical", "[", "dimensionless", "]", ".", "For", "gas", "-", "phase", "conditions", "this", "is", "calculated", "at", "15", ".", "6", "°C", "(", "60", "°F", ")", "and", "1", "atm", "for", "the", "chemical", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2576-L2600
[ "def", "SG", "(", "self", ")", ":", "phase", "=", "self", ".", "phase", "if", "phase", "==", "'l'", ":", "return", "self", ".", "SGl", "elif", "phase", "==", "'s'", ":", "return", "self", ".", "SGs", "elif", "phase", "==", "'g'", ":", "return", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.isobaric_expansion
r'''Isobaric (constant-pressure) expansion of the chemical at its current phase and temperature, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Examples -------- Radical change in value just above and below the critica...
thermo/chemical.py
def isobaric_expansion(self): r'''Isobaric (constant-pressure) expansion of the chemical at its current phase and temperature, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Examples -------- Radical change in ...
def isobaric_expansion(self): r'''Isobaric (constant-pressure) expansion of the chemical at its current phase and temperature, in units of [1/K]. .. math:: \beta = \frac{1}{V}\left(\frac{\partial V}{\partial T} \right)_P Examples -------- Radical change in ...
[ "r", "Isobaric", "(", "constant", "-", "pressure", ")", "expansion", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "in", "units", "of", "[", "1", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2603-L2621
[ "def", "isobaric_expansion", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "isobaric_expansion_l", ",", "g", "=", "self", ".", "isobaric_expansion_g", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.JT
r'''Joule Thomson coefficient of the chemical at its current phase and temperature, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)_P - V\right] = \frac{V}{C_p}\l...
thermo/chemical.py
def JT(self): r'''Joule Thomson coefficient of the chemical at its current phase and temperature, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)_P - V\right] ...
def JT(self): r'''Joule Thomson coefficient of the chemical at its current phase and temperature, in units of [K/Pa]. .. math:: \mu_{JT} = \left(\frac{\partial T}{\partial P}\right)_H = \frac{1}{C_p} \left[T \left(\frac{\partial V}{\partial T}\right)_P - V\right] ...
[ "r", "Joule", "Thomson", "coefficient", "of", "the", "chemical", "at", "its", "current", "phase", "and", "temperature", "in", "units", "of", "[", "K", "/", "Pa", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2624-L2638
[ "def", "JT", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "JTl", ",", "g", "=", "self", ".", "JTg", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.mu
r'''Viscosity of the chemical at its current phase, temperature, and pressure in units of [Pa*s]. Utilizes the object oriented interfaces :obj:`thermo.viscosity.ViscosityLiquid` and :obj:`thermo.viscosity.ViscosityGas` to perform the actual calculation of each property. ...
thermo/chemical.py
def mu(self): r'''Viscosity of the chemical at its current phase, temperature, and pressure in units of [Pa*s]. Utilizes the object oriented interfaces :obj:`thermo.viscosity.ViscosityLiquid` and :obj:`thermo.viscosity.ViscosityGas` to perform the actual calculation of e...
def mu(self): r'''Viscosity of the chemical at its current phase, temperature, and pressure in units of [Pa*s]. Utilizes the object oriented interfaces :obj:`thermo.viscosity.ViscosityLiquid` and :obj:`thermo.viscosity.ViscosityGas` to perform the actual calculation of e...
[ "r", "Viscosity", "of", "the", "chemical", "at", "its", "current", "phase", "temperature", "and", "pressure", "in", "units", "of", "[", "Pa", "*", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2641-L2657
[ "def", "mu", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "mul", ",", "g", "=", "self", ".", "mug", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.k
r'''Thermal conductivity of the chemical at its current phase, temperature, and pressure in units of [W/m/K]. Utilizes the object oriented interfaces :obj:`thermo.thermal_conductivity.ThermalConductivityLiquid` and :obj:`thermo.thermal_conductivity.ThermalConductivityGas` to perform ...
thermo/chemical.py
def k(self): r'''Thermal conductivity of the chemical at its current phase, temperature, and pressure in units of [W/m/K]. Utilizes the object oriented interfaces :obj:`thermo.thermal_conductivity.ThermalConductivityLiquid` and :obj:`thermo.thermal_conductivity.ThermalConductivi...
def k(self): r'''Thermal conductivity of the chemical at its current phase, temperature, and pressure in units of [W/m/K]. Utilizes the object oriented interfaces :obj:`thermo.thermal_conductivity.ThermalConductivityLiquid` and :obj:`thermo.thermal_conductivity.ThermalConductivi...
[ "r", "Thermal", "conductivity", "of", "the", "chemical", "at", "its", "current", "phase", "temperature", "and", "pressure", "in", "units", "of", "[", "W", "/", "m", "/", "K", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2660-L2676
[ "def", "k", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "s", "=", "None", ",", "l", "=", "self", ".", "kl", ",", "g", "=", "self", ".", "kg", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.nu
r'''Kinematic viscosity of the the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Examples -------- >>> Chemical('argon').nu 1.3846930410865003e-05
thermo/chemical.py
def nu(self): r'''Kinematic viscosity of the the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Examples -------- >>> Chemical('argon').nu 1.3846930410865003e-05 ''' retu...
def nu(self): r'''Kinematic viscosity of the the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \nu = \frac{\mu}{\rho} Examples -------- >>> Chemical('argon').nu 1.3846930410865003e-05 ''' retu...
[ "r", "Kinematic", "viscosity", "of", "the", "the", "chemical", "at", "its", "current", "temperature", "pressure", "and", "phase", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2679-L2691
[ "def", "nu", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "nul", ",", "g", "=", "self", ".", "nug", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.alpha
r'''Thermal diffusivity of the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Examples -------- >>> Chemical('furfural').alpha 8.696537158635412e-08
thermo/chemical.py
def alpha(self): r'''Thermal diffusivity of the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Examples -------- >>> Chemical('furfural').alpha 8.696537158635412e-08 ''' ...
def alpha(self): r'''Thermal diffusivity of the chemical at its current temperature, pressure, and phase in units of [m^2/s]. .. math:: \alpha = \frac{k}{\rho Cp} Examples -------- >>> Chemical('furfural').alpha 8.696537158635412e-08 ''' ...
[ "r", "Thermal", "diffusivity", "of", "the", "chemical", "at", "its", "current", "temperature", "pressure", "and", "phase", "in", "units", "of", "[", "m^2", "/", "s", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2694-L2706
[ "def", "alpha", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "alphal", ",", "g", "=", "self", ".", "alphag", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Pr
r'''Prandtl number of the chemical at its current temperature, pressure, and phase; [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Examples -------- >>> Chemical('acetone').Pr 4.183039103542709
thermo/chemical.py
def Pr(self): r'''Prandtl number of the chemical at its current temperature, pressure, and phase; [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Examples -------- >>> Chemical('acetone').Pr 4.183039103542709 ''' return phase_select...
def Pr(self): r'''Prandtl number of the chemical at its current temperature, pressure, and phase; [dimensionless]. .. math:: Pr = \frac{C_p \mu}{k} Examples -------- >>> Chemical('acetone').Pr 4.183039103542709 ''' return phase_select...
[ "r", "Prandtl", "number", "of", "the", "chemical", "at", "its", "current", "temperature", "pressure", "and", "phase", ";", "[", "dimensionless", "]", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2709-L2721
[ "def", "Pr", "(", "self", ")", ":", "return", "phase_select_property", "(", "phase", "=", "self", ".", "phase", ",", "l", "=", "self", ".", "Prl", ",", "g", "=", "self", ".", "Prg", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Chemical.Poynting
r'''Poynting correction factor [dimensionless] for use in phase equilibria methods based on activity coefficients or other reference states. Performs the shortcut calculation assuming molar volume is independent of pressure. .. math:: \text{Poy} = \exp\left[\frac{V_l (P-...
thermo/chemical.py
def Poynting(self): r'''Poynting correction factor [dimensionless] for use in phase equilibria methods based on activity coefficients or other reference states. Performs the shortcut calculation assuming molar volume is independent of pressure. .. math:: \text{Poy...
def Poynting(self): r'''Poynting correction factor [dimensionless] for use in phase equilibria methods based on activity coefficients or other reference states. Performs the shortcut calculation assuming molar volume is independent of pressure. .. math:: \text{Poy...
[ "r", "Poynting", "correction", "factor", "[", "dimensionless", "]", "for", "use", "in", "phase", "equilibria", "methods", "based", "on", "activity", "coefficients", "or", "other", "reference", "states", ".", "Performs", "the", "shortcut", "calculation", "assuming"...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/chemical.py#L2724-L2757
[ "def", "Poynting", "(", "self", ")", ":", "Vml", ",", "Psat", "=", "self", ".", "Vml", ",", "self", ".", "Psat", "if", "Vml", "and", "Psat", ":", "return", "exp", "(", "Vml", "*", "(", "self", ".", "P", "-", "Psat", ")", "/", "R", "/", "self"...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
ITS90_68_difference
r'''Calculates the difference between ITS-90 and ITS-68 scales using a series of models listed in [1]_, [2]_, and [3]_. The temperature difference is given by the following equations: From 13.8 K to 73.15 K: .. math:: T_{90} - T_{68} = a_0 + \sum_{i=1}^{12} a_i[(T_{90}/K-40)/40]^i From 8...
thermo/temperature.py
def ITS90_68_difference(T): r'''Calculates the difference between ITS-90 and ITS-68 scales using a series of models listed in [1]_, [2]_, and [3]_. The temperature difference is given by the following equations: From 13.8 K to 73.15 K: .. math:: T_{90} - T_{68} = a_0 + \sum_{i=1}^{12} a_i...
def ITS90_68_difference(T): r'''Calculates the difference between ITS-90 and ITS-68 scales using a series of models listed in [1]_, [2]_, and [3]_. The temperature difference is given by the following equations: From 13.8 K to 73.15 K: .. math:: T_{90} - T_{68} = a_0 + \sum_{i=1}^{12} a_i...
[ "r", "Calculates", "the", "difference", "between", "ITS", "-", "90", "and", "ITS", "-", "68", "scales", "using", "a", "series", "of", "models", "listed", "in", "[", "1", "]", "_", "[", "2", "]", "_", "and", "[", "3", "]", "_", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/temperature.py#L159-L278
[ "def", "ITS90_68_difference", "(", "T", ")", ":", "ais", "=", "[", "-", "0.005903", ",", "0.008174", ",", "-", "0.061924", ",", "-", "0.193388", ",", "1.490793", ",", "1.252347", ",", "-", "9.835868", ",", "1.411912", ",", "25.277595", ",", "-", "19.18...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
T_converter
r'''Converts the a temperature reading made in any of the scales 'ITS-90', 'ITS-68','ITS-48', 'ITS-76', or 'ITS-27' to any of the other scales. Not all temperature ranges can be converted to other ranges; for instance, 'ITS-76' is purely for low temperatures, and 5 K on it has no conversion to 'ITS-90' ...
thermo/temperature.py
def T_converter(T, current, desired): r'''Converts the a temperature reading made in any of the scales 'ITS-90', 'ITS-68','ITS-48', 'ITS-76', or 'ITS-27' to any of the other scales. Not all temperature ranges can be converted to other ranges; for instance, 'ITS-76' is purely for low temperatures, and 5 ...
def T_converter(T, current, desired): r'''Converts the a temperature reading made in any of the scales 'ITS-90', 'ITS-68','ITS-48', 'ITS-76', or 'ITS-27' to any of the other scales. Not all temperature ranges can be converted to other ranges; for instance, 'ITS-76' is purely for low temperatures, and 5 ...
[ "r", "Converts", "the", "a", "temperature", "reading", "made", "in", "any", "of", "the", "scales", "ITS", "-", "90", "ITS", "-", "68", "ITS", "-", "48", "ITS", "-", "76", "or", "ITS", "-", "27", "to", "any", "of", "the", "other", "scales", ".", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/temperature.py#L284-L383
[ "def", "T_converter", "(", "T", ",", "current", ",", "desired", ")", ":", "def", "range_check", "(", "T", ",", "Tmin", ",", "Tmax", ")", ":", "if", "T", "<", "Tmin", "or", "T", ">", "Tmax", ":", "raise", "Exception", "(", "'Temperature conversion is ou...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GWP
r'''This function handles the retrieval of a chemical's Global Warming Potential, relative to CO2. 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. Returns the GWP for the 100yr outlook by default. Parame...
thermo/environment.py
def GWP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's Global Warming Potential, relative to CO2. 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. Retu...
def GWP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's Global Warming Potential, relative to CO2. 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. Retu...
[ "r", "This", "function", "handles", "the", "retrieval", "of", "a", "chemical", "s", "Global", "Warming", "Potential", "relative", "to", "CO2", ".", "Lookup", "is", "based", "on", "CASRNs", ".", "Will", "automatically", "select", "a", "data", "source", "to", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/environment.py#L61-L139
[ "def", "GWP", "(", "CASRN", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "def", "list_methods", "(", ")", ":", "methods", "=", "[", "]", "if", "CASRN", "in", "GWP_data", ".", "index", ":", "methods", ".", "append", "("...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
ODP
r'''This function handles the retrieval of a chemical's Ozone Depletion Potential, relative to CFC-11 (trichlorofluoromethane). 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. Returns the ODP of a chemical ac...
thermo/environment.py
def ODP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's Ozone Depletion Potential, relative to CFC-11 (trichlorofluoromethane). Lookup is based on CASRNs. Will automatically select a data source to use if no Method is provided; returns None if the dat...
def ODP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's Ozone Depletion Potential, relative to CFC-11 (trichlorofluoromethane). Lookup is based on CASRNs. Will automatically select a data source to use if no Method is provided; returns None if the dat...
[ "r", "This", "function", "handles", "the", "retrieval", "of", "a", "chemical", "s", "Ozone", "Depletion", "Potential", "relative", "to", "CFC", "-", "11", "(", "trichlorofluoromethane", ")", ".", "Lookup", "is", "based", "on", "CASRNs", ".", "Will", "automat...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/environment.py#L157-L274
[ "def", "ODP", "(", "CASRN", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "def", "list_methods", "(", ")", ":", "methods", "=", "[", "]", "if", "CASRN", "in", "ODP_data", ".", "index", ":", "if", "not", "pd", ".", "is...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
logP
r'''This function handles the retrieval of a chemical's octanol-water partition coefficient. 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. Parameters ---------- CASRN : string CASRN [-] ...
thermo/environment.py
def logP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's octanol-water partition coefficient. 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. Parameter...
def logP(CASRN, AvailableMethods=False, Method=None): r'''This function handles the retrieval of a chemical's octanol-water partition coefficient. 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. Parameter...
[ "r", "This", "function", "handles", "the", "retrieval", "of", "a", "chemical", "s", "octanol", "-", "water", "partition", "coefficient", ".", "Lookup", "is", "based", "on", "CASRNs", ".", "Will", "automatically", "select", "a", "data", "source", "to", "use",...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/environment.py#L286-L354
[ "def", "logP", "(", "CASRN", ",", "AvailableMethods", "=", "False", ",", "Method", "=", "None", ")", ":", "def", "list_methods", "(", ")", ":", "methods", "=", "[", "]", "if", "CASRN", "in", "CRClogPDict", ".", "index", ":", "methods", ".", "append", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Antoine
r'''Calculates vapor pressure of a chemical using the Antoine equation. Parameters `A`, `B`, and `C` are chemical-dependent. Parameters can be found in numerous sources; however units of the coefficients used vary. Originally proposed by Antoine (1888) [2]_. .. math:: \log_{\text{base}} P^{\te...
thermo/vapor_pressure.py
def Antoine(T, A, B, C, base=10.0): r'''Calculates vapor pressure of a chemical using the Antoine equation. Parameters `A`, `B`, and `C` are chemical-dependent. Parameters can be found in numerous sources; however units of the coefficients used vary. Originally proposed by Antoine (1888) [2]_. .. ...
def Antoine(T, A, B, C, base=10.0): r'''Calculates vapor pressure of a chemical using the Antoine equation. Parameters `A`, `B`, and `C` are chemical-dependent. Parameters can be found in numerous sources; however units of the coefficients used vary. Originally proposed by Antoine (1888) [2]_. .. ...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "chemical", "using", "the", "Antoine", "equation", ".", "Parameters", "A", "B", "and", "C", "are", "chemical", "-", "dependent", ".", "Parameters", "can", "be", "found", "in", "numerous", "sources", ";", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L67-L137
[ "def", "Antoine", "(", "T", ",", "A", ",", "B", ",", "C", ",", "base", "=", "10.0", ")", ":", "return", "base", "**", "(", "A", "-", "B", "/", "(", "T", "+", "C", ")", ")" ]
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
TRC_Antoine_extended
r'''Calculates vapor pressure of a chemical using the TRC Extended Antoine equation. Parameters are chemical dependent, and said to be from the Thermodynamics Research Center (TRC) at Texas A&M. Coefficients for various chemicals can be found in [1]_. .. math:: \log_{10} P^{sat} = A - \frac{B}...
thermo/vapor_pressure.py
def TRC_Antoine_extended(T, Tc, to, A, B, C, n, E, F): r'''Calculates vapor pressure of a chemical using the TRC Extended Antoine equation. Parameters are chemical dependent, and said to be from the Thermodynamics Research Center (TRC) at Texas A&M. Coefficients for various chemicals can be found in [1...
def TRC_Antoine_extended(T, Tc, to, A, B, C, n, E, F): r'''Calculates vapor pressure of a chemical using the TRC Extended Antoine equation. Parameters are chemical dependent, and said to be from the Thermodynamics Research Center (TRC) at Texas A&M. Coefficients for various chemicals can be found in [1...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "chemical", "using", "the", "TRC", "Extended", "Antoine", "equation", ".", "Parameters", "are", "chemical", "dependent", "and", "said", "to", "be", "from", "the", "Thermodynamics", "Research", "Center", "(", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L140-L183
[ "def", "TRC_Antoine_extended", "(", "T", ",", "Tc", ",", "to", ",", "A", ",", "B", ",", "C", ",", "n", ",", "E", ",", "F", ")", ":", "x", "=", "max", "(", "(", "T", "-", "to", "-", "273.15", ")", "/", "Tc", ",", "0.", ")", "return", "10."...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Wagner_original
r'''Calculates vapor pressure using the Wagner equation (3, 6 form). Requires critical temperature and pressure as well as four coefficients specific to each chemical. .. math:: \ln P^{sat}= \ln P_c + \frac{a\tau + b \tau^{1.5} + c\tau^3 + d\tau^6} {T_r} \tau = 1 - \frac{T...
thermo/vapor_pressure.py
def Wagner_original(T, Tc, Pc, a, b, c, d): r'''Calculates vapor pressure using the Wagner equation (3, 6 form). Requires critical temperature and pressure as well as four coefficients specific to each chemical. .. math:: \ln P^{sat}= \ln P_c + \frac{a\tau + b \tau^{1.5} + c\tau^3 + d\tau^6} ...
def Wagner_original(T, Tc, Pc, a, b, c, d): r'''Calculates vapor pressure using the Wagner equation (3, 6 form). Requires critical temperature and pressure as well as four coefficients specific to each chemical. .. math:: \ln P^{sat}= \ln P_c + \frac{a\tau + b \tau^{1.5} + c\tau^3 + d\tau^6} ...
[ "r", "Calculates", "vapor", "pressure", "using", "the", "Wagner", "equation", "(", "3", "6", "form", ")", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L186-L237
[ "def", "Wagner_original", "(", "T", ",", "Tc", ",", "Pc", ",", "a", ",", "b", ",", "c", ",", "d", ")", ":", "Tr", "=", "T", "/", "Tc", "tau", "=", "1.0", "-", "Tr", "return", "Pc", "*", "exp", "(", "(", "a", "*", "tau", "+", "b", "*", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
boiling_critical_relation
r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship as in [1]_; requires a chemical's critical temperature and pressure as well as boiling point. The vapor pressure is given by: .. math:: \ln P^{sat}_r = h\left( 1 - \frac{1}{T_r}\right) h = T_{b...
thermo/vapor_pressure.py
def boiling_critical_relation(T, Tb, Tc, Pc): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship as in [1]_; requires a chemical's critical temperature and pressure as well as boiling point. The vapor pressure is given by: .. math:: \ln P^{sat}_r = ...
def boiling_critical_relation(T, Tb, Tc, Pc): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship as in [1]_; requires a chemical's critical temperature and pressure as well as boiling point. The vapor pressure is given by: .. math:: \ln P^{sat}_r = ...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "fluid", "at", "arbitrary", "temperatures", "using", "a", "CSP", "relationship", "as", "in", "[", "1", "]", "_", ";", "requires", "a", "chemical", "s", "critical", "temperature", "and", "pressure", "as", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L669-L717
[ "def", "boiling_critical_relation", "(", "T", ",", "Tb", ",", "Tc", ",", "Pc", ")", ":", "Tbr", "=", "Tb", "/", "Tc", "Tr", "=", "T", "/", "Tc", "h", "=", "Tbr", "*", "log", "(", "Pc", "/", "101325.", ")", "/", "(", "1", "-", "Tbr", ")", "r...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Lee_Kesler
r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P^{sat}_r = f^{(0)} + \omega f^{(1)} f^{(0)} = 5.92714-\frac{6.09648}{T_r}...
thermo/vapor_pressure.py
def Lee_Kesler(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P^{sat}_r = f^{(0)} + \omega f^{(1)} ...
def Lee_Kesler(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P^{sat}_r = f^{(0)} + \omega f^{(1)} ...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "fluid", "at", "arbitrary", "temperatures", "using", "a", "CSP", "relationship", "by", "[", "1", "]", "_", ";", "requires", "a", "chemical", "s", "critical", "temperature", "and", "acentric", "factor", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L720-L774
[ "def", "Lee_Kesler", "(", "T", ",", "Tc", ",", "Pc", ",", "omega", ")", ":", "Tr", "=", "T", "/", "Tc", "f0", "=", "5.92714", "-", "6.09648", "/", "Tr", "-", "1.28862", "*", "log", "(", "Tr", ")", "+", "0.169347", "*", "Tr", "**", "6", "f1", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Ambrose_Walton
r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P_r=f^{(0)}+\omega f^{(1)}+\omega^2f^{(2)} f^{(0)}=\frac{-5.97616\tau + 1....
thermo/vapor_pressure.py
def Ambrose_Walton(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P_r=f^{(0)}+\omega f^{(1)}+\omega^2f^{(2)...
def Ambrose_Walton(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_; requires a chemical's critical temperature and acentric factor. The vapor pressure is given by: .. math:: \ln P_r=f^{(0)}+\omega f^{(1)}+\omega^2f^{(2)...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "fluid", "at", "arbitrary", "temperatures", "using", "a", "CSP", "relationship", "by", "[", "1", "]", "_", ";", "requires", "a", "chemical", "s", "critical", "temperature", "and", "acentric", "factor", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L777-L838
[ "def", "Ambrose_Walton", "(", "T", ",", "Tc", ",", "Pc", ",", "omega", ")", ":", "Tr", "=", "T", "/", "Tc", "tau", "=", "1", "-", "T", "/", "Tc", "f0", "=", "(", "-", "5.97616", "*", "tau", "+", "1.29874", "*", "tau", "**", "1.5", "-", "0.6...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Sanjari
r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Although developed for refrigerants, this model should have some general predictive ability. The vapor pressure of a chemical a...
thermo/vapor_pressure.py
def Sanjari(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Although developed for refrigerants, this model should have some general predictive ability. ...
def Sanjari(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Although developed for refrigerants, this model should have some general predictive ability. ...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "fluid", "at", "arbitrary", "temperatures", "using", "a", "CSP", "relationship", "by", "[", "1", "]", "_", ".", "Requires", "a", "chemical", "s", "critical", "temperature", "pressure", "and", "acentric", "fa...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L841-L907
[ "def", "Sanjari", "(", "T", ",", "Tc", ",", "Pc", ",", "omega", ")", ":", "Tr", "=", "T", "/", "Tc", "f0", "=", "6.83377", "+", "-", "5.76051", "/", "Tr", "+", "0.90654", "*", "log", "(", "Tr", ")", "+", "-", "1.16906", "*", "Tr", "**", "1....
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
Edalat
r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Claimed to have a higher accuracy than the Lee-Kesler CSP relationship. The vapor pressure of a chemical at `T` is given by: ...
thermo/vapor_pressure.py
def Edalat(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Claimed to have a higher accuracy than the Lee-Kesler CSP relationship. The vapor pressure of...
def Edalat(T, Tc, Pc, omega): r'''Calculates vapor pressure of a fluid at arbitrary temperatures using a CSP relationship by [1]_. Requires a chemical's critical temperature, pressure, and acentric factor. Claimed to have a higher accuracy than the Lee-Kesler CSP relationship. The vapor pressure of...
[ "r", "Calculates", "vapor", "pressure", "of", "a", "fluid", "at", "arbitrary", "temperatures", "using", "a", "CSP", "relationship", "by", "[", "1", "]", "_", ".", "Requires", "a", "chemical", "s", "critical", "temperature", "pressure", "and", "acentric", "fa...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L910-L969
[ "def", "Edalat", "(", "T", ",", "Tc", ",", "Pc", ",", "omega", ")", ":", "tau", "=", "1.", "-", "T", "/", "Tc", "a", "=", "-", "6.1559", "-", "4.0855", "*", "omega", "c", "=", "-", "0.8747", "-", "7.8874", "*", "omega", "d", "=", "1.", "/",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
VaporPressure.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/vapor_pressure.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/vapor_pressure.py#L483-L556
[ "def", "load_all_methods", "(", "self", ")", ":", "methods", "=", "[", "]", "Tmins", ",", "Tmaxs", "=", "[", "]", ",", "[", "]", "if", "self", ".", "CASRN", "in", "WagnerMcGarry", ".", "index", ":", "methods", ".", "append", "(", "WAGNER_MCGARRY", ")...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
VaporPressure.calculate
r'''Method to calculate vapor pressure of a fluid at temperature `T` with a given method. This method has no exception handling; see `T_dependent_property` for that. Parameters ---------- T : float Temperature at calculate vapor pressure, [K] method ...
thermo/vapor_pressure.py
def calculate(self, T, method): r'''Method to calculate vapor pressure of a fluid at temperature `T` with a given method. This method has no exception handling; see `T_dependent_property` for that. Parameters ---------- T : float Temperature at calcu...
def calculate(self, T, method): r'''Method to calculate vapor pressure of a fluid at temperature `T` with a given method. This method has no exception handling; see `T_dependent_property` for that. Parameters ---------- T : float Temperature at calcu...
[ "r", "Method", "to", "calculate", "vapor", "pressure", "of", "a", "fluid", "at", "temperature", "T", "with", "a", "given", "method", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/vapor_pressure.py#L558-L606
[ "def", "calculate", "(", "self", ",", "T", ",", "method", ")", ":", "if", "method", "==", "WAGNER_MCGARRY", ":", "Psat", "=", "Wagner_original", "(", "T", ",", "self", ".", "WAGNER_MCGARRY_Tc", ",", "self", ".", "WAGNER_MCGARRY_Pc", ",", "*", "self", "."...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
TWU_a_alpha_common
r'''Function to calculate `a_alpha` and optionally its first and second derivatives for the TWUPR or TWUSRK EOS. Returns 'a_alpha', and optionally 'da_alpha_dT' and 'd2a_alpha_dT2'. Used by `TWUPR` and `TWUSRK`; has little purpose on its own. See either class for the correct reference, and examples of ...
thermo/eos.py
def TWU_a_alpha_common(T, Tc, omega, a, full=True, quick=True, method='PR'): r'''Function to calculate `a_alpha` and optionally its first and second derivatives for the TWUPR or TWUSRK EOS. Returns 'a_alpha', and optionally 'da_alpha_dT' and 'd2a_alpha_dT2'. Used by `TWUPR` and `TWUSRK`; has little pur...
def TWU_a_alpha_common(T, Tc, omega, a, full=True, quick=True, method='PR'): r'''Function to calculate `a_alpha` and optionally its first and second derivatives for the TWUPR or TWUSRK EOS. Returns 'a_alpha', and optionally 'da_alpha_dT' and 'd2a_alpha_dT2'. Used by `TWUPR` and `TWUSRK`; has little pur...
[ "r", "Function", "to", "calculate", "a_alpha", "and", "optionally", "its", "first", "and", "second", "derivatives", "for", "the", "TWUPR", "or", "TWUSRK", "EOS", ".", "Returns", "a_alpha", "and", "optionally", "da_alpha_dT", "and", "d2a_alpha_dT2", ".", "Used", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L3001-L3102
[ "def", "TWU_a_alpha_common", "(", "T", ",", "Tc", ",", "omega", ",", "a", ",", "full", "=", "True", ",", "quick", "=", "True", ",", "method", "=", "'PR'", ")", ":", "Tr", "=", "T", "/", "Tc", "if", "method", "==", "'PR'", ":", "if", "Tr", "<", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.check_sufficient_inputs
Method to an exception if none of the pairs (T, P), (T, V), or (P, V) are given.
thermo/eos.py
def check_sufficient_inputs(self): '''Method to an exception if none of the pairs (T, P), (T, V), or (P, V) are given. ''' if not ((self.T and self.P) or (self.T and self.V) or (self.P and self.V)): raise Exception('Either T and P, or T and V, or P and V are required')
def check_sufficient_inputs(self): '''Method to an exception if none of the pairs (T, P), (T, V), or (P, V) are given. ''' if not ((self.T and self.P) or (self.T and self.V) or (self.P and self.V)): raise Exception('Either T and P, or T and V, or P and V are required')
[ "Method", "to", "an", "exception", "if", "none", "of", "the", "pairs", "(", "T", "P", ")", "(", "T", "V", ")", "or", "(", "P", "V", ")", "are", "given", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L93-L97
[ "def", "check_sufficient_inputs", "(", "self", ")", ":", "if", "not", "(", "(", "self", ".", "T", "and", "self", ".", "P", ")", "or", "(", "self", ".", "T", "and", "self", ".", "V", ")", "or", "(", "self", ".", "P", "and", "self", ".", "V", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.solve
First EOS-generic method; should be called by all specific EOSs. For solving for `T`, the EOS must provide the method `solve_T`. For all cases, the EOS must provide `a_alpha_and_derivatives`. Calls `set_from_PT` once done.
thermo/eos.py
def solve(self): '''First EOS-generic method; should be called by all specific EOSs. For solving for `T`, the EOS must provide the method `solve_T`. For all cases, the EOS must provide `a_alpha_and_derivatives`. Calls `set_from_PT` once done. ''' self.check_sufficient_inp...
def solve(self): '''First EOS-generic method; should be called by all specific EOSs. For solving for `T`, the EOS must provide the method `solve_T`. For all cases, the EOS must provide `a_alpha_and_derivatives`. Calls `set_from_PT` once done. ''' self.check_sufficient_inp...
[ "First", "EOS", "-", "generic", "method", ";", "should", "be", "called", "by", "all", "specific", "EOSs", ".", "For", "solving", "for", "T", "the", "EOS", "must", "provide", "the", "method", "solve_T", ".", "For", "all", "cases", "the", "EOS", "must", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L100-L119
[ "def", "solve", "(", "self", ")", ":", "self", ".", "check_sufficient_inputs", "(", ")", "if", "self", ".", "V", ":", "if", "self", ".", "P", ":", "self", ".", "T", "=", "self", ".", "solve_T", "(", "self", ".", "P", ",", "self", ".", "V", ")",...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.set_from_PT
Counts the number of real volumes in `Vs`, and determines what to do. If there is only one real volume, the method `set_properties_from_solution` is called with it. If there are two real volumes, `set_properties_from_solution` is called once with each volume. The phase is returned by ...
thermo/eos.py
def set_from_PT(self, Vs): '''Counts the number of real volumes in `Vs`, and determines what to do. If there is only one real volume, the method `set_properties_from_solution` is called with it. If there are two real volumes, `set_properties_from_solution` is called once with ...
def set_from_PT(self, Vs): '''Counts the number of real volumes in `Vs`, and determines what to do. If there is only one real volume, the method `set_properties_from_solution` is called with it. If there are two real volumes, `set_properties_from_solution` is called once with ...
[ "Counts", "the", "number", "of", "real", "volumes", "in", "Vs", "and", "determines", "what", "to", "do", ".", "If", "there", "is", "only", "one", "real", "volume", "the", "method", "set_properties_from_solution", "is", "called", "with", "it", ".", "If", "t...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L121-L155
[ "def", "set_from_PT", "(", "self", ",", "Vs", ")", ":", "# All roots will have some imaginary component; ignore them if > 1E-9", "good_roots", "=", "[", "]", "bad_roots", "=", "[", "]", "for", "i", "in", "Vs", ":", "j", "=", "i", ".", "real", "if", "abs", "(...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.set_properties_from_solution
r'''Sets all interesting properties which can be calculated from an EOS alone. Determines which phase the fluid is on its own; for details, see `phase_identification_parameter`. The list of properties set is as follows, with all properties suffixed with '_l' or '_g'. ...
thermo/eos.py
def set_properties_from_solution(self, T, P, V, b, delta, epsilon, a_alpha, da_alpha_dT, d2a_alpha_dT2, quick=True): r'''Sets all interesting properties which can be calculated from an EOS alone. Determines which phase the fluid is on its own; for details, s...
def set_properties_from_solution(self, T, P, V, b, delta, epsilon, a_alpha, da_alpha_dT, d2a_alpha_dT2, quick=True): r'''Sets all interesting properties which can be calculated from an EOS alone. Determines which phase the fluid is on its own; for details, s...
[ "r", "Sets", "all", "interesting", "properties", "which", "can", "be", "calculated", "from", "an", "EOS", "alone", ".", "Determines", "which", "phase", "the", "fluid", "is", "on", "its", "own", ";", "for", "details", "see", "phase_identification_parameter", "....
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L157-L417
[ "def", "set_properties_from_solution", "(", "self", ",", "T", ",", "P", ",", "V", ",", "b", ",", "delta", ",", "epsilon", ",", "a_alpha", ",", "da_alpha_dT", ",", "d2a_alpha_dT2", ",", "quick", "=", "True", ")", ":", "(", "[", "dP_dT", ",", "dP_dV", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.solve_T
Generic method to calculate `T` from a specified `P` and `V`. Provides SciPy's `newton` solver, and iterates to solve the general equation for `P`, recalculating `a_alpha` as a function of temperature using `a_alpha_and_derivatives` each iteration. Parameters ---------- ...
thermo/eos.py
def solve_T(self, P, V, quick=True): '''Generic method to calculate `T` from a specified `P` and `V`. Provides SciPy's `newton` solver, and iterates to solve the general equation for `P`, recalculating `a_alpha` as a function of temperature using `a_alpha_and_derivatives` each iteration....
def solve_T(self, P, V, quick=True): '''Generic method to calculate `T` from a specified `P` and `V`. Provides SciPy's `newton` solver, and iterates to solve the general equation for `P`, recalculating `a_alpha` as a function of temperature using `a_alpha_and_derivatives` each iteration....
[ "Generic", "method", "to", "calculate", "T", "from", "a", "specified", "P", "and", "V", ".", "Provides", "SciPy", "s", "newton", "solver", "and", "iterates", "to", "solve", "the", "general", "equation", "for", "P", "recalculating", "a_alpha", "as", "a", "f...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L451-L477
[ "def", "solve_T", "(", "self", ",", "P", ",", "V", ",", "quick", "=", "True", ")", ":", "def", "to_solve", "(", "T", ")", ":", "a_alpha", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ",", "full", "=", "False", ")", "P_calc", "=", "R", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.volume_solutions
r'''Solution of this form of the cubic EOS in terms of volumes. Returns three values, all with some complex part. Parameters ---------- T : float Temperature, [K] P : float Pressure, [Pa] b : float Coefficient calculated by EOS-speci...
thermo/eos.py
def volume_solutions(T, P, b, delta, epsilon, a_alpha, quick=True): r'''Solution of this form of the cubic EOS in terms of volumes. Returns three values, all with some complex part. Parameters ---------- T : float Temperature, [K] P : float Pres...
def volume_solutions(T, P, b, delta, epsilon, a_alpha, quick=True): r'''Solution of this form of the cubic EOS in terms of volumes. Returns three values, all with some complex part. Parameters ---------- T : float Temperature, [K] P : float Pres...
[ "r", "Solution", "of", "this", "form", "of", "the", "cubic", "EOS", "in", "terms", "of", "volumes", ".", "Returns", "three", "values", "all", "with", "some", "complex", "part", "." ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L480-L551
[ "def", "volume_solutions", "(", "T", ",", "P", ",", "b", ",", "delta", ",", "epsilon", ",", "a_alpha", ",", "quick", "=", "True", ")", ":", "if", "quick", ":", "x0", "=", "1.", "/", "P", "x1", "=", "P", "*", "b", "x2", "=", "R", "*", "T", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.Psat
r'''Generic method to calculate vapor pressure for a specified `T`. From Tc to 0.32Tc, uses a 10th order polynomial of the following form: .. math:: \ln\frac{P_r}{T_r} = \sum_{k=0}^{10} C_k\left(\frac{\alpha}{T_r} -1\right)^{k} If `p...
thermo/eos.py
def Psat(self, T, polish=False): r'''Generic method to calculate vapor pressure for a specified `T`. From Tc to 0.32Tc, uses a 10th order polynomial of the following form: .. math:: \ln\frac{P_r}{T_r} = \sum_{k=0}^{10} C_k\left(\frac{\alpha}{T_r} -1\righ...
def Psat(self, T, polish=False): r'''Generic method to calculate vapor pressure for a specified `T`. From Tc to 0.32Tc, uses a 10th order polynomial of the following form: .. math:: \ln\frac{P_r}{T_r} = \sum_{k=0}^{10} C_k\left(\frac{\alpha}{T_r} -1\righ...
[ "r", "Generic", "method", "to", "calculate", "vapor", "pressure", "for", "a", "specified", "T", ".", "From", "Tc", "to", "0", ".", "32Tc", "uses", "a", "10th", "order", "polynomial", "of", "the", "following", "form", ":", "..", "math", "::", "\\", "ln"...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L621-L689
[ "def", "Psat", "(", "self", ",", "T", ",", "polish", "=", "False", ")", ":", "alpha", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ",", "full", "=", "False", ")", "/", "self", ".", "a", "Tr", "=", "T", "/", "self", ".", "Tc", "x", "="...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.dPsat_dT
r'''Generic method to calculate the temperature derivative of vapor pressure for a specified `T`. Implements the analytical derivative of the two polynomials described in `Psat`. As with `Psat`, results above the critical temperature are meaningless. The first-order polynomial...
thermo/eos.py
def dPsat_dT(self, T): r'''Generic method to calculate the temperature derivative of vapor pressure for a specified `T`. Implements the analytical derivative of the two polynomials described in `Psat`. As with `Psat`, results above the critical temperature are meaningless. ...
def dPsat_dT(self, T): r'''Generic method to calculate the temperature derivative of vapor pressure for a specified `T`. Implements the analytical derivative of the two polynomials described in `Psat`. As with `Psat`, results above the critical temperature are meaningless. ...
[ "r", "Generic", "method", "to", "calculate", "the", "temperature", "derivative", "of", "vapor", "pressure", "for", "a", "specified", "T", ".", "Implements", "the", "analytical", "derivative", "of", "the", "two", "polynomials", "described", "in", "Psat", ".", "...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L691-L737
[ "def", "dPsat_dT", "(", "self", ",", "T", ")", ":", "a_alphas", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ")", "alpha", ",", "d_alpha_dT", "=", "a_alphas", "[", "0", "]", "/", "self", ".", "a", ",", "a_alphas", "[", "1", "]", "/", "sel...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.V_l_sat
r'''Method to calculate molar volume of the liquid phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_l_sat : float Liquid molar volume along the saturation line, [m^3/mol] ...
thermo/eos.py
def V_l_sat(self, T): r'''Method to calculate molar volume of the liquid phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_l_sat : float Liquid molar volume along the satur...
def V_l_sat(self, T): r'''Method to calculate molar volume of the liquid phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_l_sat : float Liquid molar volume along the satur...
[ "r", "Method", "to", "calculate", "molar", "volume", "of", "the", "liquid", "phase", "along", "the", "saturation", "line", ".", "Parameters", "----------", "T", ":", "float", "Temperature", "[", "K", "]" ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L739-L762
[ "def", "V_l_sat", "(", "self", ",", "T", ")", ":", "Psat", "=", "self", ".", "Psat", "(", "T", ")", "a_alpha", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ",", "full", "=", "False", ")", "Vs", "=", "self", ".", "volume_solutions", "(", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.V_g_sat
r'''Method to calculate molar volume of the vapor phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_g_sat : float Gas molar volume along the saturation line, [m^3/mol] ...
thermo/eos.py
def V_g_sat(self, T): r'''Method to calculate molar volume of the vapor phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_g_sat : float Gas molar volume along the saturatio...
def V_g_sat(self, T): r'''Method to calculate molar volume of the vapor phase along the saturation line. Parameters ---------- T : float Temperature, [K] Returns ------- V_g_sat : float Gas molar volume along the saturatio...
[ "r", "Method", "to", "calculate", "molar", "volume", "of", "the", "vapor", "phase", "along", "the", "saturation", "line", ".", "Parameters", "----------", "T", ":", "float", "Temperature", "[", "K", "]" ]
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L764-L787
[ "def", "V_g_sat", "(", "self", ",", "T", ")", ":", "Psat", "=", "self", ".", "Psat", "(", "T", ")", "a_alpha", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ",", "full", "=", "False", ")", "Vs", "=", "self", ".", "volume_solutions", "(", "...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
GCEOS.Hvap
r'''Method to calculate enthalpy of vaporization for a pure fluid from an equation of state, without iteration. .. math:: \frac{dP^{sat}}{dT}=\frac{\Delta H_{vap}}{T(V_g - V_l)} Results above the critical temperature are meaningless. A first-order polynomia...
thermo/eos.py
def Hvap(self, T): r'''Method to calculate enthalpy of vaporization for a pure fluid from an equation of state, without iteration. .. math:: \frac{dP^{sat}}{dT}=\frac{\Delta H_{vap}}{T(V_g - V_l)} Results above the critical temperature are meaningless. A fir...
def Hvap(self, T): r'''Method to calculate enthalpy of vaporization for a pure fluid from an equation of state, without iteration. .. math:: \frac{dP^{sat}}{dT}=\frac{\Delta H_{vap}}{T(V_g - V_l)} Results above the critical temperature are meaningless. A fir...
[ "r", "Method", "to", "calculate", "enthalpy", "of", "vaporization", "for", "a", "pure", "fluid", "from", "an", "equation", "of", "state", "without", "iteration", ".", "..", "math", "::", "\\", "frac", "{", "dP^", "{", "sat", "}}", "{", "dT", "}", "=", ...
CalebBell/thermo
python
https://github.com/CalebBell/thermo/blob/3857ed023a3e64fd3039a32d53576c24990ef1c3/thermo/eos.py#L789-L833
[ "def", "Hvap", "(", "self", ",", "T", ")", ":", "Psat", "=", "self", ".", "Psat", "(", "T", ")", "dPsat_dT", "=", "self", ".", "dPsat_dT", "(", "T", ")", "a_alpha", "=", "self", ".", "a_alpha_and_derivatives", "(", "T", ",", "full", "=", "False", ...
3857ed023a3e64fd3039a32d53576c24990ef1c3
valid
ALPHA_FUNCTIONS.Heyen
r'''Method to calculate `a_alpha` and its first and second derivatives according to Heyen (1980) [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 = e^...
thermo/eos.py
def Heyen(self, T, full=True, quick=True): r'''Method to calculate `a_alpha` and its first and second derivatives according to Heyen (1980) [1]_. Returns `a_alpha`, `da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more documentation. Two coefficients needed....
def Heyen(self, T, full=True, quick=True): r'''Method to calculate `a_alpha` and its first and second derivatives according to Heyen (1980) [1]_. Returns `a_alpha`, `da_alpha_dT`, and `d2a_alpha_dT2`. See `GCEOS.a_alpha_and_derivatives` for more documentation. Two coefficients needed....
[ "r", "Method", "to", "calculate", "a_alpha", "and", "its", "first", "and", "second", "derivatives", "according", "to", "Heyen", "(", "1980", ")", "[", "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#L920-L945
[ "def", "Heyen", "(", "self", ",", "T", ",", "full", "=", "True", ",", "quick", "=", "True", ")", ":", "c1", ",", "c2", "=", "self", ".", "alpha_function_coeffs", "T", ",", "Tc", ",", "a", "=", "self", ".", "T", ",", "self", ".", "Tc", ",", "s...
3857ed023a3e64fd3039a32d53576c24990ef1c3