Nektar++
TimeIntegrationTypes.hpp
Go to the documentation of this file.
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 // File TimeIntegrationTypes.hpp
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: implementation of time integration types that are
32 // common to all schemes.
33 //
34 ///////////////////////////////////////////////////////////////////////////////
35 
36 #ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_TIME_INTEGRATION_TYPES
37 #define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_TIME_INTEGRATION_TYPES
38 
40 
41 namespace Nektar
42 {
43 namespace LibUtilities
44 {
45 
46 // Typedefs double arrays
47 template <class T> using AT = Array<OneD, T>;
48 
49 // clang-format off
56 
62 // clang-format on
63 
64 // Functors
65 typedef std::function<void(ConstDoubleArray &, DoubleArray &, const NekDouble)>
67 typedef std::function<void(ConstDoubleArray &, DoubleArray &, const NekDouble,
68  const NekDouble)>
70 
71 // Shared pointers
73 
74 typedef std::shared_ptr<TimeIntegrationScheme> TimeIntegrationSchemeSharedPtr;
75 
76 typedef std::vector<TimeIntegrationSchemeSharedPtr> TimeIntegrationSchemeVector;
77 
78 //
80 
81 typedef std::shared_ptr<FractionalInTimeIntegrationScheme>
83 
84 typedef std::vector<FractionalInTimeIntegrationSchemeSharedPtr>
86 
87 //
89 
90 typedef std::shared_ptr<TimeIntegrationSchemeGLM>
92 
93 typedef std::vector<TimeIntegrationSchemeGLMSharedPtr>
95 
96 //
98 
99 typedef std::shared_ptr<TimeIntegrationAlgorithmGLM>
101 
102 typedef std::vector<TimeIntegrationAlgorithmGLMSharedPtr>
104 
105 //
107 
108 typedef std::shared_ptr<TimeIntegrationSolutionGLM>
110 
111 typedef std::vector<TimeIntegrationSolutionGLMSharedPtr>
113 
114 //
116 {
118  eExplicit, //!< Formally explicit scheme
119  eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
120  eIMEX, //!< Implicit Explicit General Linear Method
121  eImplicit, //!< Fully implicit scheme
122  eExponential, //!< Exponential scheme
123  eFractionalInTime, //!< Fractional in Time scheme
124 };
125 
126 } // end namespace LibUtilities
127 } // end namespace Nektar
128 
129 #endif
Base class for GLM time integration schemes.
Base class for time integration schemes.
AT< AT< NekDouble > > DoubleArray
std::shared_ptr< TimeIntegrationAlgorithmGLM > TimeIntegrationAlgorithmGLMSharedPtr
const AT< const AT< std::complex< NekDouble > > > ConstComplexDoubleArray
AT< AT< std::complex< NekDouble > > > ComplexDoubleArray
std::function< void(ConstDoubleArray &, DoubleArray &, const NekDouble)> FunctorType1
std::vector< TimeIntegrationSchemeSharedPtr > TimeIntegrationSchemeVector
AT< std::complex< NekDouble > > ComplexSingleArray
@ eFractionalInTime
Fractional in Time scheme.
@ eImplicit
Fully implicit scheme.
@ eExplicit
Formally explicit scheme.
@ eExponential
Exponential scheme.
@ eDiagonallyImplicit
Diagonally implicit scheme (e.g. the DIRK schemes)
@ eIMEX
Implicit Explicit General Linear Method.
std::vector< FractionalInTimeIntegrationSchemeSharedPtr > FractionalInTimeIntegrationSchemeVector
std::shared_ptr< TimeIntegrationSolutionGLM > TimeIntegrationSolutionGLMSharedPtr
AT< AT< AT< NekDouble > > > TripleArray
std::shared_ptr< FractionalInTimeIntegrationScheme > FractionalInTimeIntegrationSchemeSharedPtr
const AT< const NekDouble > ConstSingleArray
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
const AT< const std::complex< NekDouble > > ConstComplexSingleArray
std::shared_ptr< TimeIntegrationSchemeGLM > TimeIntegrationSchemeGLMSharedPtr
AT< AT< AT< std::complex< NekDouble > > > > ComplexTripleArray
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr
std::vector< TimeIntegrationSolutionGLMSharedPtr > TimeIntegrationSolutionGLMVector
std::vector< TimeIntegrationSchemeGLMSharedPtr > TimeIntegrationSchemeGLMVector
const AT< const AT< AT< NekDouble > > > ConstTripleArray
const AT< const AT< NekDouble > > ConstDoubleArray
std::function< void(ConstDoubleArray &, DoubleArray &, const NekDouble, const NekDouble)> FunctorType2
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:1
double NekDouble