SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/SecondOrderScalarWave - System.hpp Hit Total Coverage
Commit: 107e15b340886ae54549b1baa4bfc92e676f667e Lines: 0 13 0.0 %
Date: 2026-09-17 16:38:56
Legend: Lines: hit not hit

          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             : #include <string>
       8             : 
       9             : #include "DataStructures/VariablesTag.hpp"
      10             : #include "Evolution/Systems/SecondOrderScalarWave/BoundaryConditions/BoundaryCondition.hpp"
      11             : #include "Evolution/Systems/SecondOrderScalarWave/Characteristics.hpp"
      12             : #include "Evolution/Systems/SecondOrderScalarWave/Tags.hpp"
      13             : #include "Evolution/Systems/SecondOrderScalarWave/TimeDerivative.hpp"
      14             : #include "Utilities/TMPL.hpp"
      15             : 
      16             : /*!
      17             :  * \ingroup EvolutionSystemsGroup
      18             :  * \brief Items related to evolving the second-order scalar wave equations.
      19             :  *
      20             :  * \f{align*}
      21             :  * \partial_t \Psi &= -\Pi \\
      22             :  * \partial_t \Pi &= -\delta^{ij}\partial_i \partial_j \Psi
      23             :  * \f}
      24             :  */
      25             : namespace SecondOrderScalarWave {
      26             : 
      27             : template <size_t Dim>
      28           0 : struct System {
      29           0 :   static std::string name() { return "SecondOrderScalarWave"; }
      30             : 
      31           0 :   using boundary_conditions_base = BoundaryConditions::BoundaryCondition<Dim>;
      32             : 
      33           0 :   static constexpr bool is_in_flux_conservative_form = false;
      34           0 :   static constexpr bool has_primitive_and_conservative_vars = false;
      35           0 :   static constexpr size_t volume_dim = Dim;
      36             : 
      37           0 :   using variables_tag = ::Tags::Variables<tmpl::list<Tags::Psi, Tags::Pi>>;
      38           0 :   using flux_variables = tmpl::list<>;
      39           0 :   using auxiliary_variables = tmpl::list<Tags::Phi<Dim>>;
      40             :   // The time derivative reads only the derivative of Phi, but the evolved
      41             :   // variables must also be listed: `volume_terms` unconditionally instantiates
      42             :   // reads of every evolved variable's derivative for the moving-mesh term, so
      43             :   // a nonconservative system's `gradient_variables` must contain its evolved
      44             :   // variables.
      45           0 :   using gradient_variables = tmpl::list<Tags::Psi, Tags::Pi, Tags::Phi<Dim>>;
      46             : 
      47           0 :   using compute_volume_time_derivative_terms = TimeDerivative<Dim>;
      48             : 
      49           0 :   using compute_largest_characteristic_speed =
      50             :       Tags::ComputeLargestCharacteristicSpeed;
      51             : };
      52             : }  // namespace SecondOrderScalarWave

Generated by: LCOV version 1.14