Nektar++
NoSchemeTimeIntegrationScheme.cpp
Go to the documentation of this file.
1///////////////////////////////////////////////////////////////////////////////
2//
3// File NoSchemeTimeIntegrationScheme.cpp
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 scheme NoScheme class
32// This integration scheme does nothing
33//
34///////////////////////////////////////////////////////////////////////////////
35
36#include <iostream>
37
39
41{
42
43// Access Methods
45{
46 return std::string("NoIntegration");
47}
48
50{
51 return std::string("");
52}
53
55{
56 return 0;
57}
58
60{
61 return std::vector<NekDouble>(0);
62}
63
65{
66 return 0.;
67}
68
71{
73}
74
76{
77 return 0;
78}
79
80/**
81 * @brief Worker method to initialize the integration scheme.
82 */
84 [[maybe_unused]] const NekDouble deltaT, ConstDoubleArray &y_0,
85 [[maybe_unused]] const NekDouble time,
86 [[maybe_unused]] const TimeIntegrationSchemeOperators &op)
87{
88 m_doubleArray = y_0;
89}
90
91/**
92 * @brief Worker method that actually does the time integration.
93 */
95 [[maybe_unused]] const size_t timestep,
96 [[maybe_unused]] const NekDouble delta_t)
97{
98 return m_doubleArray;
99}
100
102{
104}
105
106/**
107 * @brief Worker method to print details on the integration scheme
108 */
109void NoSchemeTimeIntegrationScheme::v_print(std::ostream &os) const
110{
111 os << "Time Integration Scheme: " << GetFullName() << std::endl;
112}
113
115{
116 os << "Time Integration Scheme: " << GetFullName() << std::endl;
117}
118
119} // namespace Nektar::LibUtilities
LUE void v_print(std::ostream &os) const override
Worker method to print details on the integration scheme.
LUE void v_InitializeScheme(const NekDouble deltaT, ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op) override
Worker method to initialize the integration scheme.
LUE std::vector< NekDouble > v_GetFreeParams() const override
LUE TimeIntegrationSchemeType v_GetIntegrationSchemeType() const override
LUE ConstDoubleArray & v_TimeIntegrate(const size_t timestep, const NekDouble delta_t) override
Worker method that actually does the time integration.
Binds a set of functions for use by time integration schemes.
static Array< OneD, Array< OneD, Array< OneD, NekDouble > > > NullNekDoubleTensorOfArray3D
double NekDouble