45 (*vector).add(
_dof_id, rhs_contrib);
Class used for caching additional information for elements such as the volume and centroid.
const std::vector< std::vector< dof_id_type > > & dofIndices() const
virtual void setCurrentElemInfo(const ElemInfo *elem_info)
Set the current ElemInfo object.
LinearFVElementalKernel(const InputParameters ¶ms)
Class constructor.
const ElemInfo * _current_elem_info
Pointer to the current element info.
virtual Real computeRightHandSideContribution()=0
Computes the right hand side contribution for the given variable on the current element.
static InputParameters validParams()
virtual Real computeMatrixContribution()=0
Computes the system matrix contribution for the given variable on the current element.
virtual void addRightHandSideContribution() override
Add this object's contribution to the system right hand side.
dof_id_type _dof_id
The dof index for the current variable associated with the element.
virtual void addMatrixContribution() override
Add this object's contribution to the system matrix.
Base class for finite volume kernels that contribute to a linear systems.
static InputParameters validParams()
const unsigned int _sys_num
Cache for the system number.
const unsigned int _var_num
Cache for the variable number.
std::vector< SparseMatrix< Number > * > _matrices
Pointers to the matrices that need contributions from this kernel.
std::vector< NumericVector< Number > * > _vectors
Pointers to the vectors that need contributions from this kernel.