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 "MFEMKernel.h" 15 : 16 : /** 17 : * Class to construct an MFEM mixed bilinear form integrator to apply to the equation system. 18 : */ 19 : class MFEMMixedBilinearFormKernel : public MFEMKernel 20 : { 21 : public: 22 : static InputParameters validParams(); 23 : 24 : MFEMMixedBilinearFormKernel(const InputParameters & parameters); 25 124 : ~MFEMMixedBilinearFormKernel() = default; 26 : 27 : /// Get name of the trial variable (gridfunction) the kernel acts on. 28 : /// Defaults to the name of the test variable labelling the weak form. 29 : virtual const VariableName & getTrialVariableName() const override; 30 : 31 : /// Create MFEM mixed bilinear form integrator. Ownership managed by the caller. 32 0 : virtual mfem::BilinearFormIntegrator * createMBFIntegrator() { return nullptr; } 33 : 34 : /// We override this to optionally transpose the mixed bilinear form integrator. 35 : virtual mfem::BilinearFormIntegrator * createBFIntegrator() override; 36 : 37 : protected: 38 : /// Name of the trial variable that the kernel is applied to. 39 : const VariableName _trial_var_name; 40 : /// Bool controlling whether to add the transpose of the integrator to the system 41 : bool _transpose; 42 : }; 43 : 44 : #endif