Skip to content

Add reactant valid-temperature range queries - #101

Merged
markleader merged 1 commit into
nasa:mainfrom
markleader:feat/valid-temperature
Aug 3, 2026
Merged

Add reactant valid-temperature range queries#101
markleader merged 1 commit into
nasa:mainfrom
markleader:feat/valid-temperature

Conversation

@markleader

Copy link
Copy Markdown
Contributor

Summary

Add Fortran, C, and Python APIs for querying a database reactant’s inclusive valid temperature range in Kelvin before constructing a mixture.

Changes

  • Add SpeciesThermo%get_valid_temperature_range.
  • Return outer fit bounds for fitted reactants and T_ref ± 10 K for reference-only reactants.
  • Add the public C API cea_reactant_get_valid_temperature_range.
  • Add Python Reactant.get_valid_temperature_range().
  • Handle unknown reactants and uninitialized thermo data through existing error codes.
  • Add Fortran, C, and Python regression coverage.

Testing

  • ctest -R cea_core_test|cea_bindc_reactant_temperature_range' -V`
  • pytest source/bind/python/tests — 65 passed
  • Verified touched Fortran files contain no lines over 132 characters.

Compatibility / Numerical behavior

[x] No expected changes to numerical results
[] Expected changes (explain and provide validation)

@markleader
markleader merged commit 03dba1d into nasa:main Aug 3, 2026
23 checks passed
@markleader
markleader deleted the feat/valid-temperature branch August 3, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant