pmutt.cantera.phase.StoichSolid
- class pmutt.cantera.phase.StoichSolid(name, species=None, initial_state=None, transport=None, reactions=None, options=None, density=None, note=None)
Bases:
Phase
Expresses stoichiometric solid as Cantera CTI file. Inherits from
Phase
.- species
Species present in Phase
- Type:
list of
_ModelBase
objects
- 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=None, initial_state=None, transport=None, reactions=None, options=None, density=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, mass_unit, ...])Writes the object in Cantera's CTI 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, mass_unit='g', length_unit='cm', units=None)
Writes the object in Cantera’s CTI format.
- Parameters:
max_line_len (int, optional) – Maximum number of characters in the line. Default is 80.
mass_unit (str, optional) – Mass unit for density. Default is ‘g’
length_unit (str, optional) – Length unit for density. Default is ‘cm’
units (
Units
object, optional) – If specified, mass_unit and length_unit are overwritten. Default is None.
- Returns:
CTI_str – Object represented as a CTI string.
- Return type: