SpECTRE
v2024.09.29
|
Class to compute post-Newtonian trajectories. More...
#include <BinaryTrajectories.hpp>
Public Member Functions | |
BinaryTrajectories (double initial_separation, const std::array< double, 3 > ¢er_of_mass_velocity=std::array< double, 3 >{{0.0, 0.0, 0.0}}, bool newtonian=false) | |
BinaryTrajectories (BinaryTrajectories &&)=default | |
BinaryTrajectories & | operator= (BinaryTrajectories &&)=default |
BinaryTrajectories (const BinaryTrajectories &)=default | |
BinaryTrajectories & | operator= (const BinaryTrajectories &)=default |
template<typename DataType > | |
DataType | separation (const DataType &time) const |
Gives separation as function of time. | |
template<typename DataType > | |
DataType | orbital_frequency (const DataType &time) const |
Gives orbital frequency separation . | |
template<typename DataType > | |
DataType | angular_velocity (const DataType &time) const |
Gives the angular velocity of the objects as a function of time. Calculated by | |
template<typename DataType > | |
std::array< tnsr::I< DataType, 3 >, 2 > | positions (const DataType &time) const |
Gives the positions of the two objects as a function of time. | |
template<typename DataType > | |
std::array< tnsr::I< DataType, 3 >, 2 > | positions_no_expansion (const DataType &time) const |
Same as positions , except the separation remains constant (equal to the initial separation). More... | |
Class to compute post-Newtonian trajectories.
Computes the leading post-Newtonian trajectories
In terms of these functions, the positions of objects 1 and 2 are
These trajectories are useful for, e.g., testing a horizon-tracking control system.
newtonian
argument is true, then this will just give Kepler's third law DataType BinaryTrajectories::angular_velocity | ( | const DataType & | time | ) | const |
Gives the angular velocity of the objects as a function of time. Calculated by
orbital_frequency
and angular_velocity
give the same result because the orbital frequency is independent of time. std::array< tnsr::I< DataType, 3 >, 2 > BinaryTrajectories::positions_no_expansion | ( | const DataType & | time | ) | const |
Same as positions
, except the separation remains constant (equal to the initial separation).