libICEpost.src.thermophysicalModels.thermoModels.ThermoModel
@author: F. Ramognino <federico.ramognino@polimi.it> Last update: 12/06/2023
Classes
Base class for handling a thermodynamic model |
Module Contents
- class libICEpost.src.thermophysicalModels.thermoModels.ThermoModel.ThermoModel(mixture: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.ThermoMixture.ThermoMixture, *, mass: float = None, pressure: float = None, volume: float = None, temperature: float = None, density: float = None)[source]
Bases:
libICEpost.src.base.Utilities.UtilitiesBase class for handling a thermodynamic model
- _state: libICEpost.src.thermophysicalModels.thermoModels.ThermoState.ThermoState
The current thermodynamic state
- _ThermoStateClass: libICEpost.src.thermophysicalModels.thermoModels.ThermoState.ThermoState
The ThermoState class used for this engine model
- property mixture: libICEpost.src.thermophysicalModels.thermoModels.thermoMixture.ThermoMixture.ThermoMixture
Reference to the mixture in the system
- Returns:
thermodynamic mixture
- Return type:
- property state: libICEpost.src.thermophysicalModels.thermoModels.ThermoState.ThermoState
return current state of the system (read-only)
- Returns:
dataClass for the thermodynamic state of the system
- Return type:
- _mixture
- initializeState(/, *, mixture: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None, mass: float = None, pressure: float = None, volume: float = None, temperature: float = None, density: float = None) ThermoModel[source]
Initialize the state of the system through a StateInitializer.
- Parameters:
mixture (Mixture, optional) – The mixture composition in the system. Defaults to None.
mass (float, optional) – [kg]. Defaults to None.
pressure (float, optional) – [Pa]. Defaults to None.
volume (float, optional) – [m^3]. Defaults to None.
temperature (float, optional) – [K]. Defaults to None.
density (float, optional) – [kg/m^3]. Defaults to None.
- Returns:
self
- Return type:
- update(/, *, mixture: libICEpost.src.thermophysicalModels.specie.specie.Mixture.Mixture = None, pressure: float = None, volume: float = None, temperature: float = None, dQ_in: float = 0.0, dm_in: float = 0.0) tuple[float, float][source]
Update state of the system based on control variables through keyword arguments.
- Parameters:
mixture (Mixture, optional) – The mixture composition in the system. Defaults to None.
pressure (float, optional) – [Pa]. Defaults to None.
volume (float, optional) – [m^3]. Defaults to None.
temperature (float, optional) – [K]. Defaults to None.
dQ_in (float, optional) – Entering heat. Defaults to 0.0.
dm_in (float, optional) – Entering mass. Defaults to 0.0.
TODO – dQ_in, dm_in
- Returns:
dQ_in and dm_in
- Return type:
tuple[float,float]