Nektar++
ExpList3D.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File ExpList3D.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 3D header definition
32 //
33 ///////////////////////////////////////////////////////////////////////////////
34 
35 #ifndef EXPLIST3D_H
36 #define EXPLIST3D_H
37 
39 #include <MultiRegions/ExpList.h> // for ExpList
40 #include <vector>
41 
42 namespace Nektar
43 {
44  namespace MultiRegions
45  {
46  /// Abstraction of a three-dimensional multi-elemental expansion which
47  /// is merely a collection of local expansions.
48  class ExpList3D: public ExpList
49  {
50  public:
51  /// Default constructor.
53 
54  /// Copy constructor.
55  MULTI_REGIONS_EXPORT ExpList3D(const ExpList3D &In);
56 
57  /// Constructor copying only elements defined in eIds.
58  MULTI_REGIONS_EXPORT ExpList3D( const ExpList3D &In,
59  const std::vector<unsigned int> &eIDs,
60  const bool DeclareCoeffPhysArrays = true,
63 
66  const LibUtilities::BasisKey &TBa,
67  const LibUtilities::BasisKey &TBb,
68  const LibUtilities::BasisKey &TBc,
69  const LibUtilities::BasisKey &HBa,
70  const LibUtilities::BasisKey &HBb,
71  const LibUtilities::BasisKey &HBc,
73  const LibUtilities::PointsType TetNb
77 
78  /// Sets up a list of local expansions based on an input mesh.
82  const std::string &variable = "DefaultVar",
85 
86  /// Sets up a list of local expansions based on an expansion vector
89 
90  /// Destructor.
92 
93  protected:
94 
95  /// Set up the normals on each expansion.
96  virtual void v_SetUpPhysNormals();
97 
98  private:
99 
100  virtual void v_ReadGlobalOptimizationParameters();
101 
102  virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion, int istrip);
103 
104  virtual void v_PhysInterp1DScaled(const NekDouble scale, const Array<OneD, NekDouble> &inarray, Array<OneD, NekDouble> &outarray);
105 
106  virtual void v_PhysGalerkinProjection1DScaled(const NekDouble scale, const Array<OneD, NekDouble> &inarray, Array<OneD, NekDouble> &outarray);
107 
108  };
109 
110  /// Shared pointer to an ExpList3D object.
111  typedef std::shared_ptr<ExpList3D> ExpList3DSharedPtr;
112  /// Vector of pointers to ExpList3D objects.
113  typedef std::vector<ExpList3DSharedPtr> ExpList3DVector;
114  } //end of namespace
115 } //end of namespace
116 
117 #endif
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:163
virtual void v_SetUpPhysNormals()
Set up the normals on each expansion.
Definition: ExpList3D.cpp:559
#define MULTI_REGIONS_EXPORT
std::vector< ExpList3DSharedPtr > ExpList3DVector
Vector of pointers to ExpList3D objects.
Definition: ExpList3D.h:113
virtual void v_PhysGalerkinProjection1DScaled(const NekDouble scale, const Array< OneD, NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Definition: ExpList3D.cpp:605
Base class for all multi-elemental spectral/hp expansions.
Definition: ExpList.h:103
double NekDouble
virtual void v_ReadGlobalOptimizationParameters()
Definition: ExpList3D.cpp:457
virtual ~ExpList3D()
Destructor.
Definition: ExpList3D.cpp:92
std::shared_ptr< ExpList3D > ExpList3DSharedPtr
Shared pointer to an ExpList3D object.
Definition: ExpList3D.h:111
Abstraction of a three-dimensional multi-elemental expansion which is merely a collection of local ex...
Definition: ExpList3D.h:48
ExpList3D()
Default constructor.
Definition: ExpList3D.cpp:56
Describes the specification for a Basis.
Definition: Basis.h:49
std::shared_ptr< SessionReader > SessionReaderSharedPtr
virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion, int istrip)
Definition: ExpList3D.cpp:480
std::map< int, ExpansionShPtr > ExpansionMap
Definition: MeshGraph.h:152
virtual void v_PhysInterp1DScaled(const NekDouble scale, const Array< OneD, NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Definition: ExpList3D.cpp:571