SpECTRE  v2024.05.11
control_system::measurements::PostReductionSendBNSStarCentersToControlSystem< ControlSystems > Struct Template Reference

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)

Detailed Description

template<typename ControlSystems>
struct control_system::measurements::PostReductionSendBNSStarCentersToControlSystem< ControlSystems >

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

  • Time
  • Center_A_x
  • Center_A_y
  • Center_A_z
  • Center_B_x
  • Center_B_y
  • Center_B_z

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