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/VariablesTag.hpp"
9 : #include "Evolution/Systems/Burgers/BoundaryConditions/BoundaryCondition.hpp"
10 : #include "Evolution/Systems/Burgers/Characteristics.hpp"
11 : #include "Evolution/Systems/Burgers/Tags.hpp"
12 : #include "Evolution/Systems/Burgers/TimeDerivativeTerms.hpp"
13 : #include "Utilities/TMPL.hpp"
14 :
15 : /// \ingroup EvolutionSystemsGroup
16 : /// \brief Items related to evolving the %Burgers equation
17 : /// \f$0 = \partial_t U + \partial_x\left(U^2/2\right)\f$.
18 : ///
19 : /// \note For this definition (i.e., with the factor of one half in the flux)
20 : /// of the Burgers system, the local characteristic speed is \f$U\f$.
21 : namespace Burgers {
22 0 : struct System {
23 0 : static std::string name() { return "Burgers"; }
24 :
25 0 : static constexpr bool is_in_flux_conservative_form = true;
26 0 : static constexpr bool has_primitive_and_conservative_vars = false;
27 0 : static constexpr size_t volume_dim = 1;
28 :
29 0 : using boundary_conditions_base = BoundaryConditions::BoundaryCondition;
30 :
31 0 : using variables_tag = ::Tags::Variables<tmpl::list<Tags::U>>;
32 0 : using flux_variables = tmpl::list<Tags::U>;
33 0 : using gradient_variables = tmpl::list<>;
34 :
35 0 : using compute_volume_time_derivative_terms = TimeDerivativeTerms;
36 :
37 0 : using compute_largest_characteristic_speed =
38 : Tags::ComputeLargestCharacteristicSpeed;
39 : };
40 : } // namespace Burgers
|