Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */ 4 : /* */ 5 : /* Copyright 2017 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #include "PKAConstant.h" 10 : 11 : registerMooseObject("MagpieApp", PKAConstant); 12 : 13 : InputParameters 14 141 : PKAConstant::validParams() 15 : { 16 141 : InputParameters params = PKAEmpiricalBase::validParams(); 17 141 : params.addClassDescription("PKAs with constant mass, charge, energy, and rate"); 18 282 : params.addParam<Real>( 19 : "pka_rate", 20 282 : 1e-8, 21 : "PKA rate per unit volume (uses mesh units defined in the rasterizer and moose time units)"); 22 282 : params.addRequiredParam<Real>("Z", "PKA nuclear charge"); 23 282 : params.addRequiredParam<Real>("m", "PKA mass in amu"); 24 282 : params.addRequiredParam<Real>("E", "PKA energy in eV"); 25 141 : return params; 26 0 : } 27 : 28 78 : PKAConstant::PKAConstant(const InputParameters & parameters) 29 : : PKAEmpiricalBase(parameters), 30 78 : _pka_rate(getParam<Real>("pka_rate")), 31 156 : _Z(getParam<Real>("Z")), 32 156 : _m(getParam<Real>("m")), 33 234 : _E(getParam<Real>("E")) 34 : { 35 78 : }