ExaDG
Loading...
Searching...
No Matches
mean_scalar_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#ifndef INCLUDE_EXADG_POSTPROCESSOR_MEAN_SCALAR_CALCULATION_H
22#define INCLUDE_EXADG_POSTPROCESSOR_MEAN_SCALAR_CALCULATION_H
23
24#include <exadg/matrix_free/integrators.h>
25
26namespace ExaDG
27{
28template<int dim, typename Number>
30{
31public:
32 typedef dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
33
34 typedef FaceIntegrator<dim, 1, Number> FaceIntegratorScalar;
35
36 typedef dealii::VectorizedArray<Number> scalar;
37
38 MeanScalarCalculator(dealii::MatrixFree<dim, Number> const & matrix_free_in,
39 unsigned int dof_index_in,
40 unsigned int quad_index_in,
41 MPI_Comm const & mpi_comm_in);
42
43 Number
44 calculate_mean_scalar(VectorType const & solution,
45 std::map<dealii::types::boundary_id, Number> & mean_scalar);
46
47private:
48 dealii::MatrixFree<dim, Number> const & matrix_free;
49 unsigned int dof_index, quad_index;
50
51 MPI_Comm const mpi_comm;
52};
53
54} // namespace ExaDG
55
56
57
58#endif // INCLUDE_EXADG_POSTPROCESSOR_MEAN_SCALAR_CALCULATION_H
Definition mean_scalar_calculation.h:30
Definition driver.cpp:33