|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.objects.BaseObject
simulations.objects.ElectricDipoleRotating
This is a rotating electric dipole. It rotates about the z axis, lies in the xy plane Important note: we multiply the overall electric field of this dipole by one factor of the radius and scale it by 1/100. If you want this dipole to interact with other electromagnetic objects you must compensate for this.
Field Summary | |
double |
omega
The angular frequency of rotation of the rotating dipole |
double |
p0
The magnitude of the dipole moment of the rotating dipole |
double |
t
The time. |
double |
theta
The angle that the dipole moment mades to the z-axis |
Vec3 |
x
The position of the dipole. |
Constructor Summary | |
ElectricDipoleRotating(Vec3 x,
double p0,
double omega,
double theta)
Create an electric dipole |
Method Summary | |
Vec3 |
Bfield(Vec3 x,
Vec3 B)
Compute the magnetic field at position x and time t |
Vec3 |
Efield(Vec3 x,
Vec3 E)
Compute the electric field at position x and time t |
void |
Evolve(double dt)
Evolve the dipole time |
Vec3 |
getDDP(double dt)
Returns the second time derivative of the dipole moment at a time retarded by dt. |
Vec3 |
getDP(double dt)
Returns the first time derivative of the dipole moment at a time retarded by dt We use the method getT to find out the current time of the dipole |
Vec3 |
getP(double dt)
Returns the dipole moment at a time retarded by dt. |
double |
getT()
Get the time. |
Methods inherited from class simulations.objects.BaseObject |
Bfield, Efield, Pfield, Pfield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Vec3 x
public double t
public double p0
public double omega
public double theta
Constructor Detail |
public ElectricDipoleRotating(Vec3 x, double p0, double omega, double theta)
Method Detail |
public double getT()
public Vec3 getP(double dt)
public Vec3 getDP(double dt)
public Vec3 getDDP(double dt)
public void Evolve(double dt)
Evolve
in class BaseObject
dt
- the time steppublic Vec3 Efield(Vec3 x, Vec3 E)
Efield
in class BaseObject
x
- the position of the observerE
- the electric field at the observer's position
public Vec3 Bfield(Vec3 x, Vec3 B)
Bfield
in class BaseObject
B
- the magnetic field at the observer's position
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |