|
3 | 3 | Mass Action Law
|
4 | 4 | ~~~~~~~~~~~~~~~
|
5 | 5 |
|
6 |
| -**Group /input/model/unit_XXX/reaction - REACTION_MODEL = MASS_ACTION_LAW** |
| 6 | +**Group /input/model/unit_XXX/reaction_phase/reaction_model_YYY - REACTION_MODEL = MASS_ACTION_LAW** |
7 | 7 |
|
8 | 8 | For information on model equations, refer to :ref:`mass_action_law_model`.
|
9 | 9 |
|
10 |
| -``MAL_KFWD_BULK`` |
| 10 | +Notes |
| 11 | +----- |
11 | 12 |
|
12 |
| - Forward rate constants for bulk volume reactions (available for external functions) |
13 |
| - |
14 |
| - ================ ========================= =================================== |
15 |
| - **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}` |
16 |
| - ================ ========================= =================================== |
17 |
| - |
18 |
| -``MAL_KBWD_BULK`` |
| 13 | +- ``reaction_phase`` refers to one of the phase-specific groups listed in :ref:`FFReaction`, e.g., ``reaction_bulk``, ``reaction_solid``, or ``reaction_particle_YYY`` (for particle type ``YYY``). |
| 14 | +- Each ``reaction_model_YYY`` is one instance of a reaction model and can contain multiple reactions (lengths denoted by ``NREACT`` below). |
| 15 | +- Dimensions of matrices depend on the hosting phase of this model instance: |
19 | 16 |
|
20 |
| - Backward rate constants for bulk volume reactions (available for external functions) |
21 |
| - |
22 |
| - ================ ========================= =================================== |
23 |
| - **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}` |
24 |
| - ================ ========================= =================================== |
25 |
| - |
26 |
| -``MAL_KFWD_LIQUID`` |
| 17 | + - Bulk phase or particle liquid phase: ``NVAR = NCOMP`` |
| 18 | + - Particle solid phase: ``NVAR = NTOTALBOUND`` (total number of bound states across all components) |
27 | 19 |
|
28 |
| - Forward rate constants for particle liquid phase reactions (available for external functions) |
29 |
| - |
30 |
| - ================ ========================= =================================== |
31 |
| - **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}` |
32 |
| - ================ ========================= =================================== |
33 |
| - |
34 |
| -``MAL_KBWD_LIQUID`` |
| 20 | +``MAL_KFWD`` |
35 | 21 |
|
36 |
| - Backward rate constants for particle liquid phase reactions (available for external functions) |
| 22 | + Forward rate constants for reactions in this phase (available for external functions) |
37 | 23 |
|
38 | 24 | ================ ========================= ===================================
|
39 | 25 | **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}`
|
40 | 26 | ================ ========================= ===================================
|
41 | 27 |
|
42 |
| -``MAL_KFWD_SOLID`` |
| 28 | +``MAL_KBWD`` |
43 | 29 |
|
44 |
| - Forward rate constants for particle solid phase reactions (available for external functions) |
| 30 | + Backward rate constants for reactions in this phase (available for external functions) |
45 | 31 |
|
46 | 32 | ================ ========================= ===================================
|
47 | 33 | **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}`
|
48 | 34 | ================ ========================= ===================================
|
49 |
| - |
50 |
| -``MAL_KBWD_SOLID`` |
51 | 35 |
|
52 |
| - Backward rate constants for particle solid phase reactions (available for external functions) |
53 |
| - |
54 |
| - ================ ========================= =================================== |
55 |
| - **Type:** double **Range:** :math:`\geq 0` **Length:** :math:`\texttt{NREACT}` |
56 |
| - ================ ========================= =================================== |
57 |
| - |
58 |
| -``MAL_STOICHIOMETRY_BULK`` |
| 36 | +``MAL_STOICHIOMETRY`` |
59 | 37 |
|
60 |
| - Stoichiometric matrix of bulk volume reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage |
| 38 | + Stoichiometric matrix as :math:`\texttt{NVAR} \times \texttt{NREACT}` matrix in row-major storage (phase-dependent ``NVAR``, see Notes) |
61 | 39 |
|
62 | 40 | ================ ========================================================
|
63 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
| 41 | + **Type:** double **Length:** :math:`\texttt{NVAR} \cdot \texttt{NREACT}` |
64 | 42 | ================ ========================================================
|
65 |
| - |
66 |
| -``MAL_EXPONENTS_BULK_FWD`` |
67 |
| - |
68 |
| - Forward exponent matrix of bulk volume reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_BULK}` by default) |
69 |
| - |
70 |
| - ================ ======================================================== |
71 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
72 |
| - ================ ======================================================== |
73 |
| - |
74 |
| -``MAL_EXPONENTS_BULK_BWD`` |
75 | 43 |
|
76 |
| - Backward exponent matrix of bulk volume reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_BULK}` by default) |
77 |
| - |
78 |
| - ================ ======================================================== |
79 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
80 |
| - ================ ======================================================== |
81 |
| - |
82 |
| -``MAL_STOICHIOMETRY_LIQUID`` |
| 44 | +``MAL_EXPONENTS_FWD`` |
83 | 45 |
|
84 |
| - Stoichiometric matrix of particle liquid phase reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage |
| 46 | + Forward exponent matrix as :math:`\texttt{NVAR} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY}` by default) |
85 | 47 |
|
86 | 48 | ================ ========================================================
|
87 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
| 49 | + **Type:** double **Length:** :math:`\texttt{NVAR} \cdot \texttt{NREACT}` |
88 | 50 | ================ ========================================================
|
89 |
| - |
90 |
| -``MAL_EXPONENTS_LIQUID_FWD`` |
91 | 51 |
|
92 |
| - Forward exponent matrix of particle liquid phase reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_LIQUID}` by default) |
93 |
| - |
94 |
| - ================ ======================================================== |
95 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
96 |
| - ================ ======================================================== |
97 |
| - |
98 |
| -``MAL_EXPONENTS_LIQUID_BWD`` |
| 52 | +``MAL_EXPONENTS_BWD`` |
99 | 53 |
|
100 |
| - Backward exponent matrix of particle liquid phase reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_LIQUID}` by default) |
| 54 | + Backward exponent matrix as :math:`\texttt{NVAR} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY}` by default) |
101 | 55 |
|
102 | 56 | ================ ========================================================
|
103 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
| 57 | + **Type:** double **Length:** :math:`\texttt{NVAR} \cdot \texttt{NREACT}` |
104 | 58 | ================ ========================================================
|
105 |
| - |
106 |
| -``MAL_EXPONENTS_LIQUID_FWD_MODSOLID`` |
107 | 59 |
|
108 |
| - Forward solid phase modifier exponent matrix of particle liquid phase reactions as :math:`\texttt{NTOTALBND} \times \texttt{NREACT}` matrix in row-major storage (optional, defaults to all 0) |
109 |
| - |
110 |
| - ================ ============================================================ |
111 |
| - **Type:** double **Length:** :math:`\texttt{NTOTALBND} \cdot \texttt{NREACT}` |
112 |
| - ================ ============================================================ |
113 |
| - |
114 |
| -``MAL_EXPONENTS_LIQUID_BWD_MODSOLID`` |
| 60 | +Examples |
| 61 | +-------- |
| 62 | +.. code-block:: |
115 | 63 |
|
116 |
| - Backward solid phase modifier exponent matrix of particle liquid phase reactions as :math:`\texttt{NTOTALBND} \times \texttt{NREACT}` matrix in row-major storage (optional, defaults to all 0) |
117 |
| - |
118 |
| - ================ ============================================================ |
119 |
| - **Type:** double **Length:** :math:`\texttt{NTOTALBND} \cdot \texttt{NREACT}` |
120 |
| - ================ ============================================================ |
121 |
| - |
122 |
| -``MAL_STOICHIOMETRY_SOLID`` |
| 64 | +Cross-phase reaction that consumes one bulk and one liquid component and produces a solid state (one reaction):: |
123 | 65 |
|
124 |
| - Stoichiometric matrix of particle solid phase reactions as :math:`\texttt{NTOTALBND} \times \texttt{NREACT}` matrix in row-major storage |
125 |
| - |
126 |
| - ================ ============================================================ |
127 |
| - **Type:** double **Length:** :math:`\texttt{NTOTALBND} \cdot \texttt{NREACT}` |
128 |
| - ================ ============================================================ |
129 |
| - |
130 |
| -``MAL_EXPONENTS_SOLID_FWD`` |
| 66 | + input.model.unit_000.reaction_bulk_000.NREAC_bulk = 1 |
| 67 | + input.model.unit_000.reaction_bulk_000.type = MASS_ACTION_LAW |
| 68 | + input.model.unit_000.reaction_bulk_000.reaction_model_000.MAL_KFWD = [1.0] |
| 69 | + input.model.unit_000.reaction_bulk_000.reaction_model_000.MAL_KBWD = [1.0] |
| 70 | + input.model.unit_000.reaction_bulk_000.reaction_model_000.MAL_STOICHIOMETRY = [... length NCOMP*1 ...] |
131 | 71 |
|
132 |
| - Forward exponent matrix of particle solid phase reactions as :math:`\texttt{NTOTALBND} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_SOLID}` by default) |
133 |
| - |
134 |
| - ================ ============================================================ |
135 |
| - **Type:** double **Length:** :math:`\texttt{NTOTALBND} \cdot \texttt{NREACT}` |
136 |
| - ================ ============================================================ |
137 |
| - |
138 |
| -``MAL_EXPONENTS_SOLID_BWD`` |
| 72 | +Cross-Phase reaction in a pore:: |
139 | 73 |
|
140 |
| - Backward exponent matrix of particle solid phase reactions as :math:`\texttt{NTOTALBND} \times \texttt{NREACT}` matrix in row-major storage (optional, calculated from :math:`\texttt{MAL_STOICHIOMETRY_SOLID}` by default) |
141 |
| - |
142 |
| - ================ ============================================================ |
143 |
| - **Type:** double **Length:** :math:`\texttt{NTOTALBND} \cdot \texttt{NREACT}` |
144 |
| - ================ ============================================================ |
145 |
| - |
146 |
| -``MAL_EXPONENTS_SOLID_FWD_MODLIQUID`` |
| 74 | + input.model.unit_000.particle_type_000.NREAC_PORE = 1 |
| 75 | + input.model.unit_000.particle_type_000.reaction_pore_000.type = MASS_ACTION_LAW |
| 76 | + input.model.unit_000.particle_type_000.reaction_pore_000.reaction_model_000.MAL_KFWD = [1.0] |
| 77 | + input.model.unit_000.particle_type_000.reaction_pore_000.reaction_model_000.MAL_KBWD = [1.0] |
| 78 | + input.model.unit_000.particle_type_000.reaction_pore_000.reaction_model_000.MAL_STOICHIOMETRY = [... length NCOMP*1 ...] |
147 | 79 |
|
148 |
| - Forward liquid phase modifier exponent matrix of particle solid phase reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, defaults to all 0) |
149 |
| - |
150 |
| - ================ ======================================================== |
151 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
152 |
| - ================ ======================================================== |
153 |
| - |
154 |
| -``MAL_EXPONENTS_SOLID_BWD_MODLIQUID`` |
| 80 | +See also |
| 81 | +-------- |
155 | 82 |
|
156 |
| - Backward liquid phase modifier exponent matrix of particle solid phase reactions as :math:`\texttt{NCOMP} \times \texttt{NREACT}` matrix in row-major storage (optional, defaults to all 0) |
157 |
| - |
158 |
| - ================ ======================================================== |
159 |
| - **Type:** double **Length:** :math:`\texttt{NCOMP} \cdot \texttt{NREACT}` |
160 |
| - ================ ======================================================== |
| 83 | +- Cross-phase variant: :ref:`mass_action_law_cross_phase_config` (supports liquid/solid modifiers and bulk coupling) |
0 commit comments