ExaDG
Loading...
Searching...
No Matches
interface.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_COMPRESSIBLE_NAVIER_STOKES_SPATIAL_DISCRETIZATION_INTERFACE_H_
23#define INCLUDE_EXADG_COMPRESSIBLE_NAVIER_STOKES_SPATIAL_DISCRETIZATION_INTERFACE_H_
24
25#include <deal.II/lac/la_parallel_vector.h>
26
27namespace ExaDG
28{
29namespace CompNS
30{
31namespace Interface
32{
33template<typename Number>
35{
36public:
37 typedef dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
38
39 Operator()
40 {
41 }
42
43 virtual ~Operator()
44 {
45 }
46
47 // time integration: initialize dof vectors
48 virtual void
49 initialize_dof_vector(VectorType & src) const = 0;
50
51 // time integration: prescribe initial conditions
52 virtual void
53 prescribe_initial_conditions(VectorType & src, double const evaluation_time) const = 0;
54
55 // time step calculation: CFL condition
56 virtual double
57 calculate_time_step_cfl_global() const = 0;
58
59 // Calculate time step size according to diffusion term
60 virtual double
61 calculate_time_step_diffusion() const = 0;
62
63 // explicit time integration: evaluate operator
64 virtual void
65 evaluate(VectorType & dst, VectorType const & src, Number const evaluation_time) const = 0;
66
67 // analysis of computational costs
68 virtual double
69 get_wall_time_operator_evaluation() const = 0;
70};
71
72} // namespace Interface
73} // namespace CompNS
74} // namespace ExaDG
75
76#endif /* INCLUDE_EXADG_COMPRESSIBLE_NAVIER_STOKES_SPATIAL_DISCRETIZATION_INTERFACE_H_ */
Definition interface.h:35
Definition driver.cpp:33