GalacticPotentialAllenPlusNewton Class Reference

#include <orsa_interaction.h>

Inheritance diagram for GalacticPotentialAllenPlusNewton:

Inheritance graph
[legend]
Collaboration diagram for GalacticPotentialAllenPlusNewton:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 GalacticPotentialAllenPlusNewton ()
 GalacticPotentialAllenPlusNewton (const GalacticPotentialAllenPlusNewton &)
InteractionType GetType () const
Interactionclone () 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

Constructor & Destructor Documentation

GalacticPotentialAllenPlusNewton  )  [inline]
 

Definition at line 451 of file orsa_interaction.h.

00451                                        : Interaction() {
00452       
00453     }

GalacticPotentialAllenPlusNewton const GalacticPotentialAllenPlusNewton  )  [inline]
 

Definition at line 455 of file orsa_interaction.h.

00455                                                                                : Interaction() {
00456       
00457     }


Member Function Documentation

void Acceleration const Frame f,
std::vector< Vector > &  a
[inline, virtual]
 

Implements Interaction.

Definition at line 468 of file orsa_interaction.h.

References Vector::Set().

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     }   

Here is the call graph for this function:

Interaction* clone  )  const [inline, virtual]
 

Implements Interaction.

Definition at line 464 of file orsa_interaction.h.

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.

00092 { return false; }

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

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.

00487                                                   {
00488       return (gpa_itg.PotentialEnergy(f)+newton_itg.PotentialEnergy(f));
00489     }

void SkipJPLPlanets const bool  b  )  [inline, inherited]
 

Definition at line 95 of file orsa_interaction.h.

References Interaction::skip_JPL_planets.

Referenced by OrsaFile::Read().

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(), and Interaction::SkipJPLPlanets().


The documentation for this class was generated from the following file:
Generated on Tue Jan 11 15:29:23 2005 for liborsa by  doxygen 1.4.0