Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <cstddef>
7 :
8 : #include "DataStructures/Tensor/EagerMath/Magnitude.hpp"
9 : #include "DataStructures/VariablesTag.hpp"
10 : #include "Evolution/Systems/CurvedScalarWave/BoundaryConditions/BoundaryCondition.hpp"
11 : #include "Evolution/Systems/CurvedScalarWave/Characteristics.hpp"
12 : #include "Evolution/Systems/CurvedScalarWave/Tags.hpp"
13 : #include "Evolution/Systems/CurvedScalarWave/TimeDerivative.hpp"
14 : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
15 : #include "Utilities/TMPL.hpp"
16 :
17 : /*!
18 : * \ingroup EvolutionSystemsGroup
19 : * \brief Items related to evolving a scalar wave on a curved background
20 : */
21 : namespace CurvedScalarWave {
22 :
23 : template <size_t Dim>
24 0 : struct System {
25 0 : static std::string name() { return "CurvedScalarWave"; }
26 :
27 0 : static constexpr bool is_in_flux_conservative_form = false;
28 0 : static constexpr bool has_primitive_and_conservative_vars = false;
29 0 : static constexpr size_t volume_dim = Dim;
30 0 : static constexpr bool is_euclidean = false;
31 :
32 0 : using boundary_conditions_base = BoundaryConditions::BoundaryCondition<Dim>;
33 :
34 0 : using variables_tag =
35 : ::Tags::Variables<tmpl::list<Tags::Psi, Tags::Pi, Tags::Phi<Dim>>>;
36 0 : using flux_variables = tmpl::list<>;
37 0 : using gradient_variables = tmpl::list<Tags::Psi, Tags::Pi, Tags::Phi<Dim>>;
38 :
39 : // Relic alias: needs to be removed once all evolution systems
40 : // convert to using dg::ComputeTimeDerivative
41 0 : using gradients_tags = gradient_variables;
42 :
43 0 : using spacetime_tag_list = tmpl::list<
44 : gr::Tags::Lapse<DataVector>,
45 : ::Tags::deriv<gr::Tags::Lapse<DataVector>, tmpl::size_t<Dim>,
46 : Frame::Inertial>,
47 : gr::Tags::Shift<DataVector, volume_dim>,
48 : ::Tags::deriv<gr::Tags::Shift<DataVector, Dim>, tmpl::size_t<Dim>,
49 : Frame::Inertial>,
50 : gr::Tags::SpatialMetric<DataVector, volume_dim>,
51 : gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
52 : gr::Tags::TraceSpatialChristoffelSecondKind<DataVector, volume_dim>,
53 : gr::Tags::TraceExtrinsicCurvature<DataVector>>;
54 :
55 0 : using compute_volume_time_derivative_terms = TimeDerivative<Dim>;
56 :
57 0 : using compute_largest_characteristic_speed =
58 : Tags::ComputeLargestCharacteristicSpeed<Dim>;
59 :
60 0 : using inverse_spatial_metric_tag =
61 : gr::Tags::InverseSpatialMetric<DataVector, Dim>;
62 : };
63 : } // namespace CurvedScalarWave
|