https://mooseframework.inl.gov
MFEMKernel.C
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 #include "MFEMKernel.h"
13 #include "MFEMProblem.h"
14 #include "libmesh/ignore_warnings.h"
15 #include "mfem/miniapps/common/mesh_extras.hpp"
16 #include "libmesh/restore_warnings.h"
17 
20 {
23  params.registerBase("Kernel");
24  params.addParam<VariableName>("variable",
25  "Variable labelling the weak form this kernel is added to");
26  return params;
27 }
28 
30  : MFEMGeneralUserObject(parameters),
31  MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
32  _test_var_name(getParam<VariableName>("variable"))
33 {
34 }
35 
36 #endif
static InputParameters validParams()
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void registerBase(const std::string &value)
This method must be called from every base "Moose System" to create linkage with the Action System...
MFEMKernel(const InputParameters &parameters)
Definition: MFEMKernel.C:29
static InputParameters validParams()
void addParam(const std::string &name, const S &value, const std::string &doc_string)
These methods add an optional parameter and a documentation string to the InputParameters object...
Base class for construction of an object that is restricted to a subset of subdomains of the problem ...
static InputParameters validParams()
Definition: MFEMKernel.C:19