pmutt.statmech.ConstantMode
- class pmutt.statmech.ConstantMode(q=1.0, Cv=0.0, Cp=0.0, U=0.0, H=0.0, S=0.0, F=0.0, G=0.0, notes=None)
- Bases: - _ModelBase- Mode where thermodynamic properties can be arbitrarily set. Note that thermodynamic properties must be explicitly set and are not calculated from other properties. - notes
- Any additional details you would like to include such as source of data. Default is None 
 - __init__(q=1.0, Cv=0.0, Cp=0.0, U=0.0, H=0.0, S=0.0, F=0.0, G=0.0, notes=None)
 - Methods - __init__([q, Cv, Cp, U, H, S, F, G, notes])- from_dict(json_obj)- Recreate an object from the JSON representation. - get_Cp(units, **kwargs)- Calculate the heat capacity (constant P) - get_CpoR()- Calculate the dimensionless heat capacity (constant pressure) - get_Cv(units, **kwargs)- Calculate the heat capacity (constant V) - get_CvoR()- Calculate the dimensionless heat capacity (constant volume) - get_F(units[, T])- Calculate the Helmholtz energy - get_FoRT([T])- Calculate the dimensionless Helmholtz energy - get_G(units[, T])- Calculate the Gibbs energy - get_GoRT([T])- Calculate the dimensionless Gibbs energy - get_H(units[, T])- Calculate the enthalpy - get_HoRT([T])- Calculate the dimensionless enthalpy - get_S(units, **kwargs)- Calculate the entropy - get_SoR()- Calculate the dimensionless entropy - get_U(units[, T])- Calculate the internal energy - get_UoRT([T])- Calculate the dimensionless internal energy - get_q()- Calculate the partition function - to_dict()- Represents object as dictionary with JSON-accepted datatypes - 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()
- Calculate the dimensionless heat capacity (constant pressure) - Returns:
- CpoR – Dimensionless heat capacity (constant pressure) 
- Return type:
 
 - get_Cv(units, **kwargs)
- Calculate the heat capacity (constant V) 
 - get_CvoR()
- Calculate the dimensionless heat capacity (constant volume) - Returns:
- CvoR – Dimensionless heat capacity (constant volume) 
- Return type:
 
 - get_F(units, T=298.15, **kwargs)
- Calculate the Helmholtz energy 
 - get_FoRT(T=298.15)
- Calculate the dimensionless Helmholtz energy 
 - get_G(units, T=298.15, **kwargs)
- Calculate the Gibbs energy 
 - get_GoRT(T=298.15)
- Calculate the dimensionless Gibbs energy 
 - get_H(units, T=298.15, **kwargs)
- Calculate the enthalpy 
 - get_HoRT(T=298.15)
- Calculate the dimensionless enthalpy 
 - get_S(units, **kwargs)
- Calculate the entropy 
 - get_SoR()
- Calculate the dimensionless entropy - Returns:
- SoR – Dimensionless entropy 
- Return type:
 
 - get_U(units, T=298.15, **kwargs)
- Calculate the internal energy 
 - get_UoRT(T=298.15)
- Calculate the dimensionless internal energy