jat.forces
Class Moon

java.lang.Object
  extended by jat.forces.GravitationalBody
      extended by jat.forces.Moon
All Implemented Interfaces:
EarthForceModel, ForceModel

public class Moon
extends GravitationalBody

Simple class to model the gravitational attraction of the moon.

Author:
Richard C. Page III

Constructor Summary
Moon()
          Default constructor
Moon(boolean usematlab)
          For use with matlab
Moon(double mjd_utc)
          Allows the initialization of the Moon vector using DE405 ephemerides
Moon(double grav_mass, VectorN r, VectorN v)
          Constructor
 
Method Summary
 VectorN acceleration(EarthRef eRef, Spacecraft sc)
          Compute the acceleration.
 VectorN acceleration(Time t, BodyRef bRef, Spacecraft sc)
          Call the relevant methods to compute the acceleration.
static void main(java.lang.String[] args)
           
 void print(EarthRef ref)
           
 
Methods inherited from class jat.forces.GravitationalBody
accelPointMass, getPosition, getVelocity, updatePosition, updateVelocity
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Moon

public Moon()
Default constructor


Moon

public Moon(double mjd_utc)
Allows the initialization of the Moon vector using DE405 ephemerides

Parameters:
mjd_utc - Modified Julian Date in Universal Coordinated Time

Moon

public Moon(boolean usematlab)
For use with matlab


Moon

public Moon(double grav_mass,
            VectorN r,
            VectorN v)
Constructor

Parameters:
grav_mass - [m^3/s^2]
r - position [m]
v - velocity [m/s]
Method Detail

acceleration

public VectorN acceleration(EarthRef eRef,
                            Spacecraft sc)
Compute the acceleration.

Specified by:
acceleration in interface EarthForceModel
Overrides:
acceleration in class GravitationalBody
Parameters:
eRef - Earth Reference
sc - Spacecraft parameters and state
Returns:
the acceleration [m/s^2]

acceleration

public VectorN acceleration(Time t,
                            BodyRef bRef,
                            Spacecraft sc)
Call the relevant methods to compute the acceleration.

Specified by:
acceleration in interface ForceModel
Overrides:
acceleration in class GravitationalBody
Parameters:
t - Time reference class
bRef - Body reference class
sc - Spacecraft parameters and state
Returns:
the acceleration [m/s^s]

print

public void print(EarthRef ref)

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException