Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
InterpCoeff.h
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File InterpCoeff.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: Definition of interpolation routines for Coefficients
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef NEKTAR_LIB_UTILTIES_FOUNDATIONS_INTERPCOEFF_H
37 #define NEKTAR_LIB_UTILTIES_FOUNDATIONS_INTERPCOEFF_H
38 
42 
43 namespace Nektar { template <typename Dim, typename DataType> class Array; }
44 
45 namespace Nektar
46 {
47  namespace LibUtilities
48  {
49  // Coefficient Space Interpolation methods
50 
51  // 1D Interpolation
53  const BasisKey &fbasis0,
54  const Array<OneD, const NekDouble> &from,
55  const BasisKey &tbasis0,
56  Array<OneD, NekDouble> &to);
57 
58  // 2D Interpolation
60  const BasisKey &fbasis0,
61  const BasisKey &fbasis1,
62  const Array<OneD, const NekDouble>& from,
63  const BasisKey &tbasis0,
64  const BasisKey &tbasis1,
65  Array<OneD, NekDouble> &to);
66 
68  const BasisKey &fbasis0,
69  const BasisKey &fbasis1,
70  const NekDouble *from,
71  const BasisKey &tbasis0,
72  const BasisKey &tbasis1,
73  NekDouble *to);
74 
75  // 3D Interpolation
77  const BasisKey &fbasis0,
78  const BasisKey &fbasis1,
79  const BasisKey &fbasis2,
80  const Array<OneD, const NekDouble>& from,
81  const BasisKey &tbasis0,
82  const BasisKey &tbasis1,
83  const BasisKey &tbasis2,
84  Array<OneD, NekDouble> &to);
85 
87  const BasisKey &fbasis0,
88  const BasisKey &fbasis1,
89  const BasisKey &fbasis2,
90  const NekDouble *from,
91  const BasisKey &tbasis0,
92  const BasisKey &tbasis1,
93  const BasisKey &tbasis2,
94  NekDouble *to);
95  }
96 }
97 
98 #endif
void InterpCoeff1D(const BasisKey &fbasis0, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, Array< OneD, NekDouble > &to)
Definition: InterpCoeff.cpp:47
#define LIB_UTILITIES_EXPORT
double NekDouble
void InterpCoeff3D(const BasisKey &fbasis0, const BasisKey &fbasis1, const BasisKey &fbasis2, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, const BasisKey &tbasis2, Array< OneD, NekDouble > &to)
void InterpCoeff2D(const BasisKey &fbasis0, const BasisKey &fbasis1, const Array< OneD, const NekDouble > &from, const BasisKey &tbasis0, const BasisKey &tbasis1, Array< OneD, NekDouble > &to)
Definition: InterpCoeff.cpp:73