![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambackends/math.hpp"#include "shammath/matrix.hpp"#include "shamunits/Constants.hpp"#include "shamunits/UnitSystem.hpp"
Include dependency graph for orbits.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| auto | shamphys::get_binary_pair (double m1, double m2, double a, double e, double nu, double G) |
| Convert a binary system from Keplerian to Cartesian coordinates. | |
| auto | shamphys::get_binary_pair (double m1, double m2, double a, double e, double nu, const shamunits::UnitSystem< double > usys=shamunits::UnitSystem< double >{}) |
| Shortcut for get_binary_pair with G from UnitSystem. | |
| auto | shamphys::get_binary_rotated (double m1, double m2, double a, double e, double nu, double G, double roll, double pitch, double yaw) |
| Rotate a binary orbit by Euler angles and return the positions and velocities of the two objects. | |
| auto | shamphys::get_binary_rotated (double m1, double m2, double a, double e, double nu, const shamunits::UnitSystem< double > usys, double roll, double pitch, double yaw) |
| Shortcut for get_binary_rotated with G from UnitSystem. | |
Definition in file orbits.hpp.
| auto shamphys::get_binary_pair | ( | double | m1, |
| double | m2, | ||
| double | a, | ||
| double | e, | ||
| double | nu, | ||
| const shamunits::UnitSystem< double > | usys = shamunits::UnitSystem<double>{} |
||
| ) |
Shortcut for get_binary_pair with G from UnitSystem.
Definition at line 67 of file orbits.hpp.
Here is the call graph for this function:
|
inline |
Convert a binary system from Keplerian to Cartesian coordinates.
This function calculates the positions and velocities of two objects in a binary system using their masses, semi-major axis, eccentricity, and true anomaly.
| m1 | Mass of the first object. |
| m2 | Mass of the second object. |
| a | Semi-major axis of the system. |
| e | Eccentricity of the system. |
| nu | True anomaly of the system (in radians). |
| G | Gravitational constant. |
Definition at line 40 of file orbits.hpp.
Here is the call graph for this function:| auto shamphys::get_binary_rotated | ( | double | m1, |
| double | m2, | ||
| double | a, | ||
| double | e, | ||
| double | nu, | ||
| const shamunits::UnitSystem< double > | usys, | ||
| double | roll, | ||
| double | pitch, | ||
| double | yaw | ||
| ) |
Shortcut for get_binary_rotated with G from UnitSystem.
Definition at line 174 of file orbits.hpp.
Here is the call graph for this function:| auto shamphys::get_binary_rotated | ( | double | m1, |
| double | m2, | ||
| double | a, | ||
| double | e, | ||
| double | nu, | ||
| double | G, | ||
| double | roll, | ||
| double | pitch, | ||
| double | yaw | ||
| ) |
Rotate a binary orbit by Euler angles and return the positions and velocities of the two objects.
| m1 | Mass of the first object. |
| m2 | Mass of the second object. |
| a | Semi-major axis of the system. |
| e | Eccentricity of the system. |
| nu | True anomaly of the system (in radians). |
| G | Gravitational constant. |
| roll | Rotation about the X-axis (in radians). |
| pitch | Rotation about the Y-axis (in radians). |
| yaw | Rotation about the Z-axis (in radians). |
Definition at line 152 of file orbits.hpp.
Here is the call graph for this function: