libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState

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

Package for handling mixing rules for combining equations of states of specie into a multi-component mixture

Submodules

Classes

EquationOfStateMixing

Class handling mixing rule to combine equation of states of specie into a multi-component mixture.

PerfectGasMixing

Class handling mixing rule of multi-component mixture of perfect gasses.

Package Contents

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

Bases: libICEpost.src.base.BaseClass.BaseClass

Class handling mixing rule to combine equation of states of specie into a multi-component mixture.

Defines a moethod to generate the equation of state of a mixture of gasses.


EoSType

str Type of equation of state for which it is implemented

EoS

EquationOfState The eqation of state of the mixture

mix

The mixture

thermos

_Database Link to database of equations of state (database.chemistry.thermo.EquationOfState)

_EoS: libICEpost.src.thermophysicalModels.specie.thermo.EquationOfState.EquationOfState.EquationOfState
_mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture
EoSType: str
thermos
property EoS: libICEpost.src.thermophysicalModels.specie.thermo.EquationOfState.EquationOfState.EquationOfState

The equation of state of the mixture.

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

The mixture

property Rgas: float

The mass-specific gas constant of the mixture

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

Method to update the equation of state based on the mixture composition (interface).

Parameters:

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

Returns:

If something changed

Return type:

bool

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

Method to update the equation of state based on the mixture composition (implementation).

Parameters:

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

Returns:

If something changed

Return type:

bool

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

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

Class handling mixing rule of multi-component mixture of perfect gasses.


EoSType

str Type of equation of state for which it is implemented

EoS

EquationOfState The eqation of state of the mixture

EoSType = 'PerfectGas'
classmethod fromDictionary(dictionary)[source]

Create from dictionary.

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

Equation of state of perfect gas mixture depend only on R*. Update only the mixture composition.

Pv/R*T = 1

Returns:

if womething changed

Return type:

bool