ExaDG
Loading...
Searching...
No Matches
linear_interpolation.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// deal.II
23#include <deal.II/base/exceptions.h>
24#include <deal.II/base/point.h>
25#include <deal.II/base/tensor.h>
26
27#include <vector>
28
29namespace ExaDG
30{
31template<int dim, typename Number>
32Number
33linear_interpolation_1d(double const & y,
34 std::vector<Number> const & y_values,
35 std::vector<dealii::Tensor<1, dim, Number>> const & solution_values,
36 unsigned int const & component);
37
38/*
39 * 2D interpolation for rectangular cross-sections
40 */
41template<int dim, typename Number>
42Number
43linear_interpolation_2d_cartesian(
44 dealii::Point<dim> const & point,
45 std::vector<Number> const & y_values,
46 std::vector<Number> const & z_values,
47 std::vector<dealii::Tensor<1, dim, Number>> const & solution_values,
48 unsigned int const & component);
49
50/*
51 * 2D interpolation for cylindrical cross-sections
52 */
53template<int dim, typename Number>
54Number
55linear_interpolation_2d_cylindrical(
56 Number const r_in,
57 Number const phi,
58 std::vector<Number> const & r_values,
59 std::vector<Number> const & phi_values,
60 std::vector<dealii::Tensor<1, dim, Number>> const & solution_values,
61 unsigned int const & component);
62
63} // namespace ExaDG
Definition driver.cpp:33