Nektar++
ExpList2DHomogeneous1D.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: ExpList2DHomogeneous1D.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: A 2D field which is homogeneous in 1 direction and so
32 // uses much of the functionality from a ExpList1D and its daughters
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef EXPLIST2DHOMO1D_H
37 #define EXPLIST2DHOMO1D_H
38 
41 #include <vector>
42 
43 namespace Nektar
44 {
45 namespace MultiRegions
46 {
47 
48 // Forward declaration for typedefs
49 class ExpList2DHomogeneous1D;
50 
51 /// Shared pointer to an ExpList2DHomogeneous1D object.
52 typedef std::shared_ptr<ExpList2DHomogeneous1D> ExpList2DHomogeneous1DSharedPtr;
53 /// Vector of pointers to ExpList2DHomogeneous1D objects.
54 typedef std::vector<ExpList2DHomogeneous1DSharedPtr>
56 
57 /// Abstraction of a two-dimensional multi-elemental expansion which
58 /// is merely a collection of local expansions.
60 {
61 public:
62  /// Default constructor.
64 
65  /// Sets up a list of local expansions based on an input mesh.
68  const LibUtilities::BasisKey &HomoBasis, const NekDouble lz,
69  const bool useFFT, const bool dealiasing,
71  const Collections::ImplementationType ImpType =
73 
76  const LibUtilities::BasisKey &HomoBasis, const NekDouble lhom,
77  const bool useFFT, const bool dealiasing,
78  const Array<OneD, ExpListSharedPtr> &planes,
80 
81  /// Copy constructor.
83  const ExpList2DHomogeneous1D &In);
84 
85  /// Destructor.
87 
88 protected:
89  /// Definition of the total number of degrees of freedom and
90  /// quadrature points. Sets up the storage for \a m_coeff and \a
91  /// m_phys.
92  void SetCoeffPhys(void);
93 
94  // virtual functions
95 
96  virtual void v_GetCoords(Array<OneD, NekDouble> &coord_0,
97  Array<OneD, NekDouble> &coord_1,
98  Array<OneD, NekDouble> &coord_2) override;
99 
100  virtual void v_GetCoords(const int eid, Array<OneD, NekDouble> &xc0,
102  Array<OneD, NekDouble> &xc2) override;
103 
104  virtual void v_WriteTecplotZone(std::ostream &outfile,
105  int expansion) override;
106 
107  virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion,
108  int istrip) override;
109 
110  virtual void v_GetNormals(
111  Array<OneD, Array<OneD, NekDouble>> &normals) override;
112 
113 private:
114 };
115 
116 } // namespace MultiRegions
117 } // namespace Nektar
118 
119 #endif // EXPLIST3DHOMO1D_H
#define MULTI_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:50
Abstraction of a two-dimensional multi-elemental expansion which is merely a collection of local expa...
virtual void v_GetCoords(Array< OneD, NekDouble > &coord_0, Array< OneD, NekDouble > &coord_1, Array< OneD, NekDouble > &coord_2) override
void SetCoeffPhys(void)
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion, int istrip) override
virtual void v_GetNormals(Array< OneD, Array< OneD, NekDouble >> &normals) override
Populate normals with the normals of all expansions.
virtual void v_WriteTecplotZone(std::ostream &outfile, int expansion) override
Abstraction of a two-dimensional multi-elemental expansion which is merely a collection of local expa...
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
Definition: Comm.h:54
std::vector< ExpList2DHomogeneous1DSharedPtr > ExpList2DHomogeneous1DVector
Vector of pointers to ExpList2DHomogeneous1D objects.
std::shared_ptr< ExpList2DHomogeneous1D > ExpList2DHomogeneous1DSharedPtr
Shared pointer to an ExpList2DHomogeneous1D object.
std::shared_ptr< MeshGraph > MeshGraphSharedPtr
Definition: MeshGraph.h:172
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2
double NekDouble