mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[sourcegen] Add clib Reaction API
This commit is contained in:
parent
40ea1c40a9
commit
e00d7043d0
@ -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
|
||||
|
17
interfaces/sourcegen/sourcegen/_data/ctrxn_auto.yaml
Normal file
17
interfaces/sourcegen/sourcegen/_data/ctrxn_auto.yaml
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user