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 : #ifdef MOOSE_MFEM_ENABLED 11 : 12 : #pragma once 13 : 14 : #include "MFEMVectorFEMassKernel.h" 15 : 16 : /** 17 : * \f[ 18 : * (k du/dt, v) 19 : * \f] 20 : */ 21 : class MFEMTimeDerivativeVectorFEMassKernel : public MFEMVectorFEMassKernel 22 : { 23 : public: 24 : static InputParameters validParams(); 25 : 26 : MFEMTimeDerivativeVectorFEMassKernel(const InputParameters & parameters); 27 : 28 : /// Get name of the trial variable (gridfunction) the kernel acts on. 29 : /// Defaults to the name of the test variable labelling the weak form. 30 36 : virtual const VariableName & getTrialVariableName() const override { return _var_dot_name; } 31 : 32 : protected: 33 : /// Name of variable (gridfunction) representing time derivative of variable. 34 : const VariableName _var_dot_name; 35 : }; 36 : 37 : #endif