Line data Source code
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 "VectorKernel.h" 13 : #include "MooseFunctor.h" 14 : 15 : /** 16 : * Computes a finite element mass matrix meant for use in preconditioning schemes which require one 17 : */ 18 : class VectorMassMatrix : public VectorKernel 19 : { 20 : public: 21 : static InputParameters validParams(); 22 : 23 : VectorMassMatrix(const InputParameters & parameters); 24 : 25 2304 : virtual void computeResidual() override {} 26 : 27 : protected: 28 : virtual Real computeQpResidual() override; 29 : virtual Real computeQpJacobian() override; 30 : 31 : private: 32 : // The density for scaling the mass matrix 33 : const Real _density; 34 : };