JPLPlanetsNewton Class Reference

#include <orsa_interaction.h>

Inheritance diagram for JPLPlanetsNewton:

Inheritance graph
[legend]
Collaboration diagram for JPLPlanetsNewton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JPLPlanetsNewton (std::list< JPL_planets > &)
 JPLPlanetsNewton (const JPLPlanetsNewton &)
void Acceleration (const orsa::Frame &, std::vector< orsa::Vector > &)
double PotentialEnergy (const orsa::Frame &)
Interactionclone () const
InteractionType GetType () const
virtual void Acceleration (const Frame &, std::vector< Vector > &)=0
virtual bool depends_on_velocity () const
void SkipJPLPlanets (const bool b)
bool IsSkippingJPLPlanets () const

Protected Attributes

bool skip_JPL_planets

Detailed Description

Definition at line 498 of file orsa_interaction.h.


Constructor & Destructor Documentation

JPLPlanetsNewton ( std::list< JPL_planets > &   ) 

Referenced by JPLPlanetsNewton::clone().

JPLPlanetsNewton ( const JPLPlanetsNewton  ) 

Definition at line 957 of file orsa_interaction.cc.

References orsa::GetG(), Universe::GetUniverseType(), orsa::Real, and orsa::universe.

00957                                                                : Interaction(), l(i.l) {
00958     if (universe->GetUniverseType() != Real) {
00959       cerr << "error: using the JPLPlanetsNewton interaction in a non-Real universe!" << endl;
00960       exit(0);
00961     }
00962     g = GetG();
00963   }

Here is the call graph for this function:


Member Function Documentation

virtual void Acceleration ( const Frame ,
std::vector< Vector > &   
) [pure virtual, inherited]

Implemented in Newton, GravitationalTree, Relativistic, ArmonicOscillator, GalacticPotentialAllen, and GalacticPotentialAllenPlusNewton.

Referenced by Stoer::Step(), DissipativeRungeKutta::Step(), RungeKutta::Step(), Radau15::Step(), and Leapfrog::Step().

void Acceleration ( const orsa::Frame ,
std::vector< orsa::Vector > &   
)

Interaction * clone (  )  const [virtual]

Implements Interaction.

Definition at line 965 of file orsa_interaction.cc.

References JPLPlanetsNewton::JPLPlanetsNewton().

00965                                               {
00966     return new JPLPlanetsNewton(*this);
00967   }

Here is the call graph for this function:

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().

00092 { return false; }

InteractionType GetType (  )  const [inline, virtual]

Implements Interaction.

Definition at line 510 of file orsa_interaction.h.

References orsa::JPL_PLANETS_NEWTON.

00510                                     {
00511       return JPL_PLANETS_NEWTON;
00512     }

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 orsa::Frame  )  [virtual]

Implements Interaction.

Definition at line 1022 of file orsa_interaction.cc.

References Newton::PotentialEnergy(), and orsa::SetupSolarSystem().

01022                                                           {
01023     SetupSolarSystem(planets_frame,l,f);
01024     return newton_itg.PotentialEnergy(planets_frame);
01025   }

Here is the call graph for this function:

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     }


Member Data Documentation

bool skip_JPL_planets [protected, inherited]

Definition at line 102 of file orsa_interaction.h.

Referenced by Interaction::IsSkippingJPLPlanets(), Newton::Newton(), and Interaction::SkipJPLPlanets().


The documentation for this class was generated from the following files:
Generated on Thu Jul 13 06:46:20 2006 for liborsa by  doxygen 1.4.7