pmutt.omkm.units.Units

class pmutt.omkm.units.Units(length='cm', time='s', quantity='molec', energy='cal', act_energy='cal/mol', pressure='bar', mass='kg')

Bases: Units

OpenMKM implementation of the units. Currently there are no differences between this class and Units but one could add changes here in the future if necessary.

__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.

to_cti_dict()

Returns a useful dictionary for CTI IO functions.

to_omkm_yaml()

Returns a dictionary compatible with Cantera's YAML format

to_cti()

Writes the object in Cantera’s CTI format.

Parameters:

max_line_len (int, optional) – Maximum number of characters in the line. Default is 80.

Returns:

CTI_str – Object represented as a CTI string.

Return type:

str

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:

dict

to_omkm_yaml()

Returns a dictionary compatible with Cantera’s YAML format

Returns:

yaml_dict – Dictionary compatible with Cantera’s YAML format

Return type:

dict