https://mooseframework.inl.gov
MFEMFunctorMaterial.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 "MFEMFunctorMaterial.h"
13 #include "MFEMProblem.h"
14 
17 {
21 
22  params.addClassDescription(
23  "Base class for declaration of material properties to add to MFEM problems.");
24  params.registerBase("FunctorMaterial");
25  params.registerSystemAttributeName("FunctorMaterial");
26  params.addPrivateParam<bool>("_neighbor", false);
27  params.addPrivateParam<bool>("_interface", false);
28  return params;
29 }
30 
32  : MFEMObject(parameters),
33  MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
34  MFEMBoundaryRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
35  _properties(getMFEMProblem().getCoefficients())
36 {
38  paramError("boundary", "Cannot specify both block and boundary parameters");
39 }
40 
42 
43 #endif
Thin base for MFEM objects backed directly by MooseObject instead of UserObject.
Definition: MFEMObject.h:25
void paramError(const std::string &param, Args... args) const
Emits an error prefixed with the file and line number of the given param (from the input file) along ...
Definition: MooseBase.h:467
void addPrivateParam(const std::string &name, const T &value)
These method add a parameter to the InputParameters object which can be retrieved like any other para...
static InputParameters validParams()
MeshBase & mesh
void registerSystemAttributeName(const std::string &value)
This method is used to define the MOOSE system name that is used by the TheWarehouse object for stori...
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...
bool isSubdomainRestricted()
Returns a bool indicating if the object is restricted to a subset of subdomains.
Base class for construction of an object that is restricted to a subset of boundaries of the problem ...
MFEMFunctorMaterial(const InputParameters &parameters)
static InputParameters validParams()
Declare the common parameters required by MFEM MooseObject-backed classes.
Definition: MFEMObject.C:17
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...
bool isBoundaryRestricted() const
Returns a bool indicating if the object is restricted to a subset of boundaries.
Base class for construction of an object that is restricted to a subset of subdomains of the problem ...
static InputParameters validParams()