Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "AuxKernel.h" 13 : 14 : /** 15 : * Calculate the kinetic mineral species kinetic rate according to transient 16 : * state theory rate law 17 : */ 18 : class KineticDisPreRateAux : public AuxKernel 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : KineticDisPreRateAux(const InputParameters & parameters); 24 : 25 353 : virtual ~KineticDisPreRateAux() {} 26 : 27 : protected: 28 : virtual Real computeValue() override; 29 : 30 : /// Equilibrium constant at reference temperature 31 : const VariableValue & _log_k; 32 : /// Specific reactive surface area, m^2/L solution 33 : const Real _r_area; 34 : /// Reference kinetic rate constant 35 : const Real _ref_kconst; 36 : /// Activation energy 37 : const Real _e_act; 38 : /// Gas constant, 8.314 J/mol/K 39 : const Real _gas_const; 40 : /// Reference temperature 41 : const Real _ref_temp; 42 : /// Actual system temperature 43 : const VariableValue & _sys_temp; 44 : /// Stoichiometric coefficients for involved primary species 45 : const std::vector<Real> _sto_v; 46 : /// Coupled primary species concentrations 47 : const std::vector<const VariableValue *> _vals; 48 : };