Nektar++
Loading...
Searching...
No Matches
StdNodalPrismExp.h
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File: StdNodalPrismExp.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 STDNODALPRISMEXP_H
37#define STDNODALPRISMEXP_H
38
40
41namespace Nektar::StdRegions
42{
43class StdNodalPrismExp : virtual public StdPrismExp
44{
45public:
47 const LibUtilities::BasisKey &Bb,
48 const LibUtilities::BasisKey &Bc,
49 const LibUtilities::PointsType Ntype);
52
53 //-------------------------------
54 // Nodal basis specific routines
55 //-------------------------------
57 const Array<OneD, const NekDouble> &inarray,
58 Array<OneD, NekDouble> &outarray);
60 const Array<OneD, const NekDouble> &inarray,
61 Array<OneD, NekDouble> &outarray);
63 const Array<OneD, const NekDouble> &inarray,
64 Array<OneD, NekDouble> &outarray);
69
70protected:
72
74 const override
75 {
76 return m_nodalPointsKey;
77 };
78
80
81 //---------------------------------------
82 // Transforms
83 //---------------------------------------
85 const Array<OneD, const NekDouble> &inarray,
86 Array<OneD, NekDouble> &outarray) override;
87
88 //---------------------------------------
89 // Inner product functions
90 //---------------------------------------
92 const Array<OneD, const NekDouble> &inarray,
93 Array<OneD, NekDouble> &outarray) override;
95 const int dir, const Array<OneD, const NekDouble> &inarray,
96 Array<OneD, NekDouble> &outarray) override;
97
98 //---------------------------------------
99 // Evaluation functions
100 //---------------------------------------
102 const int mode, Array<OneD, NekDouble> &outarray) override;
103
104 //---------------------------
105 // Helper functions
106 //---------------------------
108
109 //---------------------------------------
110 // Mapping functions
111 //---------------------------------------
113 const int localVertexId, bool useCoeffPacking = false) override;
115 Array<OneD, unsigned int> &outarray) override;
117 Array<OneD, unsigned int> &outarray) override;
118
119 //---------------------------------------
120 // Wrapper functions
121 //---------------------------------------
123 v_GenMatrix(const StdMatrixKey &mkey) override;
125 v_CreateStdMatrix(const StdMatrixKey &mkey) override;
126};
127
128typedef std::shared_ptr<StdNodalPrismExp> StdNodalPrismExpSharedPtr;
129} // namespace Nektar::StdRegions
130#endif // STDNODALTETEXP_H
#define STD_REGIONS_EXPORT
Describes the specification for a Basis.
Definition Basis.h:45
Defines a specification for a set of points.
Definition Points.h:50
DNekMatSharedPtr v_CreateStdMatrix(const StdMatrixKey &mkey) override
LibUtilities::PointsKey m_nodalPointsKey
StdNodalPrismExp(const StdNodalPrismExp &T)=default
DNekMatSharedPtr v_GenMatrix(const StdMatrixKey &mkey) override
void v_GetBoundaryMap(Array< OneD, unsigned int > &outarray) override
void v_IProductWRTDerivBase(const int dir, const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) override
int v_GetVertexMap(const int localVertexId, bool useCoeffPacking=false) override
void v_GetInteriorMap(Array< OneD, unsigned int > &outarray) override
void v_FillMode(const int mode, Array< OneD, NekDouble > &outarray) override
void GetNodalPoints(Array< OneD, const NekDouble > &x, Array< OneD, const NekDouble > &y, Array< OneD, const NekDouble > &z)
void v_IProductWRTBase(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) override
void v_BwdTrans(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray) override
void NodalToModal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
void NodalToModalTranspose(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
const LibUtilities::PointsKey v_GetNodalPointsKey() const override
LibUtilities::ShapeType v_DetShapeType() const override
void ModalToNodal(const Array< OneD, const NekDouble > &inarray, Array< OneD, NekDouble > &outarray)
Class representing a prismatic element in reference space.
Definition StdPrismExp.h:45
std::shared_ptr< StdNodalPrismExp > StdNodalPrismExpSharedPtr
std::shared_ptr< DNekMat > DNekMatSharedPtr