Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
StdNodalTriExp.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File StdNodalTriExp.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: Header field for Nodal triangle routines built upon
33 // StdExpansion2D
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef STDNODALTRIEXP_H
38 #define STDNODALTRIEXP_H
39 
41 #include <StdRegions/StdTriExp.h>
43 
44 namespace Nektar
45 {
46  namespace StdRegions
47  {
48  class StdNodalTriExp: public StdTriExp
49  {
50  public:
53  const LibUtilities::BasisKey &Ba,
54  const LibUtilities::BasisKey &Bb,
55  const LibUtilities::PointsType Ntype);
56  STD_REGIONS_EXPORT StdNodalTriExp(const StdNodalTriExp &T);
58 
59  //-------------------------------
60  // Nodal basis specific routines
61  //-------------------------------
63  const Array<OneD, const NekDouble>& inarray,
64  Array<OneD, NekDouble>& outarray);
66  const Array<OneD, const NekDouble>& inarray,
67  Array<OneD, NekDouble>& outarray);
69  const Array<OneD, const NekDouble>& inarray,
70  Array<OneD, NekDouble>& outarray);
72  Array<OneD, const NekDouble> &x,
73  Array<OneD, const NekDouble> &y);
75 
76  protected:
77  boost::shared_ptr<LibUtilities::PointsKey> m_nodalPointsKey;
78 
79 
80  //---------------------------------------
81  // Transforms
82  //---------------------------------------
83  STD_REGIONS_EXPORT virtual void v_BwdTrans(
84  const Array<OneD, const NekDouble>& inarray,
85  Array<OneD, NekDouble>& outarray);
87  const Array<OneD, const NekDouble>& inarray,
88  Array<OneD, NekDouble>& outarray);
89  STD_REGIONS_EXPORT virtual void v_FwdTrans(
90  const Array<OneD, const NekDouble>& inarray,
91  Array<OneD, NekDouble>& outarray);
92 
93 
94  //---------------------------------------
95  // Inner product functions
96  //---------------------------------------
98  const Array<OneD, const NekDouble>& inarray,
99  Array<OneD, NekDouble>& outarray);
101  const Array<OneD, const NekDouble>& inarray,
102  Array<OneD, NekDouble>& outarray);
104  const int dir,
105  const Array<OneD, const NekDouble>& inarray,
106  Array<OneD, NekDouble>& outarray);
108  const int dir,
109  const Array<OneD, const NekDouble>& inarray,
110  Array<OneD, NekDouble>& outarray);
111 
112 
113  //---------------------------------------
114  // Evaluation functions
115  //---------------------------------------
116  STD_REGIONS_EXPORT virtual void v_FillMode(
117  const int mode,
118  Array<OneD, NekDouble> &outarray);
119 
120 
121  //---------------------------
122  // Helper functions
123  //---------------------------
124  STD_REGIONS_EXPORT virtual int v_NumBndryCoeffs() const;
125 
126  //--------------------------
127  // Mappings
128  //--------------------------
130  const int eid,
131  const Orientation edgeOrient,
132  Array<OneD, unsigned int>& maparray,
133  Array<OneD, int>& signarray);
134  STD_REGIONS_EXPORT virtual int v_GetVertexMap(int localVertexId,
135  bool useCoeffPacking = false);
137  const int eid,
138  const Orientation edgeOrient,
139  Array<OneD, unsigned int>& maparray,
140  Array<OneD, int>& signarray);
142  Array<OneD, unsigned int>& outarray);
144  Array<OneD, unsigned int>& outarray);
145 
146 
147  //---------------------------------------
148  // Operator evaluation functions
149  //---------------------------------------
150  STD_REGIONS_EXPORT virtual void v_MassMatrixOp(
151  const Array<OneD, const NekDouble> &inarray,
152  Array<OneD, NekDouble> &outarray,
153  const StdMatrixKey &mkey);
155  const Array<OneD, const NekDouble> &inarray,
156  Array<OneD, NekDouble> &outarray,
157  const StdMatrixKey &mkey);
159  const int k1,
160  const int k2,
161  const Array<OneD, const NekDouble> &inarray,
162  Array<OneD, NekDouble> &outarray,
163  const StdMatrixKey &mkey);
165  const int i,
166  const Array<OneD, const NekDouble> &inarray,
167  Array<OneD, NekDouble> &outarray,
168  const StdMatrixKey &mkey);
170  const Array<OneD, const NekDouble> &inarray,
171  Array<OneD, NekDouble> &outarray,
172  const StdMatrixKey &mkey);
173 
174 
175  //---------------------------------------
176  // Wrapper functions
177  //---------------------------------------
179  const StdMatrixKey &mkey);
181  const StdMatrixKey &mkey);
182  };
183 
184  typedef boost::shared_ptr<StdNodalTriExp> StdNodalTriExpSharedPtr;
185  } //end of namespace
186 } //end of namespace
187 
188 #endif //STDNODALTRIEXP_H