inf_elem_builder.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License, or (at your option) any later version.
8 
9 // This library is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
13 
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 
18 #ifndef LIBMESH_INF_ELEM_BUILDER_H
19 #define LIBMESH_INF_ELEM_BUILDER_H
20 
21 
22 #include "libmesh/libmesh_config.h"
23 
24 
25 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
26 
27 // Local includes
28 #include "libmesh/id_types.h"
29 #include "libmesh/point.h"
30 
31 // C++ includes
32 #include <cstddef>
33 #include <set>
34 #include <utility>
35 #include <vector>
36 
37 namespace libMesh
38 {
39 
40 // Forward Declarations
41 class MeshBase;
42 class Node;
43 
53 {
54 public:
58  explicit
60 
64  typedef std::pair<bool, double> InfElemOriginValue;
65 
75  const Point build_inf_elem (const bool be_verbose = false);
76 
99  const Point build_inf_elem (const InfElemOriginValue& origin_x,
100  const InfElemOriginValue& origin_y,
101  const InfElemOriginValue& origin_z,
102  const bool x_sym = false,
103  const bool y_sym = false,
104  const bool z_sym = false,
105  const bool be_verbose = false,
106  std::vector<const Node*>* inner_boundary_nodes = NULL);
107 
108 
109 
110 private:
115  void build_inf_elem (const Point& origin,
116  const bool x_sym = false,
117  const bool y_sym = false,
118  const bool z_sym = false,
119  const bool be_verbose = false,
120  std::set<std::pair<dof_id_type,
121  unsigned int> >* inner_faces = NULL);
127 };
128 
129 
130 } // namespace libMesh
131 
132 #endif // LIBMESH_ENABLE_INFINITE_ELEMENTS
133 #endif // LIBMESH_INF_ELEM_BUILDER_H

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

Hosted By:
SourceForge.net Logo