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