SpECTRE  v2024.04.12
gh::gauges::SetPiAndPhiFromConstraints< Dim > Struct Template Reference

Set \(\Pi_{ab}\) from the gauge source function (or 1-index constraint) and \(\Phi_{iab}\) from the 3-index constraint. More...

#include <SetPiAndPhiFromConstraints.hpp>

Public Types

using return_tags = tmpl::list< gh::Tags::Pi< DataVector, Dim >, gh::Tags::Phi< DataVector, Dim > >
 
using argument_tags = tmpl::list<::Tags::Time, domain::Tags::Mesh< Dim >, domain::Tags::ElementMap< Dim, Frame::Grid >, domain::CoordinateMaps::Tags::CoordinateMap< Dim, Frame::Grid, Frame::Inertial >, domain::Tags::FunctionsOfTime, domain::Tags::Coordinates< Dim, Frame::ElementLogical >, gr::Tags::SpacetimeMetric< DataVector, Dim >, gh::gauges::Tags::GaugeCondition >
 
using const_global_cache_tags = tmpl::list< gh::gauges::Tags::GaugeCondition >
 

Static Public Member Functions

static void apply (gsl::not_null< tnsr::aa< DataVector, Dim, Frame::Inertial > * > pi, gsl::not_null< tnsr::iaa< DataVector, Dim, Frame::Inertial > * > phi, double time, const Mesh< Dim > &mesh, const ElementMap< Dim, Frame::Grid > &logical_to_grid_map, const domain::CoordinateMapBase< Frame::Grid, Frame::Inertial, Dim > &grid_to_inertial_map, const std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > > &functions_of_time, const tnsr::I< DataVector, Dim, Frame::ElementLogical > &logical_coordinates, const tnsr::aa< DataVector, Dim, Frame::Inertial > &spacetime_metric, const gauges::GaugeCondition &gauge_condition)
 

Detailed Description

template<size_t Dim>
struct gh::gauges::SetPiAndPhiFromConstraints< Dim >

Set \(\Pi_{ab}\) from the gauge source function (or 1-index constraint) and \(\Phi_{iab}\) from the 3-index constraint.

This is necessary to ensure the initial data is in the desired evolution gauge and that the 1- and 3-index constraints are satisfied.


The documentation for this struct was generated from the following file: