https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ReactionNodalKernel.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 "ReactionNodalKernel.h"
11
12#include "Function.h"
13
15
18{
20 params.addClassDescription("Implements a simple consuming reaction term at nodes");
21 params.addParam<Real>("coeff", 1., "A coefficient for multiplying the reaction term");
22 return params;
23}
24
26 : NodalKernel(parameters), _coeff(getParam<Real>("coeff"))
27{
28}
29
30Real
35
36Real
registerMooseObject("MooseApp", ReactionNodalKernel)
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object.
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump.
unsigned int _qp
Quadrature point index.
Base class for creating nodal kernels with hand-coded Jacobians.
Definition NodalKernel.h:19
static InputParameters validParams()
Class constructor.
Definition NodalKernel.C:18
const VariableValue & _u
Value of the unknown variable this is acting on.
Definition NodalKernel.h:82
Represents a nodal reaction term equivalent to $a * u$.
ReactionNodalKernel(const InputParameters &parameters)
virtual Real computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
virtual Real computeQpResidual() override
The user can override this function to compute the residual at a node.
const Real _coeff
An optional input-file supplied rate coefficient.
static InputParameters validParams()