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

Generated by: LCOV version 1.14