Nektar++
ExpList2DHomogeneous2D.h
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File: ExpList2DHomogeneous2D.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 1D field which is homogeneous in 2 directions and so
32// uses much of the functionality from a ExpList2D and its daughters
33//
34///////////////////////////////////////////////////////////////////////////////
35
36#ifndef EXPLIST1DHOMO2D_H
37#define EXPLIST1DHOMO2D_H
38
41#include <vector>
42
43namespace Nektar
44{
45namespace MultiRegions
46{
47
48// Forward declaration for typedefs
49class ExpList2DHomogeneous2D;
50
51/// Shared pointer to an ExpList2DHomogeneous2D object.
52typedef std::shared_ptr<ExpList2DHomogeneous2D> ExpList2DHomogeneous2DSharedPtr;
53/// Vector of pointers to ExpList2DHomogeneous2D objects.
54typedef std::vector<ExpList2DHomogeneous2DSharedPtr>
56
57/// Abstraction of a one-dimensional multi-elemental expansion which
58/// is merely a collection of local expansions.
60{
61public:
62 /// Default constructor.
64
67 const LibUtilities::BasisKey &HomoBasis_y,
68 const LibUtilities::BasisKey &HomoBasis_z, const NekDouble lhom_y,
69 const NekDouble lhom_z, const bool useFFT, const bool dealiasing,
70 const Array<OneD, ExpListSharedPtr> &points);
71
72 /// Copy constructor.
74 const ExpList2DHomogeneous2D &In);
75
76 /// Destructor.
78
79 // MULTI_REGIONS_EXPORT void HomoFwdTrans2D(const Array<OneD, const
80 // NekDouble> &inarray, Array<OneD, NekDouble> &outarray);
81
82protected:
83 /// Definition of the total number of degrees of freedom and
84 /// quadrature points. Sets up the storage for \a m_coeff and \a
85 /// m_phys.
86 void SetCoeffPhys(void);
87
88 // virtual functions
89
90 virtual void v_GetCoords(Array<OneD, NekDouble> &coord_0,
92 Array<OneD, NekDouble> &coord_2) override;
93
94 virtual void v_GetCoords(const int eid, Array<OneD, NekDouble> &xc0,
96 Array<OneD, NekDouble> &xc2) override;
97
98 virtual void v_FwdTrans(const Array<OneD, const NekDouble> &inarray,
99 Array<OneD, NekDouble> &outarray) override;
100
101 virtual void v_FwdTransLocalElmt(
102 const Array<OneD, const NekDouble> &inarray,
103 Array<OneD, NekDouble> &outarray) override;
104
105 // This is same as fwdtrans for this expansion
106 virtual void v_FwdTransBndConstrained(
107 const Array<OneD, const NekDouble> &inarray,
108 Array<OneD, NekDouble> &outarray) override;
109
110 virtual void v_WriteTecplotZone(std::ostream &outfile,
111 int expansion) override;
112
113 virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion,
114 int istrip) override;
115
116private:
117};
118
119} // namespace MultiRegions
120} // namespace Nektar
121
122#endif // EXPLIST3DHOMO1D_H
#define MULTI_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:47
Abstraction of a one-dimensional multi-elemental expansion which is merely a collection of local expa...
void SetCoeffPhys(void)
Definition of the total number of degrees of freedom and quadrature points. Sets up the storage for m...
virtual void v_FwdTransBndConstrained(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) override
virtual void v_WriteTecplotZone(std::ostream &outfile, int expansion) override
virtual void v_FwdTransLocalElmt(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) override
virtual void v_GetCoords(Array< OneD, NekDouble > &coord_0, Array< OneD, NekDouble > &coord_1, Array< OneD, NekDouble > &coord_2) override
virtual void v_WriteVtkPieceHeader(std::ostream &outfile, int expansion, int istrip) override
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) 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< ExpList2DHomogeneous2D > ExpList2DHomogeneous2DSharedPtr
Shared pointer to an ExpList2DHomogeneous2D object.
std::vector< ExpList2DHomogeneous2DSharedPtr > ExpList2DHomogeneous2DVector
Vector of pointers to ExpList2DHomogeneous2D objects.
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2
double NekDouble