ExaDG
Toggle main menu visibility
Loading...
Searching...
No Matches
include
exadg
aero_acoustic
driver.h
1
/* ______________________________________________________________________
2
*
3
* ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4
*
5
* Copyright (C) 2023 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_AERO_ACOUSTIC_DRIVER_H_
23
#define EXADG_AERO_ACOUSTIC_DRIVER_H_
24
25
// ExaDG
26
#include <exadg/aero_acoustic/single_field_solvers/acoustics.h>
27
#include <exadg/aero_acoustic/single_field_solvers/fluid.h>
28
#include <exadg/aero_acoustic/user_interface/application_base.h>
29
#include <exadg/aero_acoustic/volume_coupling.h>
30
#include <exadg/utilities/timer_tree.h>
31
32
namespace
ExaDG
33
{
34
namespace
AeroAcoustic
35
{
36
template
<
int
dim,
typename
Number>
37
class
Driver
38
{
39
using
VectorType = dealii::LinearAlgebra::distributed::Vector<Number>;
40
41
public
:
42
Driver(MPI_Comm
const
& comm,
43
std::shared_ptr<
ApplicationBase<dim, Number>
> application,
44
bool
const
is_test);
45
46
void
47
setup();
48
49
void
50
solve();
51
52
void
53
print_performance_results(
double
const
total_time)
const
;
54
55
private
:
56
void
57
setup_volume_coupling();
58
59
void
60
set_start_time()
const
;
61
62
void
63
couple_fluid_to_acoustic();
64
65
MPI_Comm
const
mpi_comm;
66
67
dealii::ConditionalOStream pcout;
68
69
bool
const
is_test;
70
71
std::shared_ptr<ApplicationBase<dim, Number>> application;
72
73
// single field solvers
74
std::shared_ptr<SolverAcoustic<dim, Number>> acoustic;
75
std::shared_ptr<SolverFluid<dim, Number>> fluid;
76
77
// class that manages volume coupling
78
VolumeCoupling<dim, Number>
volume_coupling;
79
80
// computation time
81
mutable
TimerTree
timer_tree;
82
83
// wall time fluid and acoustic solvers ran together
84
double
time_solvers_side_by_side;
85
};
86
87
}
// namespace AeroAcoustic
88
}
// namespace ExaDG
89
90
#endif
/* EXADG_AERO_ACOUSTIC_DRIVER_H_ */
ExaDG::AeroAcoustic::ApplicationBase
Definition
application_base.h:307
ExaDG::AeroAcoustic::VolumeCoupling
Definition
volume_coupling.h:40
ExaDG::TimerTree
Definition
timer_tree.h:36
ExaDG
Definition
driver.cpp:33
Generated by
1.17.0