prometheus.thermo_data.parsers.cea
Parser for NASA CEA thermo.inp (NASA TP-2001-210959 format).
Produces the nasa9.json schema, identical to burcat.Burcat9Parser
output. The three-line interval format is shared with the Burcat9 parser
via _common.parse_nasa9_interval() — the only differences from
burcat9.thr are file-level framing:
A
thermokeyword and global T-bounds line precede the species data.Comment lines start with
!.The species section ends at
END PRODUCTS.
Only the PRODUCTS section is parsed; the REACTANTS section contains fuel/oxidiser entries with no polynomial data.
Raw source file: cea_thermo.inp
Classes
Parse a CEA |
- class prometheus_equilibrium.thermo_data.parsers.cea.CEAParser
Bases:
NASA9ParserParse a CEA
thermo.inpfile into nasa9.json schema.Per-species structure (identical field layout to Burcat9):
Line 1 — species name (cols 0–17), rest is reference/comment
Line 2 — descriptor: n_intervals, elements, condensed flag (parsed by
_common.parse_nasa9_descriptor())Per interval — 3 lines parsed by
_common.parse_nasa9_interval()
- parse(path: str, source: str = '') Dict[str, dict]
Parse path and return a dict keyed by canonical species ID.
- Parameters:
path – Path to the CEA thermo.inp file.
source – Human-readable label for this data source (e.g.
"CEA-NRL2002"). Stored in each record under the"source"key.