ExaDG
Loading...
Searching...
No Matches
ab_constants.h
1/* ______________________________________________________________________
2 *
3 * ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4 *
5 * Copyright (C) 2021 by the ExaDG authors
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 * ______________________________________________________________________
20 */
21
22#ifndef INCLUDE_EXADG_TIME_INTEGRATION_AB_CONSTANTS_H_
23#define INCLUDE_EXADG_TIME_INTEGRATION_AB_CONSTANTS_H_
24
25// C/C++
26#include <vector>
27
28// deal.II
29#include <deal.II/base/conditional_ostream.h>
30
31// ExaDG
32#include <exadg/time_integration/time_integration_constants_base.h>
33
34namespace ExaDG
35{
40{
41public:
42 ABTimeIntegratorConstants(unsigned int const order, bool const start_with_low_order);
43
44 double
45 get_alpha(unsigned int const i) const;
46
47 void
48 print(dealii::ConditionalOStream & pcout) const final;
49
50private:
51 void
52 set_constant_time_step(unsigned int const current_order) final;
53
54 void
55 set_adaptive_time_step(unsigned int const current_order,
56 std::vector<double> const & time_steps) final;
57
58 /*
59 * AB time integrator constants:
60 *
61 * du/dt = (alpha_0 f^{n+1} + alpha_1 f^{n} + alpha_2 f^{n-1} +...)
62 */
63 std::vector<double> alpha;
64};
65
66} // namespace ExaDG
67
68#endif /* INCLUDE_EXADG_TIME_INTEGRATION_AB_CONSTANTS_H_ */
Definition ab_constants.h:40
Definition time_integration_constants_base.h:30
Definition driver.cpp:33