https://mooseframework.inl.gov
MFEMSimplifiedFESpace.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 MOOSE_MFEM_ENABLED
11 
12 #include "MFEMSimplifiedFESpace.h"
13 #include "MFEMProblem.h"
14 #include "AddVariableAction.h"
15 
18 {
20  params.addClassDescription("Base class for the simplified interfaces to build MFEM finite "
21  "element spaces. It provides the common parameters.");
22  params.addParam<MooseEnum>("fec_order",
24  "Order of the FE shape function to use.");
25  return params;
26 }
27 
29  : MFEMFESpace(parameters), _fec_order(parameters.get<MooseEnum>("fec_order"))
30 {
31 }
32 
33 int
35 {
36  return _pmesh.Dimension();
37 }
38 
39 #endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static MooseEnum getNonlinearVariableOrders()
Get the possible variable orders.
static InputParameters validParams()
Definition: MFEMFESpace.C:16
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition: MooseEnum.h:54
mfem::ParMesh & _pmesh
Mesh FESpace is defined with respect to.
Definition: MFEMFESpace.h:68
Constructs and stores an mfem::ParFiniteElementSpace object.
Definition: MFEMFESpace.h:20
MFEMSimplifiedFESpace(const InputParameters &parameters)
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
This method adds a description of the class that will be displayed in the input file syntax dump...
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...
int getProblemDim() const
Returns the dimension of the problem (i.e., the highest dimension of the reference elements in the me...
const Elem & get(const ElemType type_in)