CADETProcess.processModel.Reaction#
- class CADETProcess.processModel.Reaction(is_kinetic, stoich, k_fwd, k_bwd, k_fwd_min, exponents_fwd, exponents_bwd)[source]#
Bases:
StructureHelper class to store information about individual Mass Action Law Reactions.
This class represents an individual reaction within a MAL model, and stores information about the reaction’s stoichiometry, rate constants, and concentration exponents. It is used to create a ReactionScheme object, which contains information about all of the reactions in the MAL model.
- Attributes:
- component_systemComponentSystem
Component system of the reaction.
- k_fwdfloat
Forward reaction rate.
- k_bwdfloat
Backward reaction rate.
- is_kineticbool
Flag indicating whether the reaction is kinetic (i.e., whether the reaction rates are explicitly defined) or whether the reaction is assumed to be at rapid equilibrium.
- k_fwd_minfloat
Minimum value of the forward reaction rate in case of rapid equilibrium.
- exponents_fwdlist of float
Concentration exponents of the components in order of indices for forward reaction.
- exponents_bwdlist of float
Concentration exponents of the components in order of indices for backward reaction.
- stoichnp.ndarray
Stoichiometric coefficients of the components in the reaction.
n_compintint: Number of components.
k_eqfloatfloat: Equilibrium constant (Ratio of forward and backward reaction).
- exponents_bwd#
Descriptor for NumPy arrays whose size may depend on other instance attributes.
- exponents_fwd#
Descriptor for NumPy arrays whose size may depend on other instance attributes.
- is_kinetic#
Parameter descriptor constrained to boolean values.
Notes
This class also supports casting integers 0 and 1 to their boolean equivalents.
- k_bwd#
Parameter descriptor for unsigned floating-point parameters.
- k_fwd#
Parameter descriptor for unsigned floating-point parameters.
- k_fwd_min#
Parameter descriptor for unsigned floating-point parameters.
- stoich#
Descriptor for NumPy arrays whose size may depend on other instance attributes.