https://mooseframework.inl.gov
ArrayReactionNodalKernel.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 
13 
17 template <bool is_ad>
19 {
20 public:
22 
24 
25 protected:
26  virtual void computeQpResidual(GenericRealEigenVector<is_ad> & residual) override;
27  virtual RealEigenVector computeQpJacobian() override;
28 
31 
33 };
34 
const RealEigenVector & _coeff
rate coefficient
Represents a nodal reaction term equivalent to $a * u$.
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
ArrayReactionNodalKernelTempl< true > ADArrayReactionNodalKernel
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
Template for array nodal kernels, using or not automatic differentiation.
static InputParameters validParams()
virtual void computeQpResidual(GenericRealEigenVector< is_ad > &residual) override
ArrayReactionNodalKernelTempl(const InputParameters &parameters)
virtual RealEigenVector computeQpJacobian() override
The user can override this function to compute the "on-diagonal" Jacobian contribution.
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
Definition: MooseTypes.h:147
Moose::GenericType< RealEigenVector, is_ad > GenericRealEigenVector
Definition: MooseTypes.h:719
ArrayReactionNodalKernelTempl< false > ArrayReactionNodalKernel