simulations.objects
Class FlowTestField

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

public class FlowTestField
extends BaseObject

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


Constructor Summary
FlowTestField()
          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
 

Constructor Detail

FlowTestField

public FlowTestField()
constructor for color test field

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