Hermes2D  3.0
space_hcurl.h
1 // This file is part of Hermes2D.
2 //
3 // Hermes2D is free software: you can redistribute it and/or modify
4 // it under the terms of the GNU General Public License as published by
5 // the Free Software Foundation, either version 2 of the License, or
6 // (at your option) any later version.
7 //
8 // Hermes2D is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 // GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License
14 // along with Hermes2D. If not, see <http://www.gnu.org/licenses/>.
15 
16 #ifndef __H2D_SPACE_HCURL_H
17 #define __H2D_SPACE_HCURL_H
18 
19 #include "space.h"
20 namespace Hermes
21 {
22  namespace Hermes2D
23  {
33  template<typename Scalar>
34  class HERMES_API HcurlSpace : public Space < Scalar >
35  {
36  public:
37  HcurlSpace();
38  HcurlSpace(MeshSharedPtr mesh, EssentialBCs<Scalar>* boundary_conditions, int p_init = 1,
39  Shapeset* shapeset = nullptr);
40 
41  HcurlSpace(MeshSharedPtr mesh, int p_init = 1,
42  Shapeset* shapeset = nullptr);
43 
44  virtual ~HcurlSpace();
45 
46  virtual void set_shapeset(Shapeset* shapeset, bool clone = false);
47 
48  virtual Scalar* get_bc_projection(SurfPos* surf_pos, int order, EssentialBoundaryCondition<Scalar> *bc);
49 
51  virtual void copy(SpaceSharedPtr<Scalar> space, MeshSharedPtr new_mesh);
52  protected:
53 
54  virtual SpaceType get_type() const { return HERMES_HCURL_SPACE; }
55 
57  void init(Shapeset* shapeset, int p_init, bool assign_dofs_init = true);
58 
59  virtual void assign_vertex_dofs() {}
60  virtual void assign_edge_dofs();
61  virtual void assign_bubble_dofs();
62 
63  virtual void get_vertex_assembly_list(Element* e, int iv, AsmList<Scalar>* al) const {}
64  virtual void get_boundary_assembly_list_internal(Element* e, int surf_num, AsmList<Scalar>* al) const;
65 
66  void update_constrained_nodes(Element* e, typename Space<Scalar>::EdgeInfo* ei0, typename Space<Scalar>::EdgeInfo* ei1, typename Space<Scalar>::EdgeInfo* ei2, typename Space<Scalar>::EdgeInfo* ei3);
67  virtual void update_constraints();
68  };
69  }
70 }
71 #endif
Definition: adapt.h:24
Should be exactly the same as is the count of enum ShapesetType.
Definition: shapeset.h:95
virtual SpaceType get_type() const
Internal. Return type of this space. See enum SpaceType.
Definition: space_hcurl.h:54