https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
33int
35{
36 return _pmesh.Dimension();
37}
38
39#endif
static MooseEnum getNonlinearVariableOrders()
Get the possible variable orders.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
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.
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.
Constructs and stores an mfem::ParFiniteElementSpace object.
Definition MFEMFESpace.h:21
mfem::ParMesh & _pmesh
Mesh FESpace is defined with respect to.
Definition MFEMFESpace.h:68
static InputParameters validParams()
Definition MFEMFESpace.C:16
static InputParameters validParams()
int getProblemDim() const
Returns the dimension of the problem (i.e., the highest dimension of the reference elements in the me...
MFEMSimplifiedFESpace(const InputParameters &parameters)
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
Definition MooseEnum.h:55