https://mooseframework.inl.gov
MaterialReaction.C
Go to the documentation of this file.
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 "MaterialReaction.h"
11 
12 #include "Material.h"
13 
14 registerMooseObject("StochasticToolsTestApp", MaterialReaction);
15 
16 registerMooseObjectReplaced("StochasticToolsTestApp", MaterialReaction, "01/01/2027 00:00", MatReaction);
17 
20 {
22  params.addParam<MaterialPropertyName>(
23  "coefficient", 1.0, "Name of the material property acting as reaction coefficient.");
24  return params;
25 }
26 
28  : Reaction(parameters), _coeff(getMaterialProperty<Real>("coefficient"))
29 {
30 }
31 
32 Real
34 {
36 }
37 
38 Real
40 {
42 }
static InputParameters validParams()
virtual Real computeQpJacobian()
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseObjectReplaced("StochasticToolsTestApp", MaterialReaction, "01/01/2027 00:00", MatReaction)
static InputParameters validParams()
virtual Real computeQpJacobian() override
const MaterialProperty< Real > & _coeff
MaterialReaction(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
registerMooseObject("StochasticToolsTestApp", MaterialReaction)
virtual Real computeQpResidual()
virtual GenericReal< is_ad > computeQpResidual() override
unsigned int _qp