jat.forces
Class Sun

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

public class Sun
extends GravitationalBody

Simple class to obtain the gravitational effect of the Sun.

Author:
Richard C. Page III

Constructor Summary
Sun()
          Default constructor.
Sun(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)
           
 
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

Sun

public Sun()
Default constructor.


Sun

public Sun(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]

main

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