|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectsimulations.objects.BaseObject
simulations.objects.PointCharge
Point Charge. This BaseObject calculates the non-relativistic electric and magnetic fields of a stationary point charge
| Field Summary | |
double |
m
the mass of the point charge |
Vec3 |
p
the position of the point charge |
double |
q
the charge of the point charge |
double |
radius
the Pauli radius of the point charge (repulsion always dominates inside this radius). |
| Constructor Summary | |
PointCharge(double q,
Vec3 p)
constructor for the point charge with radius set to 5. |
|
PointCharge(double q,
Vec3 p,
double radius)
constructor for the point charge setting Pauli radius |
|
| Method Summary | |
Vec3 |
Bfield(Vec3 x,
Vec3 B)
the magnetic field of a stationary point charge (zero) |
Vec3 |
Efield(Vec3 x,
Vec3 E)
the electric field of a stationary point charge |
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 |
public double q
public double m
public double radius
public Vec3 p
| Constructor Detail |
public PointCharge(double q,
Vec3 p,
double radius)
q - the chargep - the positionradius - the Pauli radius
public PointCharge(double q,
Vec3 p)
q - the chargep - the position| Method Detail |
public Vec3 Efield(Vec3 x,
Vec3 E)
Efield in class BaseObjectx - the position of the observerE - the electric field at the position of the observer due to the charge at p (calculated)
public Vec3 Bfield(Vec3 x,
Vec3 B)
Bfield in class BaseObjectx - the position of the observerB - the magnetic field at the observer's position if the charge is at p (calculated)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||