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) 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 INCLUDE_EXADG_COMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_POINTWISE_OUTPUT_GENERATOR_H_
23#define INCLUDE_EXADG_COMPRESSIBLE_NAVIER_STOKES_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 CompNS
32{
33template<int dim>
35{
37
38 void
39 print(dealii::ConditionalOStream & pcout) const;
40
41 bool write_rho;
42 bool write_rho_u;
43 bool write_rho_E;
44};
45
46template<int dim, typename Number>
48{
49public:
50 using VectorType = dealii::LinearAlgebra::distributed::Vector<Number>;
51
52 PointwiseOutputGenerator(MPI_Comm const & comm);
53
54 void
55 setup(dealii::DoFHandler<dim> const & dof_handler_in,
56 dealii::Mapping<dim> const & mapping_in,
57 PointwiseOutputData<dim> const & pointwise_output_data_in);
58
59 void
60 evaluate(VectorType const & solution, double const time, bool const unsteady);
61
62private:
63 dealii::SmartPointer<dealii::DoFHandler<dim> const> dof_handler;
64 PointwiseOutputData<dim> pointwise_output_data;
65};
66
67} // namespace CompNS
68} // namespace ExaDG
69
70
71#endif /* INCLUDE_EXADG_COMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_POINTWISE_OUTPUT_GENERATOR_H_ \
72 */
Definition pointwise_output_generator.h:48
Definition pointwise_output_generator_base.h:70
Definition driver.cpp:33
Definition pointwise_output_generator.h:35
Definition pointwise_output_generator_base.h:50