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 
18 {
20  params.addParam<MaterialPropertyName>(
21  "coefficient", 1.0, "Name of the material property acting as reaction coefficient.");
22  return params;
23 }
24 
26  : Reaction(parameters), _coeff(getMaterialProperty<Real>("coefficient"))
27 {
28 }
29 
30 Real
32 {
34 }
35 
36 Real
38 {
40 }
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)
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