libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState ========================================================================================== .. py:module:: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState .. autoapi-nested-parse:: @author: F. Ramognino Last update: 17/10/2023 Package for handling mixing rules for combining equations of states of specie into a multi-component mixture Submodules ---------- .. toctree:: :maxdepth: 1 /autoapi/libICEpost/src/thermophysicalModels/thermoModels/thermoMixture/mixingRules/EquationOfState/EquationOfStateMixing/index /autoapi/libICEpost/src/thermophysicalModels/thermoModels/thermoMixture/mixingRules/EquationOfState/PerfectGasMixing/index Classes ------- .. autoapisummary:: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState.EquationOfStateMixing libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState.PerfectGasMixing Package Contents ---------------- .. py:class:: EquationOfStateMixing(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture) Bases: :py:obj:`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. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. attribute:: EoSType str Type of equation of state for which it is implemented .. attribute:: EoS EquationOfState The eqation of state of the mixture .. attribute:: mix The mixture .. attribute:: thermos _Database Link to database of equations of state (database.chemistry.thermo.EquationOfState) .. py:attribute:: _EoS :type: libICEpost.src.thermophysicalModels.specie.thermo.EquationOfState.EquationOfState.EquationOfState .. py:attribute:: _mix :type: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture .. py:attribute:: EoSType :type: str .. py:attribute:: thermos .. py:property:: EoS :type: libICEpost.src.thermophysicalModels.specie.thermo.EquationOfState.EquationOfState.EquationOfState The equation of state of the mixture. .. py:property:: mix :type: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture The mixture .. py:property:: Rgas :type: float The mass-specific gas constant of the mixture .. py:method:: update(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) -> bool Method to update the equation of state based on the mixture composition (interface). :param mix: Change the mixture. Defaults to None. :type mix: Mixture, optional :returns: If something changed :rtype: bool .. py:method:: _update(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) -> bool :abstractmethod: Method to update the equation of state based on the mixture composition (implementation). :param mix: Change the mixture. Defaults to None. :type mix: Mixture, optional :returns: If something changed :rtype: bool .. py:class:: PerfectGasMixing(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture) Bases: :py:obj:`libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.mixingRules.EquationOfState.EquationOfStateMixing.EquationOfStateMixing` Class handling mixing rule of multi-component mixture of perfect gasses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. attribute:: EoSType str Type of equation of state for which it is implemented .. attribute:: EoS EquationOfState The eqation of state of the mixture .. py:attribute:: EoSType :value: 'PerfectGas' .. py:method:: fromDictionary(dictionary) :classmethod: Create from dictionary. .. py:attribute:: _EoS .. py:method:: _update(mix: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None) -> bool Equation of state of perfect gas mixture depend only on R*. Update only the mixture composition. Pv/R*T = 1 :returns: if womething changed :rtype: bool