www.mooseframework.org
KineticDisPreConcAux.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 #include "KineticDisPreConcAux.h"
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<KineticDisPreRateAux>();
14  params.addClassDescription("Concentration of secondary kinetic species");
15  return params;
16 }
17 
18 KineticDisPreConcAux::KineticDisPreConcAux(const InputParameters & parameters)
19  : KineticDisPreRateAux(parameters)
20 {
21 }
22 
23 Real
25 {
26  const Real kinetic_rate = KineticDisPreRateAux::computeValue();
27 
28  Real u_new_aux = _u_old[_qp] + kinetic_rate * _dt;
29 
30  // Bound concentration for the dissolution case
31  if (u_new_aux < 0.0)
32  u_new_aux = 0.0;
33 
34  return u_new_aux;
35 }
KineticDisPreConcAux(const InputParameters &parameters)
Calculate the kinetic mineral species kinetic rate according to transient state theory rate law...
virtual Real computeValue() override
InputParameters validParams< KineticDisPreConcAux >()
InputParameters validParams< KineticDisPreRateAux >()
virtual Real computeValue() override