Line data Source code
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 : 15 : registerMooseObject("MooseApp", MFEMFunctorMaterial); 16 : 17 : InputParameters 18 25990 : MFEMFunctorMaterial::validParams() 19 : { 20 25990 : InputParameters params = MFEMGeneralUserObject::validParams(); 21 25990 : params += MFEMBlockRestrictable::validParams(); 22 : 23 25990 : params.addClassDescription( 24 : "Base class for declaration of material properties to add to MFEM problems."); 25 25990 : params.set<std::string>("_moose_base") = "FunctorMaterial"; 26 25990 : params.addPrivateParam<bool>("_neighbor", false); 27 25990 : params.addPrivateParam<bool>("_interface", false); 28 25990 : return params; 29 0 : } 30 : 31 : libMesh::Point 32 0 : MFEMFunctorMaterial::pointFromMFEMVector(const mfem::Vector & vec) 33 : { 34 0 : return libMesh::Point(vec.Elem(0), vec.Elem(1), vec.Elem(2)); 35 : } 36 : 37 51 : MFEMFunctorMaterial::MFEMFunctorMaterial(const InputParameters & parameters) 38 : : MFEMGeneralUserObject(parameters), 39 51 : MFEMBlockRestrictable(parameters, getMFEMProblem().mesh().getMFEMParMesh()), 40 102 : _properties(getMFEMProblem().getCoefficients()) 41 : { 42 51 : } 43 : 44 51 : MFEMFunctorMaterial::~MFEMFunctorMaterial() {} 45 : 46 : #endif