File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed
Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ constexpr mediumCaseType mediumCaseParams =
140140 0.0 , // C7 = -8X2 + 2X4
141141 0.0 , // CS1 = 3X2 + X3 + S
142142 0.0 , // CS2 = -3X2 + X4 + 2S
143- 0.01 // Cc = -3X2 + X4 (kinetic)
143+ 2.0 // Cc = -3X2 + X4 (kinetic)
144144 },
145145
146146 // Flag of mobile secondary species
Original file line number Diff line number Diff line change @@ -236,9 +236,8 @@ KineticReactions< REAL_TYPE,
236236 }
237237
238238 // get/calculate the forward and reverse rate constants for this reaction
239- // RealType const rateConstant = params.rateConstantForward( r ); //* exp( -params.m_activationEnergy[r] / ( constants::R *
239+ RealType const rateConstant = params.rateConstantForward ( r ); // * exp( -params.m_activationEnergy[r] / ( constants::R *
240240 // temperature ) );
241- RealType rateConstant;
242241 RealType const equilibriumConstant = params.equilibriumConstant ( r );
243242
244243 RealType quotient = 1.0 ;
@@ -254,8 +253,6 @@ KineticReactions< REAL_TYPE,
254253 }
255254 quotient = exp ( logQuotient );
256255
257- rateConstant = quotient < equilibriumConstant ? params.rateConstantForward ( r ) : params.rateConstantReverse ( r );
258-
259256 if constexpr ( CALCULATE_DERIVATIVES )
260257 {
261258 for ( IntType i = 0 ; i < PARAMS_DATA::numSpecies (); ++i )
@@ -274,8 +271,6 @@ KineticReactions< REAL_TYPE,
274271 RealType const productTerm_i = speciesConcentration[i] > 1e-100 ? pow ( speciesConcentration[i], s_ri ) : 0.0 ;
275272 quotient *= productTerm_i;
276273 }
277-
278- rateConstant = quotient < equilibriumConstant ? params.rateConstantForward ( r ) : params.rateConstantReverse ( r );
279274
280275 if constexpr ( CALCULATE_DERIVATIVES )
281276 {
Original file line number Diff line number Diff line change @@ -100,8 +100,7 @@ struct KineticReactionsParameters
100100 RealType stoichiometricMatrix ( IndexType const r, int const i ) const { return m_stoichiometricMatrix[r][i]; }
101101 RealType rateConstantForward ( IndexType const r ) const { return m_rateConstantForward[r]; }
102102 RealType rateConstantReverse ( IndexType const r ) const { return m_rateConstantReverse[r]; }
103- // RealType equilibriumConstant( IndexType const r ) const { return m_rateConstantForward[r] / m_rateConstantReverse[r]; }
104- RealType equilibriumConstant ( IndexType const r ) const { return m_equilibiriumConstant[r]; } // Just for MoMaS medium now
103+ RealType equilibriumConstant ( IndexType const r ) const { return m_rateConstantForward[r] / m_rateConstantReverse[r]; }
105104
106105
107106 CArrayWrapper< RealType, NUM_REACTIONS, NUM_SPECIES > m_stoichiometricMatrix;
You can’t perform that action at this time.
0 commit comments