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.

length

Length unit. Default is ‘cm’.

Type:

str, optional

time

Time unit. Default is ‘s’

Type:

str, optional

quantity

Quantity unit. Default is ‘molec’

Type:

str, optional

energy

Energy unit. Default is ‘cal’

Type:

str, optional

act_energy

Activation energy unit. Default is ‘cal/mol’

Type:

str, optional

pressure

Pressure unit. Default is ‘bar’

Type:

str, optional

mass

Mass unit. Default is ‘kg’

Type:

str, optional

__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