libICEpost.src.thermophysicalModels.specie.reactions.ReactionModel.DissociationModel.ConstantDissociationFraction

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

Classes

ConstantDissociationFraction

Dissociation of a molecule based on a constant mass/mole fraction of the dissociated specie.

Module Contents

class libICEpost.src.thermophysicalModels.specie.reactions.ReactionModel.DissociationModel.ConstantDissociationFraction.ConstantDissociationFraction(molecule: libICEpost.src.thermophysicalModels.specie.specie.Molecule.Molecule, products: Iterable[libICEpost.src.thermophysicalModels.specie.specie.Molecule.Molecule], fraction: float, *, fracType: Literal['mass', 'mole'] = 'mass', state: libICEpost.src.thermophysicalModels.thermoModels.ThermoState.ThermoState = None)[source]

Bases: libICEpost.src.thermophysicalModels.specie.reactions.ReactionModel.DissociationModel.DissociationModel.DissociationModel

Dissociation of a molecule based on a constant mass/mole fraction of the dissociated specie.

_fraction: float

The mass/mole fraction to dissociate

_fracType: str

The method to compure the fraction to dissociate (mass or mole)

_molecule: libICEpost.src.thermophysicalModels.specie.specie.Molecule.Molecule

The molecule to dissociate

_reaction: libICEpost.src.thermophysicalModels.specie.reactions.Reaction.StoichiometricReaction.StoichiometricReaction

The reaction used to compute the dissociation

property fraction: float

The mass/mole fraction to dissociate

property fracType: str

The method to compure the fraction to dissociate (mass or mole)

property molecule: libICEpost.src.thermophysicalModels.specie.specie.Molecule.Molecule

The molecule to dissociate

property reaction: libICEpost.src.thermophysicalModels.specie.reactions.Reaction.StoichiometricReaction.StoichiometricReaction

The reaction used to compute the dissociation

classmethod fromDictionary(dictionary: dict)[source]

Construct from dictionary

Parameters:

dictionary (dict) – Dictionary containing: molecule (Molecule): The molecule to dissociate. products (Iterable[Molecule]): The molecules in which this dissociates (balance automatically computed). fraction (float): The mass/mole fraction of this molecule that dissociates. fracType (Literal[&quot;mass&quot;, &quot;mole&quot;], optional): How to compute the dissociation fraction. Defaults to “mass”.

Returns:

Instance of this class.

Return type:

ConstantDissociationFraction

_update(*, state: libICEpost.src.thermophysicalModels.thermoModels.ThermoState.ThermoState = None) bool[source]

Method to update the model (implementation).

Parameters:

state (ThermoState) – Thermodynamic state to update the model.

Returns:

if something changed

Return type:

bool

apply(mixture: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture, *, inplace: bool = True) libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture | None[source]

Apply the dissociation model to the mixture. In-place update the mixture composition. If inplace=False, return the changed mixture.

Parameters:
  • mixture (Mixture) – The mixture to manipulate to impose the dissociation

  • inplace (bool, optional) – If inplace is True, change mixture and return None, else update mixture compositon. Defaults to True.