pmutt.io.omkm.write_cti
- pmutt.io.omkm.write_cti(phases=None, species=None, reactions=None, lateral_interactions=None, units=None, filename=None, T=300.0, P=1.0, newline='\n', use_motz_wise=False, ads_act_method='get_H_act', write_xml=True)
Writes the units, phases, species, lateral interactions, reactions and additional options in the CTI format for OpenMKM
- Parameters:
phases (list of
Phase
objects) – Phases to write in CTI file. The species should already be assigned.species (list of
Nasa
,Nasa9
orShomate
) – Species to write in CTI file.reactions (list of
SurfaceReaction
) – Reactions to write in CTI file.lateral_interactions (list of
PiecewiseCovEffect
objects, optional) – Lateral interactions to include in CTI file. Default is None.units (dict or
Unit
object, optional) – Units to write file. If a dict is inputted, the key is the quantity and the value is the unit. If not specified, uses the default units ofUnit
.filename (str, optional) – Filename for the input.cti file. If not specified, returns file as str.
T (float, optional) – Temperature in K. Default is 300 K.
P (float, optional) – Pressure in atm. Default is 1 atm.
newline (str, optional) – Type of newline to use. Default is Linux newline (’n’)
use_motz_wise (bool, optional) – Whether to use Motz-wise sticking coefficients or not. Default is False
ads_act_method (str, optional) – Activation method to use for adsorption reactions. Accepted options include ‘get_H_act’ and ‘get_G_act’. Default is ‘get_H_act’.
write_xml (bool, optional) – If True and
filename
is notNone
, automatically generates an XML file with the CTI file.
- Returns:
lines_out – If
filename
is None, CTI file is returned.- Return type: