#include <orsa_interaction.h>
Public Member Functions | |
GalacticPotentialAllenPlusNewton () | |
GalacticPotentialAllenPlusNewton (const GalacticPotentialAllenPlusNewton &) | |
InteractionType | GetType () const |
Interaction * | clone () const |
void | Acceleration (const Frame &f, std::vector< Vector > &a) |
double | PotentialEnergy (const Frame &f) |
virtual bool | depends_on_velocity () const |
void | SkipJPLPlanets (const bool b) |
bool | IsSkippingJPLPlanets () const |
Protected Attributes | |
bool | skip_JPL_planets |
Definition at line 449 of file orsa_interaction.h.
GalacticPotentialAllenPlusNewton | ( | ) | [inline] |
Definition at line 451 of file orsa_interaction.h.
Referenced by GalacticPotentialAllenPlusNewton::clone().
GalacticPotentialAllenPlusNewton | ( | const GalacticPotentialAllenPlusNewton & | ) | [inline] |
Definition at line 455 of file orsa_interaction.h.
Implements Interaction.
Definition at line 468 of file orsa_interaction.h.
References Newton::Acceleration(), and GalacticPotentialAllen::Acceleration().
00468 { 00469 00470 tmp_a.resize(a.size()); 00471 00472 unsigned int i; 00473 00474 for (i=0;i<a.size();++i) 00475 a[i].Set(0,0,0); 00476 00477 gpa_itg.Acceleration(f,tmp_a); 00478 for (i=0;i<a.size();++i) 00479 a[i] += tmp_a[i]; 00480 00481 newton_itg.Acceleration(f,tmp_a); 00482 for (i=0;i<a.size();++i) 00483 a[i] += tmp_a[i]; 00484 00485 }
Interaction* clone | ( | ) | const [inline, virtual] |
Implements Interaction.
Definition at line 464 of file orsa_interaction.h.
References GalacticPotentialAllenPlusNewton::GalacticPotentialAllenPlusNewton().
00464 { 00465 return new GalacticPotentialAllenPlusNewton(*this); 00466 }
virtual bool depends_on_velocity | ( | ) | const [inline, virtual, inherited] |
Reimplemented in Newton, and Relativistic.
Definition at line 92 of file orsa_interaction.h.
Referenced by Radau15::Step().
InteractionType GetType | ( | ) | const [inline, virtual] |
Implements Interaction.
Definition at line 459 of file orsa_interaction.h.
References orsa::GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON.
00459 { 00460 return GALACTIC_POTENTIAL_ALLEN_PLUS_NEWTON; 00461 }
bool IsSkippingJPLPlanets | ( | ) | const [inline, inherited] |
Definition at line 98 of file orsa_interaction.h.
References Interaction::skip_JPL_planets.
Referenced by Evolution::Integrate(), Stoer::Step(), DissipativeRungeKutta::Step(), RungeKutta::Step(), Radau15::Step(), Leapfrog::Step(), and OrsaFile::Write().
00098 { 00099 return skip_JPL_planets; 00100 }
double PotentialEnergy | ( | const Frame & | f | ) | [inline, virtual] |
Implements Interaction.
Definition at line 487 of file orsa_interaction.h.
References Newton::PotentialEnergy(), and GalacticPotentialAllen::PotentialEnergy().
void SkipJPLPlanets | ( | const bool | b | ) | [inline, inherited] |
Definition at line 95 of file orsa_interaction.h.
References Interaction::skip_JPL_planets.
00095 { 00096 skip_JPL_planets = b; 00097 }
bool skip_JPL_planets [protected, inherited] |
Definition at line 102 of file orsa_interaction.h.
Referenced by Interaction::IsSkippingJPLPlanets(), Newton::Newton(), and Interaction::SkipJPLPlanets().