libMesh
inf_fe_map.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2019 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 
19 
20 #ifndef LIBMESH_INF_FE_MAP_H
21 #define LIBMESH_INF_FE_MAP_H
22 
23 #include "libmesh/libmesh_config.h"
24 
25 #ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
26 
27 // Local includes
28 #include "libmesh/fe_type.h"
29 #include "libmesh/point.h"
30 
31 // C++ includes
32 #include <vector>
33 
34 namespace libMesh
35 {
36 
37 // forward declarations
38 class Elem;
39 class FEComputeData;
40 
41 
42 
47 class InfFEMap
48 {
49 public:
54  static Point map (const unsigned int dim,
55  const Elem * inf_elem,
56  const Point & reference_point);
57 
73  static Point inverse_map (const unsigned int dim,
74  const Elem * elem,
75  const Point & p,
76  const Real tolerance = TOLERANCE,
77  const bool secure = true);
78 
79 
86  static void inverse_map (const unsigned int dim,
87  const Elem * elem,
88  const std::vector<Point> & physical_points,
89  std::vector<Point> & reference_points,
90  const Real tolerance = TOLERANCE,
91  const bool secure = true);
92 
109  static Real eval(Real v,
110  Order o,
111  unsigned int i);
112 
118  static Real eval_deriv(Real v,
119  Order o,
120  unsigned int i);
121 };
122 
123 
124 } // namespace libMesh
125 
126 
127 #endif // ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
128 
129 
130 #endif // LIBMESH_INF_FE_MAP_H
libMesh
The libMesh namespace provides an interface to certain functionality in the library.
Definition: factoryfunction.C:55
libMesh::Order
Order
Definition: enum_order.h:40
libMesh::TOLERANCE
static const Real TOLERANCE
Definition: libmesh_common.h:128
dim
unsigned int dim
Definition: adaptivity_ex3.C:113
libMesh::InfFEMap
Class that encapsulates mapping (i.e.
Definition: inf_fe_map.h:47
libMesh::InfFEMap::inverse_map
static Point inverse_map(const unsigned int dim, const Elem *elem, const Point &p, const Real tolerance=TOLERANCE, const bool secure=true)
Definition: inf_fe_map.C:88
libMesh::InfFEMap::eval
static Real eval(Real v, Order o, unsigned int i)
Definition: inf_fe_map_eval.C:27
libMesh::InfFEMap::eval_deriv
static Real eval_deriv(Real v, Order o, unsigned int i)
Definition: inf_fe_map_eval.C:45
libMesh::Point
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition: point.h:38
libMesh::InfFEMap::map
static Point map(const unsigned int dim, const Elem *inf_elem, const Point &reference_point)
Definition: inf_fe_map.C:40
libMesh::Elem
This is the base class from which all geometric element types are derived.
Definition: elem.h:100
libMesh::Real
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Definition: libmesh_common.h:121