tespy.tools.fluid_properties.wrappers package

Package for fluid property wrappers.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/__init__.py

SPDX-License-Identifier: MIT

tespy.tools.fluid_properties.wrappers.base module

Base class and registry for fluid property wrappers.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/base.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.base.FluidPropertyWrapper(fluid, back_end=None, **kwargs)[source]

Bases: object

Q_ph(p, h)[source]
T_bubble(p)[source]
T_dew(p)[source]
T_ph(p, h)[source]
T_ps(p, s)[source]
T_sat(p)[source]
conductivity_pT(p, T)[source]
conductivity_ph(p, h)[source]
d_QT(Q, T)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
h_QT(Q, T)[source]
h_pQ(p, Q)[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
p_bubble(T)[source]
p_dew(T)[source]
p_sat(T)[source]
p_sat_TQ(T, Q)[source]
phase_ph(p, h)[source]
s_QT(Q, T)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]
viscosity_pQ(p, Q)[source]
viscosity_pT(p, T)[source]
viscosity_ph(p, h)[source]
tespy.tools.fluid_properties.wrappers.base.wrapper_registry(type)[source]

tespy.tools.fluid_properties.wrappers.coolprop module

CoolProp wrapper for fluid property calls.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/coolprop.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.coolprop.CoolPropWrapper(fluid, back_end=None, **kwargs)[source]

Bases: FluidPropertyWrapper

Q_ph(p, h)[source]
T_bubble(p)[source]
T_dew(p)[source]
T_ph(p, h)[source]
T_ps(p, s)[source]
T_sat(p)[source]
conductivity_pT(p, T)[source]
conductivity_ph(p, h)[source]
d_QT(Q, T)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
get_T_max(p)[source]
h_QT(Q, T)[source]
h_pQ(p, Q)[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
p_bubble(T)[source]
p_dew(T)[source]
p_sat(T)[source]
p_sat_TQ(T, Q)[source]
phase_ph(p, h)[source]
s_QT(Q, T)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]
viscosity_pQ(p, Q)[source]
viscosity_pT(p, T)[source]
viscosity_ph(p, h)[source]
class tespy.tools.fluid_properties.wrappers.coolprop.SerializableAbstractState(back_end, fluid_name)[source]

Bases: AbstractState

tespy.tools.fluid_properties.wrappers.iapws module

iapws wrapper for fluid property calls.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/iapws.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.iapws.IAPWSWrapper(fluid, back_end=None, **kwargs)[source]

Bases: FluidPropertyWrapper

Q_ph(p, h)[source]
T_ph(p, h)[source]
T_ps(p, s)[source]
T_sat(p)[source]
d_QT(Q, T)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
h_QT(Q, T)[source]
h_pQ(p, Q)[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
p_sat(T)[source]
phase_ph(p, h)[source]
s_QT(Q, T)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]
viscosity_pQ(p, Q)[source]
viscosity_pT(p, T)[source]
viscosity_ph(p, h)[source]

tespy.tools.fluid_properties.wrappers.incompressible module

Incompressible fluid wrapper based on tabular data.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/incompressible.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.incompressible.IncompressibleFluidWrapper(fluid, back_end=None, **kwargs)[source]

Bases: FluidPropertyWrapper

Class to represent a fluid in TESPy using tabular data

Parameters:
  • fluid (str) – Name of fluid

  • back_end (str, optional) – Name of the back end in context of CoolProp, by default None

  • temperature_data (np.ndarray) – Array of temperature measurements in SI units (Kelvin)

  • density_data (np.ndarray) – Array of corresponding density values in SI units (kg/m3)

  • heat_capacity_data (np.ndarray) – Array of corresponding heat capacity values in SI units (J/kg)

  • viscosity_data (np.ndarray) – Array of corresponding dynamic viscosity values in SI units (Pas)

  • conductivity_data (np.ndarray) – Array of corresponding thermal conductivity values in SI units (W/mK)

T_ph(p, h)[source]
T_ps(p, s)[source]
conductivity_pT(p, T)[source]
conductivity_ph(p, h)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
get_fitting_report()[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
phase_ph(p, h)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]
viscosity_pT(p, T)[source]
viscosity_ph(p, h)[source]

tespy.tools.fluid_properties.wrappers.pyromat module

pyromat wrapper for fluid property calls.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/pyromat.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.pyromat.PyromatWrapper(fluid, back_end=None, **kwargs)[source]

Bases: FluidPropertyWrapper

Q_ph(p, h)[source]
T_ph(p, h)[source]
T_ps(p, s)[source]
T_sat(p)[source]
d_QT(Q, T)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
h_QT(Q, T)[source]
h_pQ(p, Q)[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
p_sat(T)[source]
phase_ph(p, h)[source]
s_QT(Q, T)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]

tespy.tools.fluid_properties.wrappers.thermopack module

thermopack wrapper for fluid property calls.

This file is part of project TESPy (github.com/oemof/tespy). It’s copyrighted by the contributors recorded in the version control history of the file, available from its original location tespy/tools/fluid_properties/wrappers/thermopack.py

SPDX-License-Identifier: MIT

class tespy.tools.fluid_properties.wrappers.thermopack.ThermopackWrapper(fluid, back_end=None, **kwargs)[source]

Bases: FluidPropertyWrapper

Q_ph(p, h)[source]
T_dew(p)[source]
T_ph(p, h)[source]
T_ps(p, s)[source]
T_sat(p)[source]
d_QT(Q, T)[source]
d_pT(p, T)[source]
d_ph(p, h)[source]
h_QT(Q, T)[source]
h_pQ(p, Q)[source]
h_pT(p, T)[source]
h_ps(p, s)[source]
isentropic(p_1, h_1, p_2)[source]
p_dew(T)[source]
p_sat(T)[source]
p_sat_TQ(T, Q)[source]
phase_ph(p, h)[source]
s_QT(Q, T)[source]
s_pT(p, T)[source]
s_ph(p, h)[source]