simulations.objects
Class ISMfield

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

public class ISMfield
extends BaseObject


Field Summary
 Vec3 p
          the position of the sun
 double radius
          the radius of the heliosphere
 
Constructor Summary
ISMfield(double radius, Vec3 p)
          constructor
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          the magnetic field (zero)
 Vec3 Efield(Vec3 x, Vec3 E)
          constant electric field except for a sphere centered at p where the field is zero
 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
the radius of the heliosphere


p

public Vec3 p
the position of the sun

Constructor Detail

ISMfield

public ISMfield(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)
constant electric field except for a sphere centered at p where the field is zero

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

toString

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