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