ExaDG
Loading...
Searching...
No Matches
lambda_functions_ale.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 INCLUDE_EXADG_TIME_INTEGRATION_LAMBDA_FUNCTIONS_ALE_H_
23#define INCLUDE_EXADG_TIME_INTEGRATION_LAMBDA_FUNCTIONS_ALE_H_
24
25// deal.II
26#include <deal.II/base/exceptions.h>
27#include <deal.II/dofs/dof_handler.h>
28#include <deal.II/lac/la_parallel_vector.h>
29
30namespace ExaDG
31{
38template<int dim, typename Number>
40{
41public:
50 std::function<void(double const & time)> move_grid = [](double const & time) {
51 (void)time;
52 AssertThrow(false, dealii::ExcMessage("The function move_grid() has not been implemented."));
53 };
54
62 std::function<void()> update_pde_operator_after_grid_motion = []() {
63 AssertThrow(
64 false,
65 dealii::ExcMessage(
66 "The function update_pde_operator_after_grid_motion() has not been implemented."));
67 };
68
76 std::function<void(dealii::LinearAlgebra::distributed::Vector<Number> & grid_coordinates,
77 dealii::DoFHandler<dim> const & dof_handler)>
79 [](dealii::LinearAlgebra::distributed::Vector<Number> & grid_coordinates,
80 dealii::DoFHandler<dim> const & dof_handler) {
81 (void)grid_coordinates;
82 (void)dof_handler;
83
84 AssertThrow(false,
85 dealii::ExcMessage(
86 "The function fill_grid_coordinates_vector() has not been implemented."));
87 };
88};
89} // namespace ExaDG
90
91
92#endif /* INCLUDE_EXADG_TIME_INTEGRATION_LAMBDA_FUNCTIONS_ALE_H_ */
Definition lambda_functions_ale.h:40
std::function< void(double const &time) move_grid)
Definition lambda_functions_ale.h:50
std::function< void(dealii::LinearAlgebra::distributed::Vector< Number > &grid_coordinates, dealii::DoFHandler< dim > const &dof_handler) fill_grid_coordinates_vector)
Definition lambda_functions_ale.h:78
std::function< void()> update_pde_operator_after_grid_motion
Definition lambda_functions_ale.h:62
Definition driver.cpp:33