SpECTRE  v2024.06.05
CurvedScalarWave::Worldtube::Initialization::InitializeEvolvedVariables Struct Reference

Initializes the time stepper and evolved variables used by the worldtube system. Also sets Tags::CurrentIteration to 0. More...

#include <InitializeEvolvedVariables.hpp>

Public Types

using variables_tag = ::Tags::Variables< tmpl::list< Tags::EvolvedPosition< Dim >, Tags::EvolvedVelocity< Dim > > >
 
using dt_variables_tag = db::add_tag_prefix<::Tags::dt, variables_tag >
 
using simple_tags = tmpl::list< variables_tag, dt_variables_tag, Tags::CurrentIteration, ::Tags::HistoryEvolvedVariables< variables_tag > >
 
using return_tags = simple_tags
 
using compute_tags = tmpl::list<>
 
using const_global_cache_tags = tmpl::list<>
 
using mutable_global_cache_tags = tmpl::list<>
 
using simple_tags_from_options = tmpl::list< Tags::InitialPositionAndVelocity >
 
using argument_tags = tmpl::list<::Tags::TimeStepper< TimeStepper >, Tags::InitialPositionAndVelocity >
 

Static Public Member Functions

static void apply (const gsl::not_null< Variables< tmpl::list< Tags::EvolvedPosition< Dim >, Tags::EvolvedVelocity< Dim > > > * > evolved_vars, const gsl::not_null< Variables< tmpl::list<::Tags::dt< Tags::EvolvedPosition< Dim > >, ::Tags::dt< Tags::EvolvedVelocity< Dim > > > > * > dt_evolved_vars, const gsl::not_null< size_t * > current_iteration, const gsl::not_null<::Tags::HistoryEvolvedVariables< variables_tag >::type * > time_stepper_history, const TimeStepper &time_stepper, const std::array< tnsr::I< double, Dim >, 2 > &initial_pos_and_vel)
 

Static Public Attributes

static constexpr size_t Dim = 3
 

Detailed Description

Initializes the time stepper and evolved variables used by the worldtube system. Also sets Tags::CurrentIteration to 0.

Details

Sets the initial position and velocity of the particle to the values specified in the input file. The time stepper history is set analogous to the elements which use the same time stepper.


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