https://mooseframework.inl.gov
MFEMIntegratedBC.h
Go to the documentation of this file.
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 MFEM_ENABLED
11 
12 #pragma once
13 #include "MFEMBoundaryCondition.h"
14 
16 {
17 public:
19 
21  virtual ~MFEMIntegratedBC() = default;
22 
23  // Create a new MFEM integrator to apply to the RHS of the weak form. Ownership managed by the
24  // caller.
25  virtual mfem::LinearFormIntegrator * createLFIntegrator() = 0;
26 
27  // Create a new MFEM integrator to apply to LHS of the weak form. Ownership managed by the caller.
28  virtual mfem::BilinearFormIntegrator * createBFIntegrator() = 0;
29 
30  // Get name of the trial variable (gridfunction) the kernel acts on.
31  // Defaults to the name of the test variable labelling the weak form.
32  virtual const std::string & getTrialVariableName() const { return _test_var_name; }
33 };
34 
35 #endif
MFEMIntegratedBC(const InputParameters &parameters)
virtual ~MFEMIntegratedBC()=default
virtual mfem::BilinearFormIntegrator * createBFIntegrator()=0
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
virtual const std::string & getTrialVariableName() const
const VariableName & _test_var_name
virtual mfem::LinearFormIntegrator * createLFIntegrator()=0
const InputParameters & parameters() const
Get the parameters of the object.