Source code for kappa_sdk.pvt.eos_thermal_results
[docs]
class ThermalResults:
def __init__(self, enthalpy: float, entropy: float, cp: float,
thermal_conductivity: float, cp_cv: float,
thermal_expansion_coef: float, internal_energy: float,
joule_thomson_coef: float, speed_of_sound: float) -> None:
self.__enthalpy = enthalpy
self.__entropy = entropy
self.__cp = cp
self.__thermal_conductivity = thermal_conductivity
self.__cp_cv = cp_cv
self.__thermal_expansion_coef = thermal_expansion_coef
self.__internal_energy = internal_energy
self.__joule_thomson_coef = joule_thomson_coef
self.__speed_of_sound = speed_of_sound
@property
def enthalpy(self) -> float:
"""Gets the enthalpy value."""
return self.__enthalpy
@property
def entropy(self) -> float:
"""Gets the entropy value."""
return self.__entropy
@property
def cp(self) -> float:
"""Gets the cp value."""
return self.__cp
@property
def thermal_conductivity(self) -> float:
"""Gets the thermal conductivity value."""
return self.__thermal_conductivity
@property
def cp_cv(self) -> float:
"""Gets the cp/cv ratio."""
return self.__cp_cv
@property
def thermal_expansion_coef(self) -> float:
"""Gets the thermal expansion coefficient."""
return self.__thermal_expansion_coef
@property
def internal_energy(self) -> float:
"""Gets the internal energy value."""
return self.__internal_energy
@property
def joule_thomson_coef(self) -> float:
"""Gets the Joule-Thomson coefficient."""
return self.__joule_thomson_coef
@property
def speed_of_sound(self) -> float:
"""Gets the speed of sound value."""
return self.__speed_of_sound