simulations.objects
Class ColorTestField

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

public class ColorTestField
extends BaseObject

Color Test Field. This BaseObject calculates a simple field linear field in the z direction that we can use in color testing.


Field Summary
 double ACT
          the slope of the field at the origin
 double BCT
          the value of the field at the origin of the point charge
 
Constructor Summary
ColorTestField(double ACT, double BCT)
          constructor for color test field
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          the magnetic field of the color test field is zero
 Vec3 Efield(Vec3 x, Vec3 E)
          the electric field of our color test field
 java.lang.String toString()
          writes properties of the point charge 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

BCT

public double BCT
the value of the field at the origin of the point charge


ACT

public double ACT
the slope of the field at the origin

Constructor Detail

ColorTestField

public ColorTestField(double ACT,
                      double BCT)
constructor for color test field

Parameters:
BCT - the value of the field at the origin
ACT - the slope of the field at the origin
Method Detail

Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
the electric field of our color test 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 of the color test field is zero

Specified by:
Bfield in class BaseObject
Parameters:
x - the position of the observer
B - the magnetic field at the observer's position
Returns:
B the magnetic field at the observer's position

toString

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