Nektar++
ExpList0D.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File ExpList0D.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: Expansion list 0D definition. This is not really a class descibing an expansion, but
32 // just a utilty class to manage boundary conditions for the 1D case and the homogenous cases.
33 // It basically represents a 0-dimensional expansion, or better a collection of points which are
34 // generally located on the boundaries. It is a wrap around LocalRegion::PointExp
35 //
36 ///////////////////////////////////////////////////////////////////////////////
37 
38 #ifndef NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
39 #define NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
40 
42 #include <vector>
43 #include <MultiRegions/ExpList.h>
44 #include <LocalRegions/PointExp.h>
46 
47 
48 namespace Nektar
49 {
50  namespace MultiRegions
51  {
52  // Forward declarations for typedefs
53  class ExpList0D;
54 
55  /// Shared pointer to an ExpList0D object.
56  typedef std::shared_ptr<ExpList0D> ExpList0DSharedPtr;
57  /// Vector of pointers to ExpList0D objects.
58  typedef std::vector<ExpList0DSharedPtr> ExpList0DVector;
59 
60  /// This class is the abstraction of a collection of
61  /// zero-dimensional expansions which is merely a collection of points/values.
62  class ExpList0D: public ExpList
63  {
64  public:
65 
66  /// The defualt constructor.
68 
69  /// The copy constructor.
70  MULTI_REGIONS_EXPORT ExpList0D(const ExpList0D &In, bool DeclareCoeffPhysArrays);
71 
72  // wrap around LocalRegion::PointExp
74 
75  /// Specialised constructor for trace expansions (croth)
77  const Array<OneD,const ExpListSharedPtr> &bndConstraint,
78  const Array<OneD,const SpatialDomains
79  ::BoundaryConditionShPtr> &bndCond,
80  const LocalRegions::ExpansionVector &locexp,
82  const PeriodicMap &periodicVerts,
83  const bool DeclareCoeffPhysArrays = true);
84 
85  /// Destructor.
87 
88  protected:
89  virtual void v_Upwind(
94 
95  virtual void v_GetNormals(
96  Array<OneD, Array<OneD, NekDouble> > &normals);
97 
98  private:
99  };
100 
101  /// Empty ExpList0D object.
104 
105  } //end of namespace
106 } //end of namespace
107 
108 #endif//NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
109 
virtual void v_Upwind(const Array< OneD, const NekDouble > &Vn, const Array< OneD, const NekDouble > &Fwd, const Array< OneD, const NekDouble > &Bwd, Array< OneD, NekDouble > &Upwind)
Definition: ExpList0D.cpp:266
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:163
virtual void v_GetNormals(Array< OneD, Array< OneD, NekDouble > > &normals)
Definition: ExpList0D.cpp:218
#define MULTI_REGIONS_EXPORT
std::shared_ptr< ExpList0D > ExpList0DSharedPtr
Shared pointer to an ExpList0D object.
Definition: ExpList0D.h:53
std::vector< ExpansionSharedPtr > ExpansionVector
Definition: Expansion.h:67
void Upwind(const Array< OneD, const Array< OneD, NekDouble > > &Vec, const Array< OneD, const NekDouble > &Fwd, const Array< OneD, const NekDouble > &Bwd, Array< OneD, NekDouble > &Upwind)
Definition: ExpList.h:2249
Base class for all multi-elemental spectral/hp expansions.
Definition: ExpList.h:103
std::shared_ptr< PointGeom > PointGeomSharedPtr
Definition: Geometry.h:59
std::map< int, std::vector< PeriodicEntity > > PeriodicMap
std::shared_ptr< BoundaryConditionBase > BoundaryConditionShPtr
Definition: Conditions.h:219
ExpList0D()
The defualt constructor.
Definition: ExpList0D.cpp:50
std::vector< ExpList0DSharedPtr > ExpList0DVector
Vector of pointers to ExpList0D objects.
Definition: ExpList0D.h:58
static const Array< OneD, ExpList0DSharedPtr > NullExpList0DSharedPtrArray
Empty ExpList0D object.
Definition: ExpList0D.h:103
This class is the abstraction of a collection of zero-dimensional expansions which is merely a collec...
Definition: ExpList0D.h:62
virtual ~ExpList0D()
Destructor.
Definition: ExpList0D.cpp:208