sunpeek.components.fluids.CoolPropFluid#
- class sunpeek.components.fluids.CoolPropFluid(fluid=None, concentration=None)#
Bases:
Fluid
High level class for interface with CoolProp incompressible fluids.
Input and output units to CoolProp are standardized and thus don’t need to be specified.
- Variables:
fluid (
CoolPropFluidDefinition
) – User-supplied string that must uniquely define a fluid within the CoolProp incompressible fluids. See `CoolProp Incompressibles`_.concentration (
pint.Quantity
ordict
) – If fluid does not require concentration, leave at default None.concentration
is interpreted as mass concentration for `mass-based binary mixtures`_.concentration
is interpreted as volume concentration for `volume-based binary mixtures`_.
- Raises:
ValueError – If concentration is given for pure fluid or missing for mixed fluid, or concentration is wrong Quantity.
Methods
__init__
([fluid, concentration])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