https://mooseframework.inl.gov
CoefReaction.h
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 #pragma once
11 
12 #include "Reaction.h"
13 
14 template <bool is_ad>
15 class CoefReactionTempl : public ReactionTempl<is_ad>
16 {
17 public:
19 
21 
22 protected:
23  virtual GenericReal<is_ad> computeQpResidual() override;
24  virtual Real computeQpJacobian() override;
25 
27  const Real _coef;
28 };
29 
Moose::GenericType< Real, is_ad > GenericReal
Definition: MooseTypes.h:648
Implements a simple consuming reaction term with weak form $(\psi_i, \lambda u_h)$.
Definition: Reaction.h:18
CoefReactionTempl< true > ADCoefReaction
Definition: CoefReaction.h:31
virtual Real computeQpJacobian() override
Compute this Kernel&#39;s contribution to the Jacobian at the current quadrature point.
Definition: CoefReaction.C:40
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Definition: CoefReaction.C:17
CoefReactionTempl< false > CoefReaction
Definition: CoefReaction.h:30
const Real _coef
input parameter multiplied by the reaction kernel
Definition: CoefReaction.h:27
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
CoefReactionTempl(const InputParameters &parameters)
Definition: CoefReaction.C:26
const InputParameters & parameters() const
Get the parameters of the object.
virtual GenericReal< is_ad > computeQpResidual() override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point.
Definition: CoefReaction.C:33