pmutt.statmech.elec.GroundStateElec
- class pmutt.statmech.elec.GroundStateElec(potentialenergy=None, spin=0.0, atoms=None, D0=None)
Bases:
_ModelBase
Electronic modes using the ideal gas assumption. Equations sourced from:
Sandler, S. I. An Introduction to Applied Statistical Thermodynamics; John Wiley & Sons, 2010.
- potentialenergy
Potential energy in eV. If this value and atoms are not specified, defaults to 0
- Type:
float, optional
- spin
The total electron spin. Default is 0
0 for molecules in which all electrons are paired
0.5 for a free radical with a single unpaired electron
1.0 for a triplet with two unpaired electrons, such as O 2
- Type:
float, optional
- atoms
If potentialenergy is not specified, the energy will be obtained using atoms.get_potential_energy().
- Type:
ase.Atoms object, optional
- D0
Bond strength in eV. Preferentially used when calculating partition coefficient.
- Type:
float, optional
- __init__(potentialenergy=None, spin=0.0, atoms=None, D0=None)
Methods
__init__
([potentialenergy, spin, atoms, D0])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
get_G
(units[, T])Calculate the Gibbs energy
get_GoRT
(T)Calculates the dimensionless Gibbs energy
get_H
(units[, T])Calculate the enthalpy
get_HoRT
(T)Calculates the dimensionless enthalpy
get_S
(units, **kwargs)Calculate the entropy
get_SoR
()Calculates the dimensionless entropy
get_U
(units[, T])Calculate the internal energy
get_UoRT
(T)Calculates the imensionless internal energy
get_q
(T[, ignore_q_elec])Calculates the partition function
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:
Obj
- Return type:
Appropriate object
- get_Cp(units, **kwargs)
Calculate the heat capacity (constant P)
- get_CpoR()
Calculates the dimensionless heat capacity at constant pressure
\(\frac{C_P^{elec}}{R}=\frac{C_V^{elec}}{R}=0\)
- Returns:
CpoR_elec – Electronic dimensionless heat capacity at constant pressure
- Return type:
- get_Cv(units, **kwargs)
Calculate the heat capacity (constant V)
- get_CvoR()
Calculates the dimensionless heat capacity at constant volume
\(\frac{C_V^{elec}}{R}=0\)
- Returns:
CvoR_elec – electronic dimensionless heat capacity at constant volume
- Return type:
- get_F(units, T=298.15, **kwargs)
Calculate the Helmholtz energy
- get_FoRT(T)
Calculates the dimensionless Helmholtz energy
\(\frac{A^{elec}}{RT}=\frac{U^{elec}}{RT}-\frac{S^{elec}}{R}\)
- get_G(units, T=298.15, **kwargs)
Calculate the Gibbs energy
- get_GoRT(T)
Calculates the dimensionless Gibbs energy
\(\frac{G^{elec}}{RT}=\frac{H^{elec}}{RT}-\frac{S^{elec}}{R}\)
- get_H(units, T=298.15, **kwargs)
Calculate the enthalpy
- get_HoRT(T)
Calculates the dimensionless enthalpy
\(\frac{H^{elec}}{RT}=\frac{U^{elec}}{RT}\)
- get_S(units, **kwargs)
Calculate the entropy
- get_SoR()
Calculates the dimensionless entropy
\(\frac{S^{elec}}{R}=\log \omega\)
- Returns:
SoR_elec – Electronic dimensionless entropy
- Return type:
- get_U(units, T=298.15, **kwargs)
Calculate the internal energy
- get_UoRT(T)
Calculates the imensionless internal energy
\(\frac{U^{elec}}{RT}=\frac{E}{RT}\)
- get_q(T, ignore_q_elec=True)
Calculates the partition function
\(q^{elec}=1 + \omega_i \exp\bigg(-\frac{E}{RT}\bigg)\)
- Parameters:
- Returns:
q_elec – Electronic partition function
- Return type:
- property spin