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 : #include "MFEMBoundaryCondition.h" 14 : 15 : class MFEMIntegratedBC : public MFEMBoundaryCondition 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : MFEMIntegratedBC(const InputParameters & parameters); 21 30 : virtual ~MFEMIntegratedBC() = default; 22 : 23 : /// Create MFEM integrator to apply to the RHS of the weak form. Ownership managed by the caller. 24 : virtual mfem::LinearFormIntegrator * createLFIntegrator() = 0; 25 : 26 : /// Create MFEM integrator to apply to the LHS of the weak form. Ownership managed by the caller. 27 : virtual mfem::BilinearFormIntegrator * createBFIntegrator() = 0; 28 : 29 : /// Get name of the trial variable (gridfunction) the kernel acts on. 30 : /// Defaults to the name of the test variable labelling the weak form. 31 48 : virtual const std::string & getTrialVariableName() const { return _test_var_name; } 32 : }; 33 : 34 : #endif