Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 // License for the specific language governing rights and limitations under
14 // Permission is hereby granted, free of charge, to any person obtaining a
15 // copy of this software and associated documentation files (the "Software"),
16 // to deal in the Software without restriction, including without limitation
17 // the rights to use, copy, modify, merge, publish, distribute, sublicense,
18 // and/or sell copies of the Software, and to permit persons to whom the
19 // Software is furnished to do so, subject to the following conditions:
20 //
21 // The above copyright notice and this permission notice shall be included
22 // in all copies or substantial portions of the Software.
23 //
24 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
25 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
26 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
27 // THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
28 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
29 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
30 // DEALINGS IN THE SOFTWARE.
31 //
32 // Description: Expansion list 0D definition. This is not really a class descibing an expansion, but
33 // just a utilty class to manage boundary conditions for the 1D case and the homogenous cases.
34 // It basically represents a 0-dimensional expansion, or better a collection of points which are
35 // generally located on the boundaries. It is a wrap around LocalRegion::PointExp
36 //
37 ///////////////////////////////////////////////////////////////////////////////
38 
39 #ifndef NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
40 #define NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
41 
43 #include <vector>
44 #include <MultiRegions/ExpList.h>
45 #include <LocalRegions/PointExp.h>
47 
48 
49 namespace Nektar
50 {
51  namespace MultiRegions
52  {
53  // Forward declarations for typedefs
54  class ExpList0D;
55 
56  /// Shared pointer to an ExpList0D object.
57  typedef boost::shared_ptr<ExpList0D> ExpList0DSharedPtr;
58  /// Vector of pointers to ExpList0D objects.
59  typedef std::vector<ExpList0DSharedPtr> ExpList0DVector;
60  /// Iterator for the vector of ExpList0D pointers.
62 
63  /// This class is the abstraction of a collection of
64  /// zero-dimensional expansions which is merely a collection of points/values.
65  class ExpList0D: public ExpList
66  {
67  public:
68 
69  /// The defualt constructor.
71 
72  /// The copy constructor.
73  MULTI_REGIONS_EXPORT ExpList0D(const ExpList0D &In, bool DeclareCoeffPhysArrays);
74 
75  // wrap around LocalRegion::PointExp
77 
78  /// Specialised constructor for trace expansions (croth)
80  const Array<OneD,const ExpListSharedPtr> &bndConstraint,
81  const Array<OneD,const SpatialDomains
82  ::BoundaryConditionShPtr> &bndCond,
83  const LocalRegions::ExpansionVector &locexp,
85  const PeriodicMap &periodicVerts,
86  const bool DeclareCoeffPhysArrays = true);
87 
88  /// Destructor.
90 
91  protected:
92  virtual void v_Upwind(
97 
98  virtual void v_GetNormals(
99  Array<OneD, Array<OneD, NekDouble> > &normals);
100 
101  private:
102  void SetCoeffPhysOffsets(void);
103  };
104 
105  /// Empty ExpList0D object.
108 
109  } //end of namespace
110 } //end of namespace
111 
112 #endif//NEKTAR_LIB_MULTIREGIONS_EXPLIST0D_H
113 
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:284
virtual void v_GetNormals(Array< OneD, Array< OneD, NekDouble > > &normals)
Definition: ExpList0D.cpp:236
#define MULTI_REGIONS_EXPORT
std::vector< ExpansionSharedPtr > ExpansionVector
Definition: Expansion.h:70
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:1986
Base class for all multi-elemental spectral/hp expansions.
Definition: ExpList.h:101
std::map< int, std::vector< PeriodicEntity > > PeriodicMap
ExpList0D()
The defualt constructor.
Definition: ExpList0D.cpp:49
std::vector< ExpList0DSharedPtr > ExpList0DVector
Vector of pointers to ExpList0D objects.
Definition: ExpList0D.h:59
boost::shared_ptr< ExpList0D > ExpList0DSharedPtr
Shared pointer to an ExpList0D object.
Definition: ExpList0D.h:54
StandardMatrixTag boost::call_traits< LhsDataType >::const_reference rhs typedef NekMatrix< LhsDataType, StandardMatrixTag >::iterator iterator
static const Array< OneD, ExpList0DSharedPtr > NullExpList0DSharedPtrArray
Empty ExpList0D object.
Definition: ExpList0D.h:107
This class is the abstraction of a collection of zero-dimensional expansions which is merely a collec...
Definition: ExpList0D.h:65
virtual ~ExpList0D()
Destructor.
Definition: ExpList0D.cpp:226
boost::shared_ptr< BoundaryConditionBase > BoundaryConditionShPtr
Definition: Conditions.h:208
std::vector< ExpList0DSharedPtr >::iterator ExpList0DVectorIter
Iterator for the vector of ExpList0D pointers.
Definition: ExpList0D.h:61
boost::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:442
boost::shared_ptr< PointGeom > PointGeomSharedPtr
Definition: Geometry.h:60