Nektar++
PyrGeom.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // File: PyrGeom.h
4 //
5 // For more information, please see: http://www.nektar.info/
6 //
7 // The MIT License
8 //
9 // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA),
10 // Department of Aeronautics, Imperial College London (UK), and Scientific
11 // Computing and Imaging Institute, University of Utah (USA).
12 //
13 // Permission is hereby granted, free of charge, to any person obtaining a
14 // copy of this software and associated documentation files (the "Software"),
15 // to deal in the Software without restriction, including without limitation
16 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
17 // and/or sell copies of the Software, and to permit persons to whom the
18 // Software is furnished to do so, subject to the following conditions:
19 //
20 // The above copyright notice and this permission notice shall be included
21 // in all copies or substantial portions of the Software.
22 //
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
24 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
26 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
28 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
29 // DEALINGS IN THE SOFTWARE.
30 //
31 // Description: Pyramidic geometry information.
32 //
33 ////////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef NEKTAR_SPATIALDOMAINS_PYRGEOM_H
36 #define NEKTAR_SPATIALDOMAINS_PYRGEOM_H
37 
40 
41 namespace Nektar
42 {
43 namespace SpatialDomains
44 {
45 
46 class PyrGeom : public Geometry3D
47 {
48 public:
50  SPATIAL_DOMAINS_EXPORT PyrGeom(int id, const Geometry2DSharedPtr faces[]);
52 
53  SPATIAL_DOMAINS_EXPORT static const int kNverts = 5;
54  SPATIAL_DOMAINS_EXPORT static const int kNedges = 8;
55  SPATIAL_DOMAINS_EXPORT static const int kNqfaces = 1;
56  SPATIAL_DOMAINS_EXPORT static const int kNtfaces = 4;
58  SPATIAL_DOMAINS_EXPORT static const std::string XMLElementType;
59 
60 protected:
61  virtual void v_GenGeomFactors();
62  virtual int v_GetDir(const int faceidx, const int facedir) const;
63  virtual void v_Reset(CurveMap &curvedEdges, CurveMap &curvedFaces);
64  virtual void v_Setup();
65 
66 private:
67  void SetUpLocalEdges();
68  void SetUpLocalVertices();
69  void SetUpEdgeOrientation();
70  void SetUpFaceOrientation();
71  void SetUpXmap();
72 };
73 
74 typedef std::shared_ptr<PyrGeom> PyrGeomSharedPtr;
75 typedef std::map<int, PyrGeomSharedPtr> PyrGeomMap;
76 }
77 }
78 
79 
80 #endif // NEKTAR_SPATIALDOMAINS_PYRGEOM_H
#define SPATIAL_DOMAINS_EXPORT
3D geometry information
Definition: Geometry3D.h:68
static const int kNfaces
Definition: PyrGeom.h:57
static const std::string XMLElementType
Definition: PyrGeom.h:58
void SetUpXmap()
Set up the m_xmap object by determining the order of each direction from derived faces.
Definition: PyrGeom.cpp:666
static const int kNedges
Definition: PyrGeom.h:54
virtual int v_GetDir(const int faceidx, const int facedir) const
Returns the element coordinate direction corresponding to a given face coordinate direction.
Definition: PyrGeom.cpp:125
static const int kNtfaces
Definition: PyrGeom.h:56
static const int kNqfaces
Definition: PyrGeom.h:55
virtual void v_Reset(CurveMap &curvedEdges, CurveMap &curvedFaces)
Reset this geometry object: unset the current state, zero Geometry::m_coeffs and remove allocated Geo...
Definition: PyrGeom.cpp:635
static const int kNverts
Definition: PyrGeom.h:53
virtual void v_GenGeomFactors()
Definition: PyrGeom.cpp:78
std::map< int, PyrGeomSharedPtr > PyrGeomMap
Definition: PyrGeom.h:75
std::unordered_map< int, CurveSharedPtr > CurveMap
Definition: Curve.hpp:62
std::shared_ptr< PyrGeom > PyrGeomSharedPtr
Definition: PyrGeom.h:74
std::shared_ptr< Geometry2D > Geometry2DSharedPtr
Definition: Geometry.h:65
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:1