|
SpECTRE
v2025.08.19
|
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 | const_global_cache_tags = tmpl::list< gh::gauges::Tags::GaugeCondition > |
| using | mutable_global_cache_tags = tmpl::list< gh::Tags::SetPiAndPhiFromConstraints > |
Static Public Member Functions | |
| template<typename DbTags , typename... InboxTags, typename Metavariables , typename ArrayIndex , typename ActionList , typename ParallelComponent > | |
| static Parallel::iterable_action_return_t | apply (db::DataBox< DbTags > &box, tuples::TaggedTuple< InboxTags... > &, const Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, ActionList, const ParallelComponent *const) |
| static void | impl (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, bool set_pi_and_phi_from_constraints) |
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.