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 : #include "KineticDisPreConcAux.h" 11 : 12 : registerMooseObject("ChemicalReactionsApp", KineticDisPreConcAux); 13 : 14 : InputParameters 15 495 : KineticDisPreConcAux::validParams() 16 : { 17 495 : InputParameters params = KineticDisPreRateAux::validParams(); 18 495 : params.addClassDescription("Concentration of secondary kinetic species"); 19 495 : return params; 20 0 : } 21 : 22 267 : KineticDisPreConcAux::KineticDisPreConcAux(const InputParameters & parameters) 23 267 : : KineticDisPreRateAux(parameters), _u_old(uOld()) 24 : { 25 265 : } 26 : 27 : Real 28 360848 : KineticDisPreConcAux::computeValue() 29 : { 30 360848 : const Real kinetic_rate = KineticDisPreRateAux::computeValue(); 31 : 32 360848 : Real u_new_aux = _u_old[_qp] + kinetic_rate * _dt; 33 : 34 : // Bound concentration for the dissolution case 35 360848 : if (u_new_aux < 0.0) 36 : u_new_aux = 0.0; 37 : 38 360848 : return u_new_aux; 39 : }