simulations.objects
Class MagneticDipoleStatic

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

public class MagneticDipoleStatic
extends BaseObject


Field Summary
protected static double Bfactor
           
 Vec3 dipole
           
 Vec3 omega
           
 Vec3 p
           
 double radius
           
 Vec3 v
           
 
Constructor Summary
MagneticDipoleStatic(Vec3 p, Vec3 dipole, Vec3 omega, double radius)
           
MagneticDipoleStatic(Vec3 p, Vec3 v, Vec3 dipole, Vec3 omega, double radius)
           
 
Method Summary
 Vec3 Bfield(Vec3 x, Vec3 B)
          Sets 'B' to the value of the magnetic field at 'x'.
 Vec3 Efield(Vec3 x, Vec3 E)
          Sets 'E' to the value of the electric field at 'x'.
 Vec3 getM(double dt)
           
 Vec3 Pfield(Vec3 x, Vec3 P)
          Sets 'P' to the value of the Pauli field at 'x'.
 java.lang.String toString()
           
 
Methods inherited from class simulations.objects.BaseObject
Bfield, Efield, Evolve, Pfield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Bfactor

protected static double Bfactor

p

public Vec3 p

v

public Vec3 v

dipole

public Vec3 dipole

omega

public Vec3 omega

radius

public double radius
Constructor Detail

MagneticDipoleStatic

public MagneticDipoleStatic(Vec3 p,
                            Vec3 dipole,
                            Vec3 omega,
                            double radius)

MagneticDipoleStatic

public MagneticDipoleStatic(Vec3 p,
                            Vec3 v,
                            Vec3 dipole,
                            Vec3 omega,
                            double radius)
Method Detail

getM

public Vec3 getM(double dt)

Bfield

public Vec3 Bfield(Vec3 x,
                   Vec3 B)
Description copied from class: BaseObject
Sets 'B' to the value of the magnetic field at 'x'. 'x' is not modified. Returns: resulting 'B'. * @param x the position of the observer

Specified by:
Bfield in class BaseObject
Parameters:
B - the magnetic field at the observer's position
Returns:
B the magnetic field at the observer's position

Efield

public Vec3 Efield(Vec3 x,
                   Vec3 E)
Description copied from class: BaseObject
Sets 'E' to the value of the electric field at 'x'. 'x' is not modified. Returns: resulting 'E'

Specified by:
Efield in class BaseObject
Parameters:
x - the position of the observer
E - the electric field at the observer's position
Returns:
E the electric field at the observer's position

Pfield

public Vec3 Pfield(Vec3 x,
                   Vec3 P)
Description copied from class: BaseObject
Sets 'P' to the value of the Pauli field at 'x'. 'x' is not modified. Returns: resulting 'P'.

Overrides:
Pfield in class BaseObject
Parameters:
x - the position of the observer
P - the Pauli field at the observer's position
Returns:
P the Pauli field at the observer's position

toString

public java.lang.String toString()