MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
fem_extras.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2 // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3 // reserved. See file COPYRIGHT for details.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability see http://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the GNU Lesser General Public License (as published by the Free
10 // Software Foundation) version 2.1 dated February 1999.
11 
12 #ifndef MFEM_FEM_EXTRAS
13 #define MFEM_FEM_EXTRAS
14 
15 #include "mfem.hpp"
16 #include <cstddef>
17 
18 namespace mfem
19 {
20 
21 namespace miniapps
22 {
23 
29 {
30 public:
31  H1_FESpace(Mesh *m,
32  const int p, const int space_dim = 3, const int type = 0,
33  int vdim = 1, int order = Ordering::byNODES);
34  ~H1_FESpace();
35 private:
36  const FiniteElementCollection *FEC_;
37 };
38 
44 {
45 public:
46  ND_FESpace(Mesh *m, const int p, const int space_dim,
47  int vdim = 1, int order = Ordering::byNODES);
48  ~ND_FESpace();
49 private:
50  const FiniteElementCollection *FEC_;
51 };
52 
58 {
59 public:
60  RT_FESpace(Mesh *m, const int p, const int space_dim,
61  int vdim = 1, int order = Ordering::byNODES);
62  ~RT_FESpace();
63 private:
64  const FiniteElementCollection *FEC_;
65 };
66 
67 } // namespace miniapps
68 
69 } // namespace mfem
70 
71 #endif
RT_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
Definition: fem_extras.cpp:47
H1_FESpace(Mesh *m, const int p, const int space_dim=3, const int type=0, int vdim=1, int order=Ordering::byNODES)
Definition: fem_extras.cpp:22
ND_FESpace(Mesh *m, const int p, const int space_dim, int vdim=1, int order=Ordering::byNODES)
Definition: fem_extras.cpp:35
int vdim
Vector dimension (number of unknowns per degree of freedom).
Definition: fespace.hpp:69