sunpeek.components.fluids.WPDFluid#
- class sunpeek.components.fluids.WPDFluid(**kwargs)#
Bases:
FluidFluid with given trained sklearn models for density and heat capacity. Accepts pint Quantity for temperature and (optionally) concentration. Returns fluid properties as pint Quantity.
Methods
__init__(**kwargs)A simple constructor that allows initialization from kwargs.
get_density(te)Calculate density of fluid at given temperature and self.concentration :type te:
pd.Series:param te: Temperature for which density is evaluated.Calculate heat capacity of fluid at given temperature and self.concentration :type te:
pd.Series,scalarorvector:param te: Temperature for which heat cpaacity is evaluated.- get_density(te)#
Calculate density of fluid at given temperature and self.concentration :type te:
pd.Series:param te: Temperature for which density is evaluated. :type te:pd.Series- Return type:
pd.Series
- get_heat_capacity(te)#
Calculate heat capacity of fluid at given temperature and self.concentration :type te:
pd.Series,scalarorvector:param te: Temperature for which heat cpaacity is evaluated. :type te:pd.Series,scalarorvector- Return type:
pd.Series