https://mooseframework.inl.gov
ArrayReaction.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 "ArrayKernel.h"
13 
14 class ArrayReaction : public ArrayKernel
15 {
16 public:
18 
20 
21 protected:
22  virtual void computeQpResidual(RealEigenVector & residual) override;
23  virtual RealEigenVector computeQpJacobian() override;
24  virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase & jvar) override;
25 
27  const MaterialProperty<Real> * const _r;
32 };
virtual RealEigenVector computeQpJacobian() override
Compute this Kernel&#39;s contribution to the diagonal Jacobian at the current quadrature point...
Definition: ArrayReaction.C:75
ArrayReaction(const InputParameters &parameters)
Definition: ArrayReaction.C:26
const MaterialProperty< RealEigenMatrix > *const _r_2d_array
matrix diffusion coefficient
Definition: ArrayReaction.h:31
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
This class provides an interface for common operations on field variables of both FE and FV types wit...
virtual RealEigenMatrix computeQpOffDiagJacobian(const MooseVariableFEBase &jvar) override
This is the virtual that derived classes should override for computing a full Jacobian component...
Definition: ArrayReaction.C:87
virtual void computeQpResidual(RealEigenVector &residual) override
Compute this Kernel&#39;s contribution to the residual at the current quadrature point, to be filled in residual.
Definition: ArrayReaction.C:46
Eigen::Matrix< Real, Eigen::Dynamic, Eigen::Dynamic > RealEigenMatrix
Definition: MooseTypes.h:149
const MaterialProperty< RealEigenVector > *const _r_array
array diffusion coefficient
Definition: ArrayReaction.h:29
const MaterialProperty< Real > *const _r
scalar diffusion coefficient
Definition: ArrayReaction.h:27
const InputParameters & parameters() const
Get the parameters of the object.
Eigen::Matrix< Real, Eigen::Dynamic, 1 > RealEigenVector
Definition: MooseTypes.h:146
static InputParameters validParams()
Definition: ArrayReaction.C:15