Dear Emanuele,
Thank you for clarifying! Now I know where to start. As it turns out, even in the simple example, you do need to specify the mechanism; in the example, this is done in the line
gri3 = ct.Solution('gri30.xml')
This loads the GRI 3.0 mechanism that is designed for combustion of natural gas (primarily CH4). The mechanism is loaded into a class called a Solution, which stores the thermochemistry and kinetic data, as well as the current pressure, temperature, and other state variables. So, you will need to specify a mechanism, which you can download from many places on the Internet (LLNL might be a good choice). There are two formats for the mechanisms accepted by Cantera, one called CTML (with the file extension .xml) and one called CTI (with file extension .cti). The format that the mechanism from LLNL (and most other places as well) will come in is called the CHEMKIN format. There is a utility included with Cantera called
ck2cti that converts ChemKin 2 CTI. Unfortunately, the documentation for ck2cti is a bit sparse, but you can find some here:
http://www.cantera.org/docs/sphinx/html/matlab/input-tutorial.html?highlight=ck2cti#converting-ck-format-files. You can find further help by typing
at the command line, either Windows or Linux.
From there, you can load the mechanism into your simulation by replacing the gri3 line:
jet_fuel = ct.Solution('chem.cti')
and then using jet_fuel in place of gri3 everywhere else in the code.
To specify the composition, you're going to need to do a bit of research. As you noted, there are hundreds or thousands of chemicals in real jet fuel, most of which we don't have mechanisms for. Therefore, researchers have developed a number of so-called surrogate fuels, with a limited number of components that can be modeled, but which still reproduce either the chemical or physical behavior of jet fuel. As I said, you'll have to do some research to find out the best surrogate for your needs. After that, you can specify the composition the same was as you did for the methane, just using the names of the new fuel molecules instead of the methane.
Depending on what kind of information you're going to need, Cantera may or may not be able to provide that. Certainly, many or all of the gas-phase situations are covered, but if you need liquid phase data, Cantera might not have all the tools you're looking for, but happily, you should be able to add whatever you need!
Please let me (us) know if we can help any more!
Best,
Bryan