pmutt.statmech.lsr.ExtendedLSR
- class pmutt.statmech.lsr.ExtendedLSR(slopes, intercept, reactions, surf_species=None, gas_species=None)
- Bases: - _ModelBase- Represents an extended linear scaling relationship - slopes
- Slopes of extended LSR relationship. Represents alpha in above equation - Type:
- (N,) np.ndarray 
 
 - reactions
- Reactions to use to calculate reference binding energies. Binding energy calculated using - get_delta_Eand if that fails,- get_delta_H. If the binding energy is specified as a float (in kcal/mol), it will be converted to a- Reactionmade of- StatMechobjects- Type:
- (N,) np.ndarray or list of - Reactionobject
 
 - surf_species
- Surface species. If the surface’s energies is specified as a ndarray (in kcal/mol), it will be converted to a - StatMechobject with a single- ConstantModemode. Default is 0.- Type:
- (N,) np.ndarray or list of - StatMechobject, optional
 
 - gas_species
- Gas-phase species. If the gas’ energies is specified as a ndarray (in kcal/mol), it will be converted to a - StatMechobject with a single- ConstantModemode. Default is 0.- Type:
- (N,) np.ndarray or list of - StatMechobject, optional
 
 - notes
- Extra notes such as the source of the Extended LSR. Default is None 
 - __init__(slopes, intercept, reactions, surf_species=None, gas_species=None)
 - Methods - __init__(slopes, intercept, reactions[, ...])- from_dict(json_obj)- Recreate an object from the JSON representation. - get_Cp(units, **kwargs)- Calculate the heat capacity (constant P) - get_CpoR()- Calculates the dimensionless heat capacity at constant pressure. - get_Cv(units, **kwargs)- Calculate the heat capacity (constant V) - get_CvoR()- Calculates the dimensionless heat capacity at constant volume. - get_F(units[, T])- Calculate the Helmholtz energy - get_FoRT([T])- Calculates the dimensionless Helmholtz energy using the LSR relationship - get_G(units[, T])- Calculate the Gibbs energy - get_GoRT([T])- Calculates the dimensionless Gibbs energy using the LSR relationship - get_H(units[, T])- Calculate the enthalpy - get_HoRT([T])- Calculates the dimensionless enthalpy using the LSR relationship - get_S(units, **kwargs)- Calculate the entropy - get_SoR()- Calculates the dimensionless entropy using the LSR relationship - get_U(units[, T])- Calculate the internal energy - get_UoRT([T])- Calculates the dimensionless internal energy using the Extended LSR relationship - get_q()- Default method to calculate the partition coefficient. - to_dict()- Represents object as dictionary with JSON-accepted datatypes - Attributes - classmethod from_dict(json_obj)
- Recreate an object from the JSON representation. - Parameters:
- json_obj (dict) – JSON representation 
- Returns:
- LSR 
- Return type:
- LSR object 
 
 - property gas_species
 - get_Cp(units, **kwargs)
- Calculate the heat capacity (constant P) 
 - get_CpoR()
- Calculates the dimensionless heat capacity at constant pressure. - \(\frac{C_V^{LSR}}{R}=0\) 
 - get_Cv(units, **kwargs)
- Calculate the heat capacity (constant V) 
 - get_CvoR()
- Calculates the dimensionless heat capacity at constant volume. - \(\frac{C_V^{LSR}}{R}=0\) 
 - get_F(units, T=298.15, **kwargs)
- Calculate the Helmholtz energy 
 - get_FoRT(T=298.15, **kwargs)
- Calculates the dimensionless Helmholtz energy using the LSR relationship 
 - get_G(units, T=298.15, **kwargs)
- Calculate the Gibbs energy 
 - get_GoRT(T=298.15, **kwargs)
- Calculates the dimensionless Gibbs energy using the LSR relationship 
 - get_H(units, T=298.15, **kwargs)
- Calculate the enthalpy 
 - get_HoRT(T=298.15, **kwargs)
- Calculates the dimensionless enthalpy using the LSR relationship 
 - get_S(units, **kwargs)
- Calculate the entropy 
 - get_SoR()
- Calculates the dimensionless entropy using the LSR relationship - Returns:
- SoR – Dimensionless entropy. Since LSR handles binding energies, always returns 0 
- Return type:
 
 - get_U(units, T=298.15, **kwargs)
- Calculate the internal energy 
 - get_UoRT(T=298.15, **kwargs)
- Calculates the dimensionless internal energy using the Extended LSR relationship 
 - get_q()
- Default method to calculate the partition coefficient. - Returns:
- q – Returns 1 
- Return type:
 
 - property reactions
 - property surf_species