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
42{
43
44// Typedefs double arrays
45template <class T> using AT = Array<OneD, T>;
46
47// clang-format off
54
60// clang-format on
61
62// Shared pointers
64
65typedef std::shared_ptr<TimeIntegrationScheme> TimeIntegrationSchemeSharedPtr;
66
67typedef std::vector<TimeIntegrationSchemeSharedPtr> TimeIntegrationSchemeVector;
68
70
71typedef std::shared_ptr<NoSchemeTimeIntegrationScheme>
73
74//
76
77typedef std::shared_ptr<FractionalInTimeIntegrationScheme>
79
80typedef std::vector<FractionalInTimeIntegrationSchemeSharedPtr>
82
83//
85
86typedef std::shared_ptr<TimeIntegrationSchemeGLM>
88
89typedef std::vector<TimeIntegrationSchemeGLMSharedPtr>
91
92//
94
95typedef std::shared_ptr<TimeIntegrationAlgorithmGLM>
97
98typedef std::vector<TimeIntegrationAlgorithmGLMSharedPtr>
100
101//
103
104typedef std::shared_ptr<TimeIntegrationSolutionGLM>
106
107typedef std::vector<TimeIntegrationSolutionGLMSharedPtr>
109
110//
112
113typedef std::shared_ptr<TimeIntegrationSchemeGEM>
115
116typedef std::vector<TimeIntegrationSchemeGEMSharedPtr>
118
119//
121
122typedef std::shared_ptr<TimeIntegrationSchemeSDC>
124
125typedef std::vector<TimeIntegrationSchemeSDCSharedPtr>
127
128//
130{
132 eExplicit, //!< Formally explicit scheme
133 eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
134 eIMEX, //!< Implicit Explicit General Linear Method
135 eImplicit, //!< Fully implicit scheme
136 eExponential, //!< Exponential scheme
137 eFractionalInTime, //!< Fractional in Time scheme
138};
139
140} // namespace Nektar::LibUtilities
141
142#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
std::shared_ptr< NoSchemeTimeIntegrationScheme > NoTimeIntegrationSchemeSharedPtr
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)
@ eIMEX
Implicit Explicit General Linear Method.
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