|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.objects.BaseObject
This is the abstract base class for physical objects. Its methods describe how a given source object (for example a line of current or a point charge) produce electromagnetic and other fields. Every derived subclass must provide a method to compute the various fields in the rest frame of the observer by defining the Vec3 to Vec3 mapping in the methods Efield(), Bfield(), and Pfield().
Constructor Summary | |
BaseObject()
|
Method Summary | |
Vec3 |
Bfield(Vec3 x)
Returns: a new Vec3 with the value of the magnetic field at 'x'. |
abstract Vec3 |
Bfield(Vec3 x,
Vec3 B)
Sets 'B' to the value of the magnetic field at 'x'. |
Vec3 |
Efield(Vec3 x)
Returns: a new Vec3 with the value of the electric field at 'x'. |
abstract Vec3 |
Efield(Vec3 x,
Vec3 E)
Sets 'E' to the value of the electric field at 'x'. |
void |
Evolve(double dt)
Evolves the object by the amount of time 'dt'. |
Vec3 |
Pfield(Vec3 x)
Returns: a new Vec3 with the value of the Pauli field at 'x'. |
Vec3 |
Pfield(Vec3 x,
Vec3 P)
Sets 'P' to the value of the Pauli field at 'x'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BaseObject()
Method Detail |
public abstract Vec3 Efield(Vec3 x, Vec3 E)
x
- the position of the observerE
- the electric field at the observer's position
public abstract Vec3 Bfield(Vec3 x, Vec3 B)
B
- the magnetic field at the observer's position
public Vec3 Pfield(Vec3 x, Vec3 P)
x
- the position of the observerP
- the Pauli field at the observer's position
public Vec3 Efield(Vec3 x)
x
- the position of the observer
public Vec3 Pfield(Vec3 x)
x
- the position of the observer
public Vec3 Bfield(Vec3 x)
x
- the position of the observer
public void Evolve(double dt)
dt
- the time step
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |