sunpeek.components.fluids.WPDFluidMixed#

class sunpeek.components.fluids.WPDFluidMixed(concentration, **kwargs)#

Bases: WPDFluid, Base

WPDFluid subclass for fluids that do have a variable concentration, either mass or volume concentration. :ivar concentration: Scalar concentration value of fluid :vartype concentration: pint.Quantity or dict :ivar density_model, heat_capacity_model: Trained WPDModel objects for density and heat capacity

Methods

__init__(concentration, **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