136 TVector3 x2, TVector3 v2, Double_t
m2, Bool_t
fixed2,
156 TVector3 x2, TVector3 v2, Double_t
m2, Bool_t
fixed2,
231 TString
Print(Bool_t mute=kFALSE)
const;
287 static Double_t
Angle(
const TVector3 & a,
const TVector3 & b);
Analytic two-body 1/r asymptote calculator.
TVector3 v2out
lab asymptotic velocities
Double_t GetThetaCM() const
scattering angle in the relative (CM) frame (rad)
TVector3 phat
angular momentum, Laplace-Runge-Lenz, eccentricity vector, periapsis direction
Double_t thetaLab2
lab angle of particle 2
TVector3 GetLRL() const
Laplace-Runge-Lenz vector .
Bool_t IsOutgoing() const
the given state is past closest approach ( ); no check of the status
static Double_t RecoilAngle(Double_t thetaCM)
Lab angle of the recoiling target at rest, .
Double_t energy
orbital energy
Double_t GetThetaLab1() const
Lab scattering angle of particle 1 (rad).
Bool_t fixed2
particle 2 is a fixed centre
Double_t GetMu() const
reduced (or moving) mass (amu)
Double_t rmin
closest approach
Double_t GetVinf() const
relative speed at infinity (c)
Double_t vinf
relative speed at infinity
TVector3 GetEccentricityVector() const
toward periapsis,
TString GetStatusName() const
Name of the status as text: "UNBOUND", "HEADON", "FREE", "RADIAL_ATTRACTIVE", "PARABOLIC",...
Double_t GetKappa() const
interaction constant of
Double_t kappa
interaction constant
static Double_t RutherfordClosestApproach(Double_t b, Double_t vinf, Double_t mu, Double_t kappa)
Closest approach for impact parameter b.
Double_t bimp
effective impact parameter
Bool_t Compute(particle *p1, particle *p2, Double_t kappa)
Recompute from two particles (arguments as the matching constructor); all previous results are discar...
Bool_t fixed1
particle 1 is a fixed centre
Double_t GetImpactParameter() const
effective (fm)
Double_t GetThetaLab2() const
Lab scattering angle of particle 2 (rad); same rules as GetThetaLab1().
Bool_t IsFixedCentre() const
exactly one of the two bodies is fixed
Double_t GetClosestApproach() const
distance of closest approach (fm)
status
Classification of the relative orbit. Only kUnbound, kHeadOn and kFree have asymptotes (see HasAsympt...
@ kHeadOn
, , : straight back-scattering, , ,
@ kBound
: ellipse, no asymptote (E, L, A, e, are set)
@ kInvalid
zero distance, non-positive mass (of a moving particle), both particles fixed, or null/identical part...
@ kRadialAttractive
, (whatever the sign of E): falls into the singularity, no asymptote ( )
@ kUnbound
, : hyperbola, every asymptotic quantity is set
@ kFree
: straight line, , (with the relative velocity zero too it is reported as kParabolic with )
@ kParabolic
(within round-off): , no direction
TVector3 GetVcm() const
centre-of-mass velocity (c; 0 for a fixed centre)
TVector3 vcm
relative position, relative velocity, centre-of-mass velocity
Double_t m1
mass of particle 1 (amu)
Double_t mu
reduced (or moving) mass (amu)
TVector3 GetVInRel() const
incoming relative velocity at
TVector3 voutRel
incoming / outgoing relative velocity
Double_t m2
mass of particle 2 (amu)
Double_t GetEccentricity() const
eccentricity; 0 for kFree / kInvalid
TVector3 GetV1Out() const
particle 1, outgoing
Double_t thetaCM
CM scattering angle.
TVector3 GetV1In() const
particle 1, incoming
Bool_t HasAsymptote() const
true for kUnbound, kHeadOn, kFree
static Double_t HeadOnClosestApproach(Double_t vinf, Double_t mu, Double_t kappa)
Head-on ( ) closest approach, repulsive.
TVector3 GetV2Out() const
particle 2, outgoing
asymptote()
Empty object; the status is kInvalid until Compute() is called.
TVector3 GetVOutRel() const
outgoing relative velocity at
static Double_t Angle(const TVector3 &a, const TVector3 &b)
Angle between two vectors, , accurate at 0 and .
TVector3 GetPeriapsisDirection() const
unit vector, centre to closest approach
Bool_t fixedCentre
exactly one body fixed
TVector3 GetV2In() const
particle 2, incoming
status st
orbit classification
static Double_t RutherfordImpactParameter(Double_t theta, Double_t vinf, Double_t mu, Double_t kappa)
Inverse of RutherfordAngle().
Double_t thetaLab1
lab angle of particle 1
static Double_t RutherfordAngle(Double_t b, Double_t vinf, Double_t mu, Double_t kappa)
Rutherford scattering angle in the CM frame.
void Reset()
set every result and input to its empty value (status kInvalid)
Double_t GetEnergy() const
(amu c^2)
TString Print(Bool_t mute=kFALSE) const
Text summary (status, kappa, mu, E, |L|, e, rmin, b, vinf, theta, outgoing velocities).
void Solve()
from r, v, mu, kappa (set by Compute)
static Double_t LabAngle(Double_t thetaCM, Double_t m1, Double_t m2)
Lab angle of the projectile (mass m1) on a target (mass m2) at rest, from the CM angle.
TVector3 GetR() const
(fm)
void SetLab()
lab velocities and angles from the relative asymptotes
A point body with mass, position, velocity, step count, time and an optional recorded path.