10#include <compile_time_options.h>
21#include <deal.II/base/mg_level_object.h>
22#include <deal.II/base/parameter_acceptor.h>
23#include <deal.II/base/smartpointer.h>
24#include <deal.II/base/timer.h>
25#include <deal.II/lac/la_parallel_block_vector.h>
26#include <deal.II/lac/precondition.h>
27#include <deal.II/lac/sparse_matrix.templates.h>
28#include <deal.II/lac/vector.h>
29#include <deal.II/matrix_free/matrix_free.h>
30#include <deal.II/multigrid/mg_base.h>
31#include <deal.II/multigrid/mg_smoother.h>
32#include <deal.II/multigrid/mg_transfer_matrix_free.h>
36 namespace NavierStokes
38 template <
int,
typename>
113 template <
typename Description,
int dim,
typename Number =
double>
152 std::map<std::string, dealii::Timer> &computing_timer,
157 const std::string &subsection =
"ParabolicSolver");
182 const bool reinitialize_gmg)
const;
208 bool use_gmg_velocity_;
211 bool use_gmg_internal_energy_;
215 bool tolerance_linfty_norm_;
217 unsigned int gmg_max_iter_vel_;
218 unsigned int gmg_max_iter_en_;
219 double gmg_smoother_range_vel_;
220 double gmg_smoother_range_en_;
221 double gmg_smoother_max_eig_vel_;
222 double gmg_smoother_max_eig_en_;
223 unsigned int gmg_smoother_degree_;
224 unsigned int gmg_smoother_n_cg_iter_;
225 unsigned int gmg_min_level_;
234 static constexpr unsigned int order_fe = 1;
235 static constexpr unsigned int order_quad = 2;
238 std::map<std::string, dealii::Timer> &computing_timer_;
240 dealii::SmartPointer<const HyperbolicSystem> hyperbolic_system_;
241 dealii::SmartPointer<const ParabolicSystem> parabolic_system_;
242 dealii::SmartPointer<const ryujin::OfflineData<dim, Number>>
244 dealii::SmartPointer<
248 mutable unsigned int n_restarts_;
249 mutable unsigned int n_warnings_;
250 mutable double n_iterations_velocity_;
251 mutable double n_iterations_internal_energy_;
253 mutable dealii::MatrixFree<dim, Number> matrix_free_;
261 mutable dealii::MGLevelObject<dealii::MatrixFree<dim, float>>
263 mutable dealii::MGConstrainedDoFs mg_constrained_dofs_;
264 mutable dealii::MGLevelObject<
265 dealii::LinearAlgebra::distributed::Vector<float>>
268 mutable dealii::MGLevelObject<VelocityMatrix<dim, float, Number>>
269 level_velocity_matrices_;
271 mutable dealii::MGLevelObject<EnergyMatrix<dim, float, Number>>
272 level_energy_matrices_;
274 mutable dealii::mg::SmootherRelaxation<
275 dealii::PreconditionChebyshev<
277 dealii::LinearAlgebra::distributed::BlockVector<float>,
279 dealii::LinearAlgebra::distributed::BlockVector<float>>
280 mg_smoother_velocity_;
282 mutable dealii::mg::SmootherRelaxation<
283 dealii::PreconditionChebyshev<
285 dealii::LinearAlgebra::distributed::Vector<float>>,
286 dealii::LinearAlgebra::distributed::Vector<float>>
void backward_euler_step(const StateVector &old_state_vector, const Number old_t, StateVector &new_state_vector, Number tau, const IDViolationStrategy id_violation_strategy, const bool reinitialize_gmg) const
static constexpr auto problem_dimension
typename Description::ParabolicSystem ParabolicSystem
typename View::ScalarNumber ScalarNumber
typename View::StateVector StateVector
typename Description::template HyperbolicSystemView< dim, Number > View
void print_solver_statistics(std::ostream &output) const
typename Description::HyperbolicSystem HyperbolicSystem
Vectors::ScalarVector< Number > ScalarVector
Vectors::BlockVector< Number > BlockVector
ParabolicSolver(const MPIEnsemble &mpi_ensemble, std::map< std::string, dealii::Timer > &computing_timer, const HyperbolicSystem &hyperbolic_system, const ParabolicSystem ¶bolic_system, const OfflineData< dim, Number > &offline_data, const InitialValues< Description, dim, Number > &initial_values, const std::string &subsection="ParabolicSolver")
typename View::state_type state_type
#define ACCESSOR_READ_ONLY(member)
dealii::LinearAlgebra::distributed::Vector< Number > ScalarVector
dealii::LinearAlgebra::distributed::BlockVector< Number > BlockVector
std::tuple< MultiComponentVector< Number, problem_dim >, MultiComponentVector< Number, prec_dim >, BlockVector< Number > > StateVector
Euler::HyperbolicSystem HyperbolicSystem
NavierStokes::ParabolicSystem ParabolicSystem