periodic_boundary_base.h
Go to the documentation of this file.
1 
2 // The libMesh Finite Element Library.
3 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
4 
5 // This library is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation; either
8 // version 2.1 of the License, or (at your option) any later version.
9 
10 // This library is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // Lesser General Public License for more details.
14 
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with this library; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 
19 #ifndef LIBMESH_PERIODIC_BOUNDARY_BASE_H
20 #define LIBMESH_PERIODIC_BOUNDARY_BASE_H
21 
22 // Local Includes -----------------------------------
23 #include "libmesh/libmesh_config.h"
24 
25 #ifdef LIBMESH_ENABLE_PERIODIC
26 
27 // Local Includes -----------------------------------
28 #include "libmesh/point.h"
29 #include "libmesh/auto_ptr.h"
30 
31 // C++ Includes -----------------------------------
32 #include <set>
33 
34 namespace libMesh {
35 
36 // Forward Declarations
37 class Elem;
38 class MeshBase;
39 
44 {
45 public:
47  { FORWARD=0,
48  INVERSE=1 };
49 
54 
59 
64 
68  virtual ~PeriodicBoundaryBase() {}
69 
75  virtual Point get_corresponding_pos(const Point & pt) const = 0;
76 
89 
90  void set_variable(unsigned int var);
91 
92  void merge(const PeriodicBoundaryBase & pb);
93 
94  bool is_my_variable(unsigned int var_num) const;
95 
96 protected:
97 
101  std::set<unsigned int> variables;
102 };
103 
104 } // namespace libmesh
105 
106 #endif // LIBMESH_ENABLE_PERIODIC
107 
108 #endif // LIBMESH_PERIODIC_BOUNDARY_BASE_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:06 UTC

Hosted By:
SourceForge.net Logo