SpECTRE
v2023.03.09

Action called after reduction of the center of mass data. mass_a, mass_b, first_moment_a, first_moment_b will contain the reduced data for the integral of the density (and its first moment) in the x>=0 (A label) and x<0 (B label) regions. This action calculates the center of mass in each region, and sends the result to the control system. More...
#include <BNSCenterOfMass.hpp>
Static Public Member Functions  
template<typename ParallelComponent , typename DbTags , typename Metavariables , typename ArrayIndex >  
static void  apply (db::DataBox< DbTags > &, Parallel::GlobalCache< Metavariables > &cache, const ArrayIndex &, const LinkedMessageId< double > &measurement_id, const double &mass_a, const double &mass_b, const std::array< double, 3 > &first_moment_a, const std::array< double, 3 > &first_moment_b) 
Action called after reduction of the center of mass data. mass_a, mass_b, first_moment_a, first_moment_b will contain the reduced data for the integral of the density (and its first moment) in the x>=0 (A label) and x<0 (B label) regions. This action calculates the center of mass in each region, and sends the result to the control system.