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 constexpr bool is_in_flux_conservative_form = true; 24 0 : static constexpr bool has_primitive_and_conservative_vars = false; 25 0 : static constexpr size_t volume_dim = 1; 26 : 27 0 : using boundary_conditions_base = BoundaryConditions::BoundaryCondition; 28 : 29 0 : using variables_tag = ::Tags::Variables<tmpl::list<Tags::U>>; 30 0 : using flux_variables = tmpl::list<Tags::U>; 31 0 : using gradient_variables = tmpl::list<>; 32 : 33 0 : using compute_volume_time_derivative_terms = TimeDerivativeTerms; 34 : 35 0 : using compute_largest_characteristic_speed = 36 : Tags::ComputeLargestCharacteristicSpeed; 37 : }; 38 : } // namespace Burgers