tools¶
Module with miscellanous tools.
-
pymars.tools.
compare_models
(model1, model2)¶ Checks whether two Cantera models are equivalent.
- Parameters
model1 (cantera.Solution) – First Cantera model object
model2 (cantera.Solution) – Second Cantera model object
- Returns
True
if models match,False
if models disagree- Return type
-
pymars.tools.
convert
(model_file, thermo_file=None, transport_file=None, path='')¶ Function to convert between Cantera and Chemkin model formats.
- Parameters
- Returns
Path to converted file, or list of files (for Chemkin)
- Return type
Example
>>> convert('gri30.inp') gri30.cti
>>> convert('gri30.cti') [gri30.inp, gri30_thermo.dat, gri30_transport.dat]