ExaDG
Loading...
Searching...
No Matches
line_plot_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 INCLUDE_EXADG_INCOMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_LINE_PLOT_CALCULATION_H_
23#define INCLUDE_EXADG_INCOMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_LINE_PLOT_CALCULATION_H_
24
25// deal.II
26#include <deal.II/dofs/dof_handler.h>
27#include <deal.II/lac/la_parallel_vector.h>
28
29// ExaDG
30#include <exadg/incompressible_navier_stokes/postprocessor/line_plot_data.h>
31
32namespace ExaDG
33{
34namespace IncNS
35{
36/*
37 * Evaluate quantities along lines.
38 *
39 * Assumptions/Restrictions:
40 *
41 * - straight lines, points are distributed equidistantly along the line
42 *
43 * - no statistical averaging, instantaneous quantities are calculated
44 */
45template<int dim, typename Number>
47{
48public:
49 typedef dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
50
51 LinePlotCalculator(MPI_Comm const & comm);
52
53 void
54 setup(dealii::DoFHandler<dim> const & dof_handler_velocity_in,
55 dealii::DoFHandler<dim> const & dof_handler_pressure_in,
56 dealii::Mapping<dim> const & mapping_in,
57 LinePlotData<dim> const & line_plot_data_in);
58
59 void
60 evaluate(VectorType const & velocity, VectorType const & pressure) const;
61
62 TimeControl time_control;
63
64private:
65 MPI_Comm const mpi_comm;
66
67 mutable bool clear_files;
68
69 dealii::SmartPointer<dealii::DoFHandler<dim> const> dof_handler_velocity;
70 dealii::SmartPointer<dealii::DoFHandler<dim> const> dof_handler_pressure;
71 dealii::SmartPointer<dealii::Mapping<dim> const> mapping;
72
74};
75
76} // namespace IncNS
77} // namespace ExaDG
78
79#endif /* INCLUDE_EXADG_INCOMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_LINE_PLOT_CALCULATION_H_ */
Definition line_plot_calculation.h:47
Definition time_control.h:64
Definition driver.cpp:33
Definition line_plot_data.h:210