ExaDG
Loading...
Searching...
No Matches
include
exadg
aero_acoustic
user_interface
field_functions.h
1
/* ______________________________________________________________________
2
*
3
* ExaDG - High-Order Discontinuous Galerkin for the Exa-Scale
4
*
5
* Copyright (C) 2024 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_AERO_ACOUSTIC_USER_INTERFACE_FIELD_FUNCTIONS_H_
23
#define EXADG_AERO_ACOUSTIC_USER_INTERFACE_FIELD_FUNCTIONS_H_
24
25
// ExaDG
26
#include <exadg/utilities/spatial_aware_function.h>
27
28
namespace
ExaDG
29
{
30
namespace
AeroAcoustic
31
{
32
template
<
int
dim>
33
struct
FieldFunctions
34
{
35
/*
36
* The function source_term_blend_in is mainly used to blend in the source
37
* term over time. In some rare cases it might also be beneficial to fade
38
* out the source term in space: If large source term contributions are
39
* placed at the boundary of the CFD domain, there can be problems when
40
* interpolating to the non-matching acoustic domain (that is mostly
41
* much larger than the CFD domain. A typical spatial fade out function
42
* "shrinks" the area of the source terms by a smooth function that is one
43
* in large parts of the domain and reduces to zero at boundaries.
44
*
45
* If the source term is only used to blend in the source term over time
46
* it has to be evaluated only once every time step. Therefore, we are using a
47
* SpatialAwareFunction, which provides information if the function varies in
48
* space for a given time.
49
*/
50
std::shared_ptr<Utilities::SpatialAwareFunction<dim>> source_term_blend_in;
51
52
/*
53
* The actual analytical aero acoustic source term that can be used to compute
54
* acoustic propagation.
55
*/
56
std::shared_ptr<dealii::Function<dim>> analytical_aero_acoustic_source_term;
57
};
58
59
}
// namespace AeroAcoustic
60
}
// namespace ExaDG
61
62
#endif
/* EXADG_AERO_ACOUSTIC_USER_INTERFACE_FIELD_FUNCTIONS_H_ */
ExaDG
Definition
driver.cpp:33
ExaDG::AeroAcoustic::FieldFunctions
Definition
field_functions.h:34
Generated by
1.13.2