pmutt.eos.IdealGasEOS
- class pmutt.eos.IdealGasEOS
Bases:
_pmuttBase
Ideal gas equation of state
\(PV=nRT\)
- __init__()
Methods
__init__
()from_dict
(json_obj)Recreate an object from the JSON representation.
get_P
([T, V, n])Calculates the pressure of an ideal gas
get_T
([V, P, n])Calculates the temperature of an ideal gas
get_V
([T, P, n])Calculates the volume of an ideal gas
get_n
([V, P, T])Calculates the moles of an ideal gas
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_P(T=298.15, V=0.0247895618937, n=1.0)
Calculates the pressure of an ideal gas
- get_T(V=0.0247895618937, P=1.0, n=1.0)
Calculates the temperature of an ideal gas
- get_V(T=298.15, P=1.0, n=1.0)
Calculates the volume of an ideal gas
- get_n(V=0.0247895618937, P=1.0, T=298.15)
Calculates the moles of an ideal gas