ExaDG
Loading...
Searching...
No Matches
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#include <exadg/utilities/spatial_aware_function.h>
26
27namespace ExaDG
28{
29namespace AeroAcoustic
30{
31template<int dim>
33{
34 /*
35 * The function source_term_blend_in is mainly used to blend in the source
36 * term over time. In some rare cases it might also be beneficial to fade
37 * out the source term in space: If large source term contributions are
38 * placed at the boundary of the CFD domain, there can be problems when
39 * interpolating to the non-matching acoustic domain (that is mostly
40 * much larger than the CFD domain. A typical spatial fade out function
41 * "shrinks" the area of the source terms by a smooth function that is one
42 * in large parts of the domain and reduces to zero at boundaries.
43 *
44 * If the source term is only used to blend in the source term over time
45 * it has to be evaluated only once every time step. Therefore, we are using a
46 * SpatialAwareFunction, which provides information if the function varies in
47 * space for a given time.
48 */
49 std::shared_ptr<Utilities::SpatialAwareFunction<dim>> source_term_blend_in;
50};
51
52} // namespace AeroAcoustic
53} // namespace ExaDG
54
55#endif /* EXADG_AERO_ACOUSTIC_USER_INTERFACE_FIELD_FUNCTIONS_H_ */
Definition driver.cpp:33
Definition field_functions.h:33