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 // Shared pointers
66 
67 typedef std::shared_ptr<TimeIntegrationScheme> TimeIntegrationSchemeSharedPtr;
68 
69 typedef std::vector<TimeIntegrationSchemeSharedPtr> TimeIntegrationSchemeVector;
70 
71 //
73 
74 typedef std::shared_ptr<FractionalInTimeIntegrationScheme>
76 
77 typedef std::vector<FractionalInTimeIntegrationSchemeSharedPtr>
79 
80 //
82 
83 typedef std::shared_ptr<TimeIntegrationSchemeGLM>
85 
86 typedef std::vector<TimeIntegrationSchemeGLMSharedPtr>
88 
89 //
91 
92 typedef std::shared_ptr<TimeIntegrationAlgorithmGLM>
94 
95 typedef std::vector<TimeIntegrationAlgorithmGLMSharedPtr>
97 
98 //
100 
101 typedef std::shared_ptr<TimeIntegrationSolutionGLM>
103 
104 typedef std::vector<TimeIntegrationSolutionGLMSharedPtr>
106 
108 
109 typedef std::shared_ptr<TimeIntegrationSchemeGEM>
111 
112 typedef std::vector<TimeIntegrationSchemeGEMSharedPtr>
114 
116 
117 typedef std::shared_ptr<TimeIntegrationSchemeSDC>
119 
120 typedef std::vector<TimeIntegrationSchemeSDCSharedPtr>
122 
123 //
125 {
127  eExplicit, //!< Formally explicit scheme
128  eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
129  eIMEX, //!< Implicit Explicit General Linear Method
130  eImplicit, //!< Fully implicit scheme
131  eExponential, //!< Exponential scheme
132  eFractionalInTime, //!< Fractional in Time scheme
133  eSpectralDeferredCorrection, //!< Spectral deferred correction scheme
134  eExtrapolationMethod, //!< Extrapolation scheme
135 };
136 
137 } // end namespace LibUtilities
138 } // end namespace Nektar
139 
140 #endif
Class for spectral deferred correction integration.
Base class for GLM time integration schemes.
Base class for time integration schemes.
Class for spectral deferred correction integration.
AT< AT< NekDouble > > DoubleArray
std::shared_ptr< TimeIntegrationAlgorithmGLM > TimeIntegrationAlgorithmGLMSharedPtr
const AT< const AT< std::complex< NekDouble > > > ConstComplexDoubleArray
AT< AT< std::complex< NekDouble > > > ComplexDoubleArray
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)
@ eExtrapolationMethod
Extrapolation scheme.
@ eIMEX
Implicit Explicit General Linear Method.
@ eSpectralDeferredCorrection
Spectral deferred correction scheme.
std::shared_ptr< TimeIntegrationSchemeSDC > TimeIntegrationSchemeSDCSharedPtr
std::vector< FractionalInTimeIntegrationSchemeSharedPtr > FractionalInTimeIntegrationSchemeVector
std::vector< TimeIntegrationSchemeGEMSharedPtr > TimeIntegrationSchemeGEMVector
std::shared_ptr< TimeIntegrationSolutionGLM > TimeIntegrationSolutionGLMSharedPtr
std::vector< TimeIntegrationSchemeSDCSharedPtr > TimeIntegrationSchemeSDCVector
AT< AT< AT< NekDouble > > > TripleArray
std::shared_ptr< FractionalInTimeIntegrationScheme > FractionalInTimeIntegrationSchemeSharedPtr
const AT< const NekDouble > ConstSingleArray
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
std::shared_ptr< TimeIntegrationSchemeGEM > TimeIntegrationSchemeGEMSharedPtr
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
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2