[sourcegen] Add clib Reaction API

This commit is contained in:
Ingmar Schoegl 2025-01-24 21:45:01 -06:00 committed by Ray Speth
parent 40ea1c40a9
commit e00d7043d0
3 changed files with 25 additions and 4 deletions

View File

@ -32,16 +32,17 @@ recipes:
implements: Kinetics::kineticsSpeciesIndex(const string&)
- name: advanceCoverages
implements: InterfaceKinetics::advanceCoverages(double)
# - name: getReactionString # <--- needs Reaction interface
# - name: getReactionType # <--- needs Reaction interface
# - name: getSourceTerms # <--- used by MATLAB interface for "massProdRate"
# - name: phase # <--- appears to be unused
- name: reaction # new
what: constructor # registers object in CLib storage
- name: phase
what: constructor
- name: getDeltaEnthalpy # previously: part of getDelta
- name: getDeltaGibbs # previously: part of getDelta
- name: getDeltaEntropy # previously: part of getDelta
- name: getDeltaSSEnthalpy # previously: part of getDelta
- name: getDeltaSSGibbs # previously: part of getDelta
- name: getDeltaSSEntropy # previously: part of getDelta
# - name: getSourceTerms # <--- used by MATLAB interface for "massProdRate"
# - name: start # <--- appears to be unused
- name: del
what: noop

View File

@ -0,0 +1,17 @@
# This file is part of Cantera. See License.txt in the top-level directory or
# at https://cantera.org/license.txt for license and copyright information.
docstring: |-
Auto-generated CLib API for %Cantera's Reaction class.
Implements an extension of CLib's traditional @c ct library.
prefix: rxn3
base: Reaction
parents: [] # List of parent classes
derived: [] # List of specializations
recipes:
#- name: new
- name: equation # previously: ctkin_getReactionString
- name: type # previously: ctkin_getReactionType
- name: del
- name: cabinetSize
- name: parentHandle

View File

@ -9,6 +9,7 @@ ignore_files: []
# Ignore these specific functions:
ignore_funcs:
ct_auto.yaml: [setLogWriter, setLogCallback]
ctkin_auto.yaml: [reaction, phase]
ctmix_auto.yaml: [addPhase]
# Cabinets with associated includes
@ -30,5 +31,7 @@ includes:
MultiPhase:
- cantera/equil/MultiPhase.h
- cantera/thermo/ThermoPhase.h
Reaction:
- cantera/kinetics/Reaction.h
Func1:
- cantera/numerics/Func1Factory.h