simulations.objects
Class ElectricOscillatingDipole

java.lang.Object
  extended bysimulations.objects.BaseObject
      extended bysimulations.objects.ElectricDipole
          extended bysimulations.objects.ElectricOscillatingDipole

public class ElectricOscillatingDipole
extends ElectricDipole

An extension of the ElectricDipole class that replaces the constant electric dipole moment with one that is oscillating. We assume that the dipole is fixed in direction along the z-axis, with its magnitude changing as defined below.

Version:
1.0
Author:
Andreas Sundquist

Field Summary
 double omega
          The angular frequency of the oscillating dipole
 double p0
          The constant part of the dipole moment of the oscillating dipole
 double p1
          The sinusoidal part of the dipole moment of the oscillating dipole
 double phase
          The phase shift in the sinusoidal time depedence of the oscillating dipole
 
Fields inherited from class simulations.objects.ElectricDipole
p, t, v, x
 
Constructor Summary
ElectricOscillatingDipole(Vec3 x, Vec3 p, double p0, double p1, double omega, double phase)
          Constructs an ElectricOscillatingDipole centered at "x" at t = 0.
 
Method Summary
 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.
 
Methods inherited from class simulations.objects.ElectricDipole
Bfield, Efield, Evolve, getT
 
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

p0

public double p0
The constant part of the dipole moment of the oscillating dipole


p1

public double p1
The sinusoidal part of the dipole moment of the oscillating dipole


omega

public double omega
The angular frequency of the oscillating dipole


phase

public double phase
The phase shift in the sinusoidal time depedence of the oscillating dipole

Constructor Detail

ElectricOscillatingDipole

public ElectricOscillatingDipole(Vec3 x,
                                 Vec3 p,
                                 double p0,
                                 double p1,
                                 double omega,
                                 double phase)
Constructs an ElectricOscillatingDipole centered at "x" at t = 0. The parameter "p" is ignored, because we are creating a dipole which is always along the z axis

Method Detail

getP

public Vec3 getP(double dt)
Returns the dipole moment at a time retarded by dt. We use the method getT to find out the current time of the dipole

Overrides:
getP in class ElectricDipole

getDP

public 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

Overrides:
getDP in class ElectricDipole

getDDP

public Vec3 getDDP(double dt)
Returns the second 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

Overrides:
getDDP in class ElectricDipole