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 MOOSE_MFEM_ENABLED 11 : 12 : #include "MFEMSimplifiedFESpace.h" 13 : #include "MFEMProblem.h" 14 : 15 : InputParameters 16 18100 : MFEMSimplifiedFESpace::validParams() 17 : { 18 18100 : InputParameters params = MFEMFESpace::validParams(); 19 18100 : params.addClassDescription("Base class for the simplified interfaces to build MFEM finite " 20 : "element spaces. It provides the common parameters."); 21 : MooseEnum fec_order( 22 : "CONSTANT FIRST SECOND THIRD FOURTH FIFTH SIXTH SEVENTH EIGHTH NINTH TENTH ELEVENTH TWELFTH" 23 : "THIRTEENTH FOURTEENTH FIFTEENTH SIXTEENTH SEVENTEENTH EIGHTTEENTH NINETEENTH TWENTIETH " 24 : "TWENTYFIRST TWENTYSECOND TWENTYTHIRD TWENTYFOURTH TWENTYFIFTH TWENTYSIXTH TWENTYSEVENTH " 25 : "TWENTYEIGHTH TWENTYNINTH THIRTIETH THIRTYFIRST THIRTYSECOND THIRTYTHIRD THIRTYFOURTH " 26 : "THIRTYFIFTH THIRTYSIXTH THIRTYSEVENTH THIRTYEIGHTH THIRTYNINTH FORTIETH FORTYFIRST" 27 : "FORTYSECOND FORTYTHIRD", 28 : "FIRST", 29 18100 : true); 30 18100 : params.addParam<MooseEnum>("fec_order", fec_order, "Order of the FE shape function to use."); 31 36200 : return params; 32 18100 : } 33 : 34 420 : MFEMSimplifiedFESpace::MFEMSimplifiedFESpace(const InputParameters & parameters) 35 420 : : MFEMFESpace(parameters), _fec_order(parameters.get<MooseEnum>("fec_order")) 36 : { 37 420 : } 38 : 39 : int 40 442 : MFEMSimplifiedFESpace::getProblemDim() const 41 : { 42 442 : return getMFEMProblem().mesh().getMFEMParMesh().Dimension(); 43 : } 44 : 45 : #endif