ExaDG
Toggle main menu visibility
Loading...
Searching...
No Matches
include
exadg
postprocessor
normal_flux_calculation.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_POSTPROCESSOR_NORMAL_FLUX_CALCULATION_H_
23
#define EXADG_POSTPROCESSOR_NORMAL_FLUX_CALCULATION_H_
24
25
// ExaDG
26
#include <exadg/matrix_free/integrators.h>
27
28
namespace
ExaDG
29
{
30
struct
NormalFluxCalculatorData
31
{
32
NormalFluxCalculatorData() : evaluate(
false
)
33
{
34
}
35
36
bool
evaluate;
37
std::set<dealii::types::boundary_id> boundary_ids;
38
39
// specify where to write output files
40
std::string directory;
41
std::string filename;
42
};
43
44
template
<
int
dim,
typename
Number>
45
class
NormalFluxCalculator
46
{
47
public
:
48
typedef
dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
49
50
typedef
FaceIntegrator<dim, 1, Number> FaceIntegratorScalar;
51
52
typedef
dealii::VectorizedArray<Number> scalar;
53
54
NormalFluxCalculator(dealii::MatrixFree<dim, Number>
const
& matrix_free_in,
55
unsigned
int
dof_index_in,
56
unsigned
int
quad_index_in,
57
NormalFluxCalculatorData
const
& data,
58
MPI_Comm
const
& mpi_comm_in);
59
60
void
61
evaluate(VectorType
const
& solution,
double
const
time,
bool
const
unsteady);
62
63
private
:
64
dealii::MatrixFree<dim, Number>
const
& matrix_free;
65
unsigned
int
dof_index, quad_index;
66
67
NormalFluxCalculatorData
data;
68
69
bool
clear_files;
70
71
std::map<dealii::types::boundary_id, double> flux;
72
73
MPI_Comm
const
mpi_comm;
74
};
75
76
}
// namespace ExaDG
77
78
#endif
/* EXADG_POSTPROCESSOR_NORMAL_FLUX_CALCULATION_H_ */
ExaDG
Definition
driver.cpp:33
ExaDG::NormalFluxCalculatorData
Definition
normal_flux_calculation.h:31
Generated by
1.17.0