ExaDG
Loading...
Searching...
No Matches
kinetic_energy_dissipation_detailed.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_KINETIC_ENERGY_DISSIPATION_DETAILED_H_
23#define INCLUDE_EXADG_INCOMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_KINETIC_ENERGY_DISSIPATION_DETAILED_H_
24
25#include <exadg/incompressible_navier_stokes/spatial_discretization/spatial_operator_base.h>
26#include <exadg/postprocessor/kinetic_energy_calculation.h>
27#include <exadg/postprocessor/time_control.h>
28
29namespace ExaDG
30{
31namespace IncNS
32{
33template<int dim, typename Number>
35{
36 typedef dealii::LinearAlgebra::distributed::Vector<Number> VectorType;
37
39
41
42public:
43 KineticEnergyCalculatorDetailed(MPI_Comm const & comm);
44
45 void
46 setup(NavierStokesOperator const & navier_stokes_operator_in,
47 dealii::MatrixFree<dim, Number> const & matrix_free_in,
48 unsigned int const dof_index_in,
49 unsigned int const quad_index_in,
50 KineticEnergyData const & kinetic_energy_data_in);
51
52 void
53 evaluate(VectorType const & velocity, double const time, bool const unsteady);
54
55private:
56 void
57 calculate_detailed(VectorType const & velocity, double const time);
58
59 dealii::SmartPointer<NavierStokesOperator const> navier_stokes_operator;
60};
61
62} // namespace IncNS
63} // namespace ExaDG
64
65
66#endif /* INCLUDE_EXADG_INCOMPRESSIBLE_NAVIER_STOKES_POSTPROCESSOR_KINETIC_ENERGY_DISSIPATION_DETAILED_H_ \
67 */
Definition kinetic_energy_dissipation_detailed.h:35
Definition spatial_operator_base.h:68
Definition kinetic_energy_calculation.h:81
Definition driver.cpp:33
Definition kinetic_energy_calculation.h:37