Difference between CTI and XML formats

144 views
Skip to first unread message

Johncen

unread,
Jun 5, 2018, 6:19:59 AM6/5/18
to Cantera Users' Group
Hi,

I am new to Cantera. I happened to find many mechanisms stored in the library actually have two formats: CTI and XML. I was wondering what are the differences between these two formats? It seems to be the same while running calculations.

Thank you !

Bryan W. Weber

unread,
Jun 5, 2018, 9:19:13 AM6/5/18
to Cantera Users' Group
Hi,

The formats contain the same information (mostly). The main difference is that reading/writing XML files is a pain for humans, while the CTI syntax (very similar to Python syntax) is much easier. See here for more: http://cantera.org/docs/sphinx/html/cti/input-files.html#two-file-formats

Best,
Bryan

Walter Dal'Maz Silva

unread,
Jun 5, 2018, 2:13:59 PM6/5/18
to Cantera Users' Group
Hi,

Although I am aware of Bryan's remarks and most people prefer reading CTI, I adopted XML as my default working format because I can use an adapted editor (basic functionalities available in Eclipse, several commercial editors available with improved capabilities) to visualize the files in a tabular-like format. With comments being interpreted by the editor, I can easily navigate through files and use tree view in an improved fashion.

Regards,

Walter

Johncen

unread,
Jun 6, 2018, 5:29:01 PM6/6/18
to Cantera Users' Group
Hi Bryan,

Thanks for your help. Yes, the CTI format is more easier to read.

Best,

Johncen
Reply all
Reply to author
Forward
0 new messages