libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.ThermoMixture

@author: F. Ramognino <federico.ramognino@polimi.it> Last update: 12/06/2023

Classes

ThermoMixture

Class for computing thermodynamic data of a mixture.

Module Contents

class libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.ThermoMixture.ThermoMixture(mixture: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture, thermoType: dict[str, str], **thermoData)[source]

Bases: libICEpost.src.base.Utilities.Utilities

Class for computing thermodynamic data of a mixture.

mix

The composition of the mixture.

Type:

Mixture

EoS

The equation of state of the mixture.

Type:

EquationOfState

Thermo

The thermodynamic model of the mixture.

Type:

Thermo

_mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture

The composition of the mixture

_EoS: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState.EquationOfStateMixing.EquationOfStateMixing

The equation of state of the mixture

_Thermo: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.Thermo.ThermoMixing.ThermoMixing

The thermodynamic model of the mixture

_db: libICEpost.Database._DatabaseClass

Database of thermodynamic data

property mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture

The composition of the mixture (Mixture).

property db: libICEpost.Database._DatabaseClass

Database of thermodynamic data (reference to database.chemistry.thermo)

property Thermo: libICEpost.src.thermophysicalModels.specie.thermo.Thermo.Thermo.Thermo

Thermodynamic data of this mixture.

property EoS: libICEpost.src.thermophysicalModels.specie.thermo.EquationOfState.EquationOfState.EquationOfState

The equation of state of this mixture.

Returns:

EquationOfState

__repr__() str[source]

Dict-like representation with thermodynamic model classes and mixture

__str__() ThermoMixture.__str__.str[source]

Printing the type of thermodynamic models and the mixture

update(mixture: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) ThermoMixture[source]

Update the mixture composition

Parameters:

mixture (Mixture, optional) – The new mixture. Defaults to None.

Returns:

self

Return type:

ThermoMixture

dcpdT(p: float, T: float) float[source]

dcp/dT [J/kg/K^2]

ha(p: float, T: float) float[source]

Absolute enthalpy [J/kg]

hs(p: float, T: float) float[source]

Sensible enthalpy [J/kg]

ua(p: float, T: float) float[source]

Absolute internal energy [J/kg]

us(p: float, T: float) float[source]

Sensible internal energy [J/kg]

cp(p: float, T: float) float[source]

Constant pressure heat capacity [J/kg/K]

cv(p: float, T: float) float[source]

Constant volume heat capacity [J/kg/K]

gamma(p: float, T: float) float[source]

Heat capacity ratio cp/cv [-]