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 : #pragma once 13 : #include "MFEMSimplifiedFESpace.h" 14 : 15 : class MFEMVectorFESpace : public MFEMSimplifiedFESpace 16 : { 17 : public: 18 : static InputParameters validParams(); 19 : 20 : MFEMVectorFESpace(const InputParameters & parameters); 21 : 22 113 : virtual bool isScalar() const override { return false; } 23 : 24 38 : virtual bool isVector() const override { return true; } 25 : 26 : protected: 27 : /// Get the name of the desired FECollection. 28 : virtual std::string getFECName() const override; 29 : 30 : /// Get the number of degrees of freedom per basis function needed 31 : /// in this finite element space. 32 : virtual int getVDim() const override; 33 : 34 : private: 35 : /// Name of the family of finite element collections to use 36 : const std::string _fec_type; 37 : 38 : /// The number of vector components in the reference space. 39 : const int _range_dim; 40 : }; 41 : 42 : #endif