sunpeek.components.fluids.WPDFluid#

class sunpeek.components.fluids.WPDFluid(**kwargs)#

Bases: Fluid

Fluid 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: :param te: Temperature for which density is evaluated.

get_heat_capacity(te)

Calculate heat capacity of fluid at given temperature and self.concentration :type te: :param te: Temperature for which heat cpaacity is evaluated.

get_density(te)#

Calculate density of fluid at given temperature and self.concentration :type te: :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: :param te: Temperature for which heat cpaacity is evaluated. :type te: pd.Series, scalar or vector

Return type:

pd.Series