Nektar++
StdElements.cpp
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File: StdElements.cpp
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: Python wrapper for all Nektar++ elements.
32 //
33 ///////////////////////////////////////////////////////////////////////////////
34 
36 
37 #include <StdRegions/StdPointExp.h>
38 #include <StdRegions/StdSegExp.h>
39 #include <StdRegions/StdTriExp.h>
40 #include <StdRegions/StdQuadExp.h>
41 #include <StdRegions/StdTetExp.h>
42 #include <StdRegions/StdPrismExp.h>
43 #include <StdRegions/StdPyrExp.h>
44 #include <StdRegions/StdHexExp.h>
45 
46 using namespace Nektar;
47 using namespace Nektar::StdRegions;
48 
50 {
51  py::class_<StdPointExp, py::bases<StdExpansion>,
52  std::shared_ptr<StdPointExp> >(
53  "StdPointExp", py::init<const LibUtilities::BasisKey&>());
54  py::class_<StdSegExp, py::bases<StdExpansion>,
55  std::shared_ptr<StdSegExp> >(
56  "StdSegExp", py::init<const LibUtilities::BasisKey&>());
57  py::class_<StdQuadExp, py::bases<StdExpansion>,
58  std::shared_ptr<StdQuadExp> >(
59  "StdQuadExp", py::init<const LibUtilities::BasisKey&,
60  const LibUtilities::BasisKey&>());
61  py::class_<StdTriExp, py::bases<StdExpansion>,
62  std::shared_ptr<StdTriExp> >(
63  "StdTriExp", py::init<const LibUtilities::BasisKey&,
64  const LibUtilities::BasisKey&>());
65  py::class_<StdTetExp, py::bases<StdExpansion>,
66  std::shared_ptr<StdTetExp> >(
67  "StdTetExp", py::init<const LibUtilities::BasisKey&,
68  const LibUtilities::BasisKey&,
69  const LibUtilities::BasisKey&>());
70  py::class_<StdPrismExp, py::bases<StdExpansion>,
71  std::shared_ptr<StdPrismExp> >(
72  "StdPrismExp", py::init<const LibUtilities::BasisKey&,
73  const LibUtilities::BasisKey&,
74  const LibUtilities::BasisKey&>());
75  py::class_<StdPyrExp, py::bases<StdExpansion>,
76  std::shared_ptr<StdPyrExp> >(
77  "StdPyrExp", py::init<const LibUtilities::BasisKey&,
78  const LibUtilities::BasisKey&,
79  const LibUtilities::BasisKey&>());
80  py::class_<StdHexExp, py::bases<StdExpansion>,
81  std::shared_ptr<StdHexExp> >(
82  "StdHexExp", py::init<const LibUtilities::BasisKey&,
83  const LibUtilities::BasisKey&,
84  const LibUtilities::BasisKey&>());
85 
93 }
94 
#define NEKPY_SHPTR_FIX(SOURCE, TARGET)
Class representing a segment element in reference space.
Definition: StdSegExp.h:53
The base class for all shapes.
Definition: StdExpansion.h:68
Class representing a hexehedral element in reference space.
Definition: StdHexExp.h:47
Class representing a prismatic element in reference space.
Definition: StdPrismExp.h:48
The namespace associated with the the StdRegions library (StdRegions introduction) ...
Definition: IndexMapKey.cpp:40
void export_StdElements()
Definition: StdElements.cpp:49
Describes the specification for a Basis.
Definition: Basis.h:49