SpECTRE
v2024.09.16
|
Simple action called after reduction of the center of mass data. 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) |
Simple action called after reduction of the center of mass data.
mass_a
, mass_b
, first_moment_a
, and 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.
If the control_system::Tags::WriteDataToDisk
tag is true, then this will also write the centers of mass to the /ControlSystems/BnsCenters
subfile of the reductions h5 file. The columns of the file are