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
41namespace Nektar
42{
43namespace LibUtilities
44{
45
46// Typedefs double arrays
47template <class T> using AT = Array<OneD, T>;
48
49// clang-format off
56
62// clang-format on
63
64// Shared pointers
66
67typedef std::shared_ptr<TimeIntegrationScheme> TimeIntegrationSchemeSharedPtr;
68
69typedef std::vector<TimeIntegrationSchemeSharedPtr> TimeIntegrationSchemeVector;
70
71//
73
74typedef std::shared_ptr<FractionalInTimeIntegrationScheme>
76
77typedef std::vector<FractionalInTimeIntegrationSchemeSharedPtr>
79
80//
82
83typedef std::shared_ptr<TimeIntegrationSchemeGLM>
85
86typedef std::vector<TimeIntegrationSchemeGLMSharedPtr>
88
89//
91
92typedef std::shared_ptr<TimeIntegrationAlgorithmGLM>
94
95typedef std::vector<TimeIntegrationAlgorithmGLMSharedPtr>
97
98//
100
101typedef std::shared_ptr<TimeIntegrationSolutionGLM>
103
104typedef std::vector<TimeIntegrationSolutionGLMSharedPtr>
106
107//
109
110typedef std::shared_ptr<TimeIntegrationSchemeGEM>
112
113typedef std::vector<TimeIntegrationSchemeGEMSharedPtr>
115
116//
118
119typedef std::shared_ptr<TimeIntegrationSchemeSDC>
121
122typedef std::vector<TimeIntegrationSchemeSDCSharedPtr>
124
125//
127{
129 eExplicit, //!< Formally explicit scheme
130 eDiagonallyImplicit, //!< Diagonally implicit scheme (e.g. the DIRK schemes)
131 eIMEX, //!< Implicit Explicit General Linear Method
132 eImplicit, //!< Fully implicit scheme
133 eExponential, //!< Exponential scheme
134 eFractionalInTime, //!< Fractional in Time 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)
@ 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
The above copyright notice and this permission notice shall be included.
Definition: CoupledSolver.h:2