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