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
ordict
:ivar density_model, heat_capacity_model: Trained WPDModel objects for density and heat capacityMethods
__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.
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
orvector
- Return type:
pd.Series