libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.Thermo.janaf7Mixing

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

Classes

janaf7Mixing

Class handling mixing of multi-component mixture: thermodynamic data in janaf7 definition.

Module Contents

class libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.Thermo.janaf7Mixing.janaf7Mixing(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture)[source]

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

Class handling mixing of multi-component mixture: thermodynamic data in janaf7 definition.

ThermoType

Type of thermodynamic data for which it is implemented

Type:

str

Thermo

The Thermo of the mixture

Type:

Thermo

ThermoType = 'janaf7'

The type of thermodynamic data to lookup for in the database

class janaf7(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture)[source]

Bases: libICEpost.src.thermophysicalModels.specie.thermo.Thermo.janaf7.janaf7

Thermodynamic data of mixture with NASA-7 polinomial coefficients consistent with janaf7 class.

classmethod fromDictionary(dictionary: dict)[source]
Abstractmethod:

Not to be used!

property Rgas

The mass-specific gas constant [J/kgK]

_mix
_combineMethod(func: str, *fargs, **fkwargs)[source]

Method for macro-ization of combination of properties based on mixture composition

Parameters:

func (str) – the name of the method to combine

Returns:

returns sum(y_i * thermo[specie_i].func(*fargs, **fkwargs))

Return type:

Thermo.func@ReturnType

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

Constant pressure heat capacity [J/kg/K]. If the temperature is not within Tlow and Thigh, and janaf7.__WARNING__ is True a warning is displayed.

cp(T) = sum_{i=0,4} ( a_{i} * T^i )

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

dcp/dT [J/kg/K^2] If the temperature is not within Tlow and Thigh, a warning is displayed.

dcp/dT(T) = sum_{i=1,4}(i * a_{i} * T^(i - 1))

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

Sensible enthalpy [J/kg]

hs = ha - hf

hf() float[source]

Enthalpy of formation [J/kg]

hf = ha(Tstd)

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

Absolute enthalpy [J/kg] If the temperature is not within Tlow and Thigh, a warning is displayed.

ha(T) = sum_{i=0,4} ( a_{i}/(i + 1) * T^i )*T + a_{5}

update(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) None[source]
classmethod fromDictionary(dictionary)[source]

Create from dictionary.

_Thermo
_update(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) bool[source]

No class data to be updated.

Parameters:

mix (Mixture, optional) – Change the mixture. Defaults to None.

Returns:

If something changed

Return type:

bool