pmutt.cantera.units.Units
- class pmutt.cantera.units.Units(length='cm', time='s', quantity='molec', energy='cal', act_energy='cal/mol', pressure='bar', mass='kg')
Bases:
object
Expresses units as Cantera CTI file.
- __init__(length='cm', time='s', quantity='molec', energy='cal', act_energy='cal/mol', pressure='bar', mass='kg')
Methods
__init__
([length, time, quantity, energy, ...])to_cti
()Writes the object in Cantera's CTI format.
Returns a useful dictionary for CTI IO functions.
Returns a dictionary compatible with Cantera's YAML format
- to_cti()
Writes the object in Cantera’s CTI format.
- to_cti_dict()
Returns a useful dictionary for CTI IO functions.
- Returns:
CTI_dict – Dictionary whose keys are the parameter names of CTI IO functions.
- Return type: