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);
75 
76 
77  protected:
79 
81  {
82  return m_nodalPointsKey;
83  };
84 
86 
87  //---------------------------------------
88  // Transforms
89  //---------------------------------------
90  STD_REGIONS_EXPORT virtual void v_BwdTrans(
91  const Array<OneD, const NekDouble>& inarray,
92  Array<OneD, NekDouble>& outarray);
94  const Array<OneD, const NekDouble>& inarray,
95  Array<OneD, NekDouble>& outarray);
96  STD_REGIONS_EXPORT virtual void v_FwdTrans(
97  const Array<OneD, const NekDouble>& inarray,
98  Array<OneD, NekDouble>& outarray);
99 
100 
101  //---------------------------------------
102  // Inner product functions
103  //---------------------------------------
105  const Array<OneD, const NekDouble>& inarray,
106  Array<OneD, NekDouble>& outarray);
108  const Array<OneD, const NekDouble>& inarray,
109  Array<OneD, NekDouble>& outarray,
110  bool multiplybyweights = true);
112  const int dir,
113  const Array<OneD, const NekDouble>& inarray,
114  Array<OneD, NekDouble>& outarray);
116  const int dir,
117  const Array<OneD, const NekDouble>& inarray,
118  Array<OneD, NekDouble>& outarray);
119 
120 
121  //---------------------------------------
122  // Evaluation functions
123  //---------------------------------------
124  STD_REGIONS_EXPORT virtual void v_FillMode(
125  const int mode,
126  Array<OneD, NekDouble> &outarray);
127 
128 
129  //---------------------------
130  // Helper functions
131  //---------------------------
132  STD_REGIONS_EXPORT virtual int v_NumBndryCoeffs() const;
133 
134  //--------------------------
135  // Mappings
136  //--------------------------
138  const int eid,
139  const Orientation edgeOrient,
140  Array<OneD, unsigned int>& maparray,
141  Array<OneD, int>& signarray,
142  int P);
143  STD_REGIONS_EXPORT virtual int v_GetVertexMap(int localVertexId,
144  bool useCoeffPacking = false);
146  const int eid,
147  const Orientation edgeOrient,
148  Array<OneD, unsigned int>& maparray,
149  Array<OneD, int>& signarray);
151  Array<OneD, unsigned int>& outarray);
153  Array<OneD, unsigned int>& outarray);
154 
155 
156  //---------------------------------------
157  // Operator evaluation functions
158  //---------------------------------------
159  STD_REGIONS_EXPORT virtual void v_MassMatrixOp(
160  const Array<OneD, const NekDouble> &inarray,
161  Array<OneD, NekDouble> &outarray,
162  const StdMatrixKey &mkey);
164  const Array<OneD, const NekDouble> &inarray,
165  Array<OneD, NekDouble> &outarray,
166  const StdMatrixKey &mkey);
168  const int k1,
169  const int k2,
170  const Array<OneD, const NekDouble> &inarray,
171  Array<OneD, NekDouble> &outarray,
172  const StdMatrixKey &mkey);
174  const int i,
175  const Array<OneD, const NekDouble> &inarray,
176  Array<OneD, NekDouble> &outarray,
177  const StdMatrixKey &mkey);
179  const Array<OneD, const NekDouble> &inarray,
180  Array<OneD, NekDouble> &outarray,
181  const StdMatrixKey &mkey);
182 
183 
184  //---------------------------------------
185  // Wrapper functions
186  //---------------------------------------
188  const StdMatrixKey &mkey);
190  const StdMatrixKey &mkey);
191  };
192 
193  typedef boost::shared_ptr<StdNodalTriExp> StdNodalTriExpSharedPtr;
194  } //end of namespace
195 } //end of namespace
196 
197 #endif //STDNODALTRIEXP_H
void ModalToNodal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Calculate the inner product of inarray with respect to the basis B=base0[p]*base1[pq] and put into ou...
virtual void v_GetInteriorMap(Array< OneD, unsigned int > &outarray)
virtual const LibUtilities::PointsKey v_GetNodalPointsKey() const
boost::shared_ptr< DNekMat > DNekMatSharedPtr
Definition: NekTypeDefs.hpp:70
boost::shared_ptr< StdNodalTriExp > StdNodalTriExpSharedPtr
virtual void v_WeakDerivMatrixOp(const int i, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
virtual void v_MassMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
void NodalToModalTranspose(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_BwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Backward tranform for triangular elements.
LibUtilities::PointsKey m_nodalPointsKey
virtual void v_IProductWRTBase_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool multiplybyweights=true)
virtual void v_GetEdgeToElementMap(const int eid, const Orientation edgeOrient, Array< OneD, unsigned int > &maparray, Array< OneD, int > &signarray, int P)
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Transform a given function from physical quadrature space to coefficient space.
virtual void v_HelmholtzMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
void GetNodalPoints(Array< OneD, const NekDouble > &x, Array< OneD, const NekDouble > &y)
Defines a specification for a set of points.
Definition: Points.h:58
virtual void v_IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_GetBoundaryMap(Array< OneD, unsigned int > &outarray)
virtual void v_BwdTrans_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual DNekMatSharedPtr v_GenMatrix(const StdMatrixKey &mkey)
virtual int v_GetVertexMap(int localVertexId, bool useCoeffPacking=false)
#define STD_REGIONS_EXPORT
virtual void v_LaplacianMatrixOp(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, const StdMatrixKey &mkey)
void NodalToModal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual DNekMatSharedPtr v_CreateStdMatrix(const StdMatrixKey &mkey)
virtual void v_GetEdgeInteriorMap(const int eid, const Orientation edgeOrient, Array< OneD, unsigned int > &maparray, Array< OneD, int > &signarray)
Describes the specification for a Basis.
Definition: Basis.h:50
virtual void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_FillMode(const int mode, Array< OneD, NekDouble > &outarray)