https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
14registerMooseObject("StochasticToolsTestApp", MaterialReaction);
15
16registerMooseObjectReplaced("StochasticToolsTestApp",
18 "01/01/2027 00:00",
20
23{
25 params.addParam<MaterialPropertyName>(
26 "coefficient", 1.0, "Name of the material property acting as reaction coefficient.");
27 return params;
28}
29
31 : Reaction(parameters), _coeff(getMaterialProperty<Real>("coefficient"))
32{
33}
34
35Real
40
41Real
registerMooseObject("StochasticToolsTestApp", MaterialReaction)
registerMooseObjectReplaced("StochasticToolsTestApp", MaterialReaction, "01/01/2027 00:00", MatReaction)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
unsigned int _qp
virtual Real computeQpResidual()
virtual Real computeQpJacobian()
MaterialReaction(const InputParameters &parameters)
const MaterialProperty< Real > & _coeff
static InputParameters validParams()
virtual GenericReal< is_ad > computeQpResidual() override
static InputParameters validParams()
virtual Real computeQpJacobian() override