Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 // 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 tetrahedral routines built upon
33 // StdExpansion3D
34 //
35 ///////////////////////////////////////////////////////////////////////////////
36 
37 #ifndef STDNODALTETEXP_H
38 #define STDNODALTETEXP_H
39 
40 #include <StdRegions/StdTetExp.h>
41 
42 namespace Nektar
43 {
44  namespace StdRegions
45  {
46  class StdNodalTetExp: public StdTetExp
47  {
48  public:
51  const LibUtilities::BasisKey &Ba,
52  const LibUtilities::BasisKey &Bb,
53  const LibUtilities::BasisKey &Bc,
54  const LibUtilities::PointsType Ntype);
55  STD_REGIONS_EXPORT StdNodalTetExp(const StdNodalTetExp &T);
57 
58  //-------------------------------
59  // Nodal basis specific routines
60  //-------------------------------
62  const Array<OneD, const NekDouble>& inarray,
63  Array<OneD, NekDouble>& outarray);
65  const Array<OneD, const NekDouble>& inarray,
66  Array<OneD, NekDouble>& outarray);
68  const Array<OneD, const NekDouble>& inarray,
69  Array<OneD, NekDouble>& outarray);
75 
76  protected:
78 
80  {
81  return m_nodalPointsKey;
82  };
83 
85 
86  //---------------------------------------
87  // Transforms
88  //---------------------------------------
89  STD_REGIONS_EXPORT virtual void v_BwdTrans(
90  const Array<OneD, const NekDouble>& inarray,
91  Array<OneD, NekDouble>& outarray);
93  const Array<OneD, const NekDouble>& inarray,
94  Array<OneD, NekDouble>& outarray);
95  STD_REGIONS_EXPORT virtual void v_FwdTrans(
96  const Array<OneD, const NekDouble>& inarray,
97  Array<OneD, NekDouble>& outarray);
98 
99 
100  //---------------------------------------
101  // Inner product functions
102  //---------------------------------------
104  const Array<OneD, const NekDouble>& inarray,
105  Array<OneD, NekDouble>& outarray);
107  const Array<OneD, const NekDouble>& inarray,
108  Array<OneD, NekDouble>& outarray,
109  bool mult = true);
111  const int dir,
112  const Array<OneD, const NekDouble>& inarray,
113  Array<OneD, NekDouble>& outarray);
115  const int dir,
116  const Array<OneD, const NekDouble>& inarray,
117  Array<OneD, NekDouble>& outarray);
118 
119 
120  //---------------------------------------
121  // Evaluation functions
122  //---------------------------------------
123  STD_REGIONS_EXPORT virtual void v_FillMode(
124  const int mode,
125  Array<OneD, NekDouble> &outarray);
126 
127 
128  //---------------------------------------
129  // Mapping functions
130  //---------------------------------------
132  const int localVertexId,
133  bool useCoeffPacking = false);
135  Array<OneD, unsigned int>& outarray);
137  Array<OneD, unsigned int>& outarray);
138 
139 
140  //---------------------------------------
141  // Wrapper functions
142  //---------------------------------------
144  const StdMatrixKey &mkey);
146  const StdMatrixKey &mkey);
147  };
148 
149  typedef boost::shared_ptr<StdNodalTetExp> StdNodalTetExpSharedPtr;
150  } //end of namespace
151 } //end of namespace
152 #endif //STDNODALTETEXP_H
virtual void v_GetBoundaryMap(Array< OneD, unsigned int > &outarray)
void GetNodalPoints(Array< OneD, const NekDouble > &x, Array< OneD, const NekDouble > &y, Array< OneD, const NekDouble > &z)
virtual void v_IProductWRTDerivBase_SumFac(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
LibUtilities::PointsKey m_nodalPointsKey
boost::shared_ptr< DNekMat > DNekMatSharedPtr
Definition: NekTypeDefs.hpp:70
virtual void v_GetInteriorMap(Array< OneD, unsigned int > &outarray)
virtual int v_GetVertexMap(const int localVertexId, bool useCoeffPacking=false)
void NodalToModal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual const LibUtilities::PointsKey v_GetNodalPointsKey() const
virtual void v_BwdTrans_SumFac(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Defines a specification for a set of points.
Definition: Points.h:58
boost::shared_ptr< StdNodalTetExp > StdNodalTetExpSharedPtr
virtual DNekMatSharedPtr v_GenMatrix(const StdMatrixKey &mkey)
virtual void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual void v_FwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
#define STD_REGIONS_EXPORT
virtual void v_BwdTrans(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 ModalToNodal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
virtual DNekMatSharedPtr v_CreateStdMatrix(const StdMatrixKey &mkey)
void NodalToModalTranspose(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Describes the specification for a Basis.
Definition: Basis.h:50
virtual void v_FillMode(const int mode, Array< OneD, NekDouble > &outarray)