网页 综合 更新时间 2026-11-15 00:03:30

Converting Data from NASA ThermoBuild — Cantera 3.2.0 documentation

自动蜘蛛 cantera.org 正文约 2233 字
Thermodynamic data for a range of species can be obtained from the NASA ThermoBuild tool. This thermodynamic data is described using the 9-coefficient NASA polynomial parameterization, which is implemented by Cantera.
To generate an input file containing thermodynamic data, use the ThermoBuild web interface to select the elements you want to include, and click process. Then, select the species you want to include in your mechanism and click continue. Select the content on the resulting page starting with the line that says thermo, and ending with the line that says END REACTANTS and save it to a file.
Next, we need to make a few modifications to this file so it contains all of the information needed to be processed by Cantera’s CK file parser. For this example, let’s suppose you have selected just the species CO and CO2 from ThermoBuild.
Modify the first line of the file so that it reads thermo nasa9. This is done to distinguish this input format from the one used for the 7-coefficient NASA polynomials.
Replace the last two lines (END PRODUCTS and END REACTANTS) with a single line that reads END.
If you only want to generate a species database that can be referenced from other Cantera input files, the above modifications are sufficient. The last step is simply to convert the input file to the Cantera YAML format using ck2yaml. If you named the file mythermo.txt, then the command to convert it would be:
This will generate the file mythermo.yaml. You can then reference the species definitions from this file in phase definitions in other Cantera input files, for example:
To create a complete phase definition, you also need to add two sections to the top of the ThermoBuild input file. First, a section declaring all of the elements:
And second, a section declaring all of the species:
The resulting input file should look like the following:
This file (saved for example as myphase.txt) can then be converted to the Cantera YAML format using the ck2yaml utility from a shell:
This will generate a an input file named myphase.yaml with a phase named gas that can be directly imported in Cantera.
© Copyright 2001-2025, Cantera Developers.
Created using Sphinx 7.3.7.
Built with the PyData Sphinx Theme 0.15.4.
访问原文 返回搜索 https://cantera.org/stable/userguide/thermobuild.html
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。