Source code for kappa_sdk.pvt.eos_pvt_results

from typing import Optional
from .eos_thermal_results import ThermalResults


[docs] class EosPVTResults: def __init__(self, density: float, viscosity: float, volume_factor: float, compressibility: float, molar_weight: float, mass_fraction: float, volumic_fraction: float, gravity: float, z_factor: float, thermal_results: Optional[ThermalResults] = None) -> None: self.__density = density self.__viscosity = viscosity self.__volume_factor = volume_factor self.__compressibility = compressibility self.__molar_weight = molar_weight self.__mass_fraction = mass_fraction self.__volumic_fraction = volumic_fraction self.__gravity = gravity self.__z_factor = z_factor self.__thermal_results = thermal_results @property def density(self) -> float: """Gets the density value.""" return self.__density @property def viscosity(self) -> float: """Gets the viscosity value.""" return self.__viscosity @property def volume_factor(self) -> float: """Gets the volume factor value.""" return self.__volume_factor @property def compressibility(self) -> float: """Gets the compressibility value.""" return self.__compressibility @property def molar_weight(self) -> float: """Gets the molar weight value.""" return self.__molar_weight @property def mass_fraction(self) -> float: """Gets the mass fraction value.""" return self.__mass_fraction @property def volumic_fraction(self) -> float: """Gets the volumic fraction value.""" return self.__volumic_fraction @property def gravity(self) -> float: """Gets the gravity value.""" return self.__gravity @property def z_factor(self) -> float: """Gets the Z factor value.""" return self.__z_factor @property def thermal_results(self) -> Optional[ThermalResults]: """Gets the thermal results.""" return self.__thermal_results