pmutt.omkm.phase.InteractingInterface
- class pmutt.omkm.phase.InteractingInterface(name, species=[], site_density=None, phases=None, initial_state=None, kinetics=None, reactions=None, transport=None, interactions=None, use_motz_wise=False, options=None, note=None)
Bases:
Phase
OpenMKM implementation of interacting interface. Inherits from
Phase
.- species
Species present in Phase
- Type:
list of
_ModelBase
objects
- interactions
Source of lateral interactions. If any lateral interactions in CTI file occur in this phase, specify ‘all’. Default is None.
- Type:
str, optional
- initial_state
Currently not supported. Gives ability to set initial temperature, pressure or other operating variables of the phase. Default is None.
- Type:
None, optional
- transport
Currently not supported. Gives ability to specify transport model to use for phase. Default is None.
- Type:
None, optional
- options
Currently not supported. Specify special options to the phase. Default is None.
- Type:
None, optional
- __init__(name, species=[], site_density=None, phases=None, initial_state=None, kinetics=None, reactions=None, transport=None, interactions=None, use_motz_wise=False, options=None, note=None)
Methods
__init__
(name[, species, site_density, ...])append_species
(val)extend_species
(val)index_species
(name)pop_species
(i)remove_species
(name)to_cti
([max_line_len, quantity_unit, ...])Writes the object in Cantera's CTI format.
to_omkm_yaml
([T, P, quantity_unit, ...])Writes the object in Cantera's YAML format.
Attributes
- append_species(val)
- property beps
- 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, quantity_unit='molec', length_unit='cm', units=None, delimiter='_')
Writes the object in Cantera’s CTI format.
- Parameters:
max_line_len (int, optional) – Maximum number of characters in the line. Default is 80.
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:
CTI_str – Object represented as a CTI string.
- Return type:
- to_omkm_yaml(T=300.0, P=1.0, quantity_unit='molec', length_unit='cm', 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.
- Returns:
Dictionary compatible with Cantera’s YAML format
- Return type:
yaml_dict