pmutt.omkm.phase.IdealGas
- class pmutt.omkm.phase.IdealGas(name, species=None, initial_state=None, kinetics=None, reactions=None, transport=None, options=None, note=None)
Bases:
IdealGas
OpenMKM implementation of the ideal gas phase. Currently there are no differences between this class and
IdealGas
but one could add changes here in the future if necessary.- __init__(name, species=None, initial_state=None, kinetics=None, reactions=None, transport=None, options=None, note=None)
Methods
__init__
(name[, species, initial_state, ...])append_species
(val)extend_species
(val)index_species
(name)pop_species
(i)remove_species
(name)to_cti
([max_line_len, delimiter])Writes the object in Cantera's CTI format.
to_omkm_yaml
([T, P, pressure_unit, units])Writes the object in Cantera's YAML format.
Attributes
- append_species(val)
- clear_species()
- copy_species()
- property elements
- extend_species(val)
- index_species(name)
- pop_species(i)
- remove_species(name)
- property species
- property species_names
- to_cti(max_line_len=80, delimiter='_')
Writes the object in Cantera’s CTI format.
- to_omkm_yaml(T=300.0, P=1.0, pressure_unit='atm', units=None)
Writes the object in Cantera’s YAML format.
- Parameters:
T (float, optional) – Temperature in K. Default is 300 K
P (float, optional) – Pressure in atm. Default is 1 atm
quantity_unit (str, optional) – Quantity unit to use to calculate A. Default is ‘molec’
length_unit (str, optional) – Length unit to use to calculate A. Default is ‘cm’
units (
Units
object) – If specified, quantity_unit and length_unit are overwritten. Default is None.delimiter (str, optional) – Delimiter used to separate header from footer of reaction and lateral interaction IDs. Default is ‘_’.
- Returns:
Dictionary compatible with Cantera’s YAML format
- Return type:
yaml_dict