simulations.objects
Class HelioField

java.lang.Object
  extended bysimulations.objects.BaseObject
      extended bysimulations.objects.HelioField

public class HelioField
extends BaseObject


Field Summary
 Vec3 p
          the position of the sun
 double radius
          shortest distance to the bow shock
 
Constructor Summary
HelioField(double radius, Vec3 p)
          constructor
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          the magnetic field (zero)
 Vec3 Efield(Vec3 x, Vec3 E)
          inverse distance squared field
private static void println(java.lang.String s)
          A local way to print a string
 java.lang.String toString()
          writes properties of the HelioField to a string
 
Methods inherited from class simulations.objects.BaseObject
Bfield, Efield, Evolve, Pfield, Pfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

radius

public double radius
shortest distance to the bow shock


p

public Vec3 p
the position of the sun

Constructor Detail

HelioField

public HelioField(double radius,
                  Vec3 p)
constructor

Parameters:
radius - The distance to the termination shock.
p - The position of the Sun.
Method Detail

Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
inverse distance squared field

Specified by:
Efield in class BaseObject
Parameters:
x - the position of the observer
E - the electric field at the position of the observer
Returns:
E the electric field at the position of the observer

Bfield

public Vec3 Bfield(Vec3 x,
                   Vec3 B)
the magnetic field (zero)

Specified by:
Bfield in class BaseObject
Parameters:
x - the position of the observer
B - the magnetic field at the observer's position if the charge is at p (calculated)
Returns:
zero for a stationary charge

println

private static void println(java.lang.String s)
A local way to print a string


toString

public java.lang.String toString()
writes properties of the HelioField to a string