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:
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.

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

property query_str#

String to be sent to CoolProp backend, adds concentration to self.coolprop_fluid, if necessary. :rtype: str