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 MFEM_ENABLED
11 
12 #include "MFEMFunctorMaterial.h"
13 #include "MFEMProblem.h"
14 
16 
19 {
22 
23  params.addClassDescription(
24  "Base class for declaration of material properties to add to MFEM problems.");
25  params.set<std::string>("_moose_base") = "FunctorMaterial";
26  params.addPrivateParam<bool>("_neighbor", false);
27  params.addPrivateParam<bool>("_interface", false);
28  return params;
29 }
30 
33 {
34  return libMesh::Point(vec.Elem(0), vec.Elem(1), vec.Elem(2));
35 }
36 
38  : MFEMGeneralUserObject(parameters),
39  MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()),
40  _properties(getMFEMProblem().getCoefficients())
41 {
42 }
43 
45 
46 #endif
static InputParameters validParams()
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...
T & set(const std::string &name, bool quiet_mode=false)
Returns a writable reference to the named parameters.
MeshBase & mesh
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
registerMooseObject("MooseApp", MFEMFunctorMaterial)
MFEMFunctorMaterial(const InputParameters &parameters)
static libMesh::Point pointFromMFEMVector(const mfem::Vector &vec)
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...
Base class for construction of an object that is restricted to a subset of subdomains of the problem ...
static InputParameters validParams()