Nektar++
StdNodalTetExp.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File StdNodalTetExp.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: Header field for nodal tetrahedral routines built upon
32 // StdExpansion3D
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef STDNODALTETEXP_H
37 #define STDNODALTETEXP_H
38 
39 #include <StdRegions/StdTetExp.h>
40 
41 namespace Nektar
42 {
43  namespace StdRegions
44  {
45  class StdNodalTetExp: public StdTetExp
46  {
47  public:
50  const LibUtilities::BasisKey &Ba,
51  const LibUtilities::BasisKey &Bb,
52  const LibUtilities::BasisKey &Bc,
53  const LibUtilities::PointsType Ntype);
56 
57  //-------------------------------
58  // Nodal basis specific routines
59  //-------------------------------
61  const Array<OneD, const NekDouble>& inarray,
62  Array<OneD, NekDouble>& outarray);
64  const Array<OneD, const NekDouble>& inarray,
65  Array<OneD, NekDouble>& outarray);
67  const Array<OneD, const NekDouble>& inarray,
68  Array<OneD, NekDouble>& outarray);
74 
75  protected:
77 
79  {
80  return m_nodalPointsKey;
81  };
82 
84 
85  //---------------------------------------
86  // Transforms
87  //---------------------------------------
88  STD_REGIONS_EXPORT virtual void v_BwdTrans(
89  const Array<OneD, const NekDouble>& inarray,
90  Array<OneD, NekDouble>& outarray);
92  const Array<OneD, const NekDouble>& inarray,
93  Array<OneD, NekDouble>& outarray);
94  STD_REGIONS_EXPORT virtual void v_FwdTrans(
95  const Array<OneD, const NekDouble>& inarray,
96  Array<OneD, NekDouble>& outarray);
97 
98 
99  //---------------------------------------
100  // Inner product functions
101  //---------------------------------------
103  const Array<OneD, const NekDouble>& inarray,
104  Array<OneD, NekDouble>& outarray);
106  const Array<OneD, const NekDouble>& inarray,
107  Array<OneD, NekDouble>& outarray,
108  bool mult = true);
110  const int dir,
111  const Array<OneD, const NekDouble>& inarray,
112  Array<OneD, NekDouble>& outarray);
114  const int dir,
115  const Array<OneD, const NekDouble>& inarray,
116  Array<OneD, NekDouble>& outarray);
117 
118 
119  //---------------------------------------
120  // Evaluation functions
121  //---------------------------------------
122  STD_REGIONS_EXPORT virtual void v_FillMode(
123  const int mode,
124  Array<OneD, NekDouble> &outarray);
125 
126 
127  //---------------------------------------
128  // Mapping functions
129  //---------------------------------------
131  const int localVertexId,
132  bool useCoeffPacking = false);
134  Array<OneD, unsigned int>& outarray);
136  Array<OneD, unsigned int>& outarray);
137 
138 
139  //---------------------------------------
140  // Wrapper functions
141  //---------------------------------------
143  const StdMatrixKey &mkey);
145  const StdMatrixKey &mkey);
146  };
147 
148  typedef std::shared_ptr<StdNodalTetExp> StdNodalTetExpSharedPtr;
149  } //end of namespace
150 } //end of namespace
151 #endif //STDNODALTETEXP_H
#define STD_REGIONS_EXPORT
Describes the specification for a Basis.
Definition: Basis.h:50
Defines a specification for a set of points.
Definition: Points.h:60
virtual const LibUtilities::PointsKey v_GetNodalPointsKey() const
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
void NodalToModalTranspose(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTBase_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray, bool mult=true)
void NodalToModal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_FillMode(const int mode, Array< OneD, NekDouble > &outarray)
virtual DNekMatSharedPtr v_GenMatrix(const StdMatrixKey &mkey)
void ModalToNodal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual DNekMatSharedPtr v_CreateStdMatrix(const StdMatrixKey &mkey)
void GetNodalPoints(Array< OneD, const NekDouble > &x, Array< OneD, const NekDouble > &y, Array< OneD, const NekDouble > &z)
virtual int v_GetVertexMap(const int localVertexId, bool useCoeffPacking=false)
virtual void v_BwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_GetInteriorMap(Array< OneD, unsigned int > &outarray)
virtual void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_BwdTrans_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_GetBoundaryMap(Array< OneD, unsigned int > &outarray)
LibUtilities::PointsKey m_nodalPointsKey
std::shared_ptr< StdNodalTetExp > StdNodalTetExpSharedPtr
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:1
std::shared_ptr< DNekMat > DNekMatSharedPtr
Definition: NekTypeDefs.hpp:69