SpECTRE Documentation Coverage Report
 Current view: top level - Evolution/Systems/Ccz4 - RicciScalarPlusDivergenceZ4Constraint.hpp Hit Total Coverage Commit: 2ae2b99409ac582030d56a4560a92a3e066a7e54 Lines: 2 3 66.7 % Date: 2022-01-15 08:40:38 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 7 : 8 : #include "DataStructures/Tensor/TypeAliases.hpp" 9 : #include "Utilities/Gsl.hpp" 10 : 11 : namespace Ccz4 { 12 : /// @{ 13 : /*! 14 : * \brief Computes the sum of the Ricci scalar and twice the divergence of the 15 : * upper spatial Z4 constraint 16 : * 17 : * \details Computes the expression as: 18 : * 19 : * \f{align} 20 : * R + 2 \nabla_k Z^k &= 21 : * \phi^2 \tilde{\gamma}^{ij} (R_{ij} + \nabla_i Z_j + \nabla_j Z_i) 22 : * \f} 23 : * 24 : * where \f$R\f$ is the spatial Ricci scalar, \f$Z^i\f$ is the upper spatial Z4 25 : * constraint defined by Ccz4::Tags::Z4ConstraintUp, \f$phi^2\f$ is the square 26 : * of the conformal factor defined by Ccz4::Tags::ConformalFactorSquared, 27 : * \f$\tilde{\gamma}^{ij}\f$ is the inverse conformal spatial metric defined by 28 : * Ccz4::Tags::InverseConformalMetric, \f$R_{ij}\f$ is the spatial Ricci 29 : * tensor defined by Ccz4::Tags::Ricci, and \f$\nabla_j Z_i\f$ is the gradient 30 : * of the spatial Z4 constraint defined by Ccz4::Tags::GradZ4Constraint. 31 : */ 32 : template 33 1 : void ricci_scalar_plus_divergence_z4_constraint( 34 : const gsl::not_null*> result, 35 : const Scalar& conformal_factor_squared, 36 : const tnsr::II& inverse_conformal_spatial_metric, 37 : const tnsr::ii& spatial_ricci_tensor, 38 : const tnsr::ij& grad_spatial_z4_constraint); 39 : 40 : template 41 1 : Scalar ricci_scalar_plus_divergence_z4_constraint( 42 : const Scalar& conformal_factor_squared, 43 : const tnsr::II& inverse_conformal_spatial_metric, 44 : const tnsr::ii& spatial_ricci_tensor, 45 : const tnsr::ij& grad_spatial_z4_constraint); 46 : /// @} 47 : } // namespace Ccz4 

 Generated by: LCOV version 1.14