ExaDG
Loading...
Searching...
No Matches
pointwise_output_generator.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_ACOUSTIC_CONSERVATION_EQUATIONS_POSTPROCESSOR_POINTWISE_OUTPUT_GENERATOR_H_
23#define EXADG_ACOUSTIC_CONSERVATION_EQUATIONS_POSTPROCESSOR_POINTWISE_OUTPUT_GENERATOR_H_
24
25#include <deal.II/lac/la_parallel_vector.h>
26
27#include <exadg/postprocessor/pointwise_output_generator_base.h>
28
29namespace ExaDG
30{
31namespace Acoustics
32{
33template<int dim>
35{
37
38 void
39 print(dealii::ConditionalOStream & pcout) const;
40
41 bool write_pressure;
42 bool write_velocity;
43};
44
45template<int dim, typename Number>
47{
48public:
49 using VectorType = dealii::LinearAlgebra::distributed::Vector<Number>;
50
51 PointwiseOutputGenerator(MPI_Comm const & comm);
52
53 void
54 setup(dealii::DoFHandler<dim> const & dof_handler_pressure_in,
55 dealii::DoFHandler<dim> const & dof_handler_velocity_in,
56 dealii::Mapping<dim> const & mapping_in,
57 PointwiseOutputData<dim> const & pointwise_output_data_in);
58
59 void
60 evaluate(VectorType const & pressure,
61 VectorType const & velocity,
62 double const time,
63 bool const unsteady);
64
65private:
66 dealii::SmartPointer<dealii::DoFHandler<dim> const> dof_handler_pressure;
67 dealii::SmartPointer<dealii::DoFHandler<dim> const> dof_handler_velocity;
68
69 PointwiseOutputData<dim> pointwise_output_data;
70};
71
72} // namespace Acoustics
73} // namespace ExaDG
74
75
76#endif /* EXADG_ACOUSTIC_CONSERVATION_EQUATIONS_POSTPROCESSOR_POINTWISE_OUTPUT_GENERATOR_H_ \
77 */
Definition pointwise_output_generator.h:47
Definition pointwise_output_generator_base.h:70
Definition driver.cpp:33
Definition pointwise_output_generator.h:35
Definition pointwise_output_generator_base.h:50