https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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 MOOSE_MFEM_ENABLED
11
12#pragma once
13
15
17{
18public:
20
22 virtual ~MFEMIntegratedBC() = default;
23
25 virtual mfem::LinearFormIntegrator * createLFIntegrator() { return nullptr; };
26
28 virtual mfem::NonlinearFormIntegrator * createNLIntegrator() { return nullptr; };
29
31 virtual mfem::BilinearFormIntegrator * createBFIntegrator() { return nullptr; };
32
35 virtual const std::string & getTrialVariableName() const { return _test_var_name; }
36
40 virtual bool isDGBC() const { return false; }
41};
42
43#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
const VariableName & _test_var_name
Name of (the test variable associated with) the weak form that the bc is applied to.
virtual mfem::LinearFormIntegrator * createLFIntegrator()
Create MFEM integrator to apply to the RHS of the weak form. Ownership managed by the caller.
virtual mfem::NonlinearFormIntegrator * createNLIntegrator()
Create MFEM non-linear integrator to apply to the LHS of the weak form. Ownership managed by the call...
virtual bool isDGBC() const
Method to disambiguate whether we have a regular BC or a DG BC.
static InputParameters validParams()
virtual mfem::BilinearFormIntegrator * createBFIntegrator()
Create MFEM integrator to apply to the LHS of the weak form. Ownership managed by the caller.
virtual const std::string & getTrialVariableName() const
Get name of the trial variable (gridfunction) the bc acts on.
virtual ~MFEMIntegratedBC()=default
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131