

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
java.lang.Object simulations.experiments.BaseExperiment simulations.experiments.magnetostatics.TeachSpinExperiment
Experiment consists of two ring currents, one above the other. The top one represents the small magnet in the teach spin experiment, and the bottom one represents the bottom current ring in the teach spin experiment. In this experiment we let the current in the bottom current ring vary sinusoidally with time, I(t) = I0 sin (omega * t) and calculate the corresponding motion of the magnet due to this changing current in a purely magnetostatic fashion (that is there is no currrent induced anywhere in this problem due to a changing magnetic flux through any ringe.g. there are no induced electric fields or currents of importance). We also assume that this magnet motion is quasistaticthat is it is very slow compared to the natural frequency of oscillation of the magnet on the spring from which it is suspended, so that the magnetic force on the dipole simply results in a displacement from equilibrium that is proportional to the force.
Field Summary  
private EMCollection 
collection
the EMCollection consisting of the dipole and the current ring 
double 
deltaR
the amplitude of the motion of the magnet 
double 
dIdt
the current time rate of change of current in the ring 
CurrentRing 
dipole
the dipole in the Teach Spin experiment 
double 
I
the current current in the ring 
double 
I0
the amplitude of the sinusoidal variation in the current in the lower current ring 
double 
I1
the amplitude of the sinusoidal variation in the current in the lower current ring 
double 
omega
the constant current in the magnetic dipole 
double 
R
the radius of the lower current ring in pixels 
CurrentRing 
ring
the lower ring in the Teach Spin experiment 
double 
t
the time 
double 
v
the current velocity of the magnet along the zaxis 
double 
z
the current position of the magnet along the zaxis 
double 
z0
the initial position of the magnet on the zaxis 
double 
Z0
the fixed position of the lower current ring center along the zaxis 
Fields inherited from class simulations.experiments.BaseExperiment 
eps, FieldMotionType, FieldType, FluidFlowSpeed, Fnorm, Fpower, numberSmallSteps 
Constructor Summary  
TeachSpinExperiment(double R,
double deltaR,
double I1,
double z0,
double Z0,
double I0,
double omega)
constructor for the experiment 
Method Summary  
void 
ConstructEMSource()
Constructs the EMSource representing the two current rings in the experiment with the given initial conditions 
void 
Evolve(double dt)
Evolves the experiment by a time step "dt" 
void 
Evolve(double dt,
double maxStep)
Evolves the experiment. 
BaseObject 
getEMSource()
returns the collecton of BaseObjects constructed in ConstructEMSource() 
double 
getFlowSpeed(Vec3 r,
Vec RegionFlow)
Method to find the flow speed in a given region when we are determining that speed according to region. 
double 
getHue(double TargetHue,
Vec3 r,
Vec RegionColor)
Method to find the hue in a given region when we are coloring according to region (Color Mode 4). 
Methods inherited from class java.lang.Object 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
Field Detail 
public double R
public double deltaR
public double I0
public double I1
public double omega
public double z0
public double Z0
public double z
public double v
public double I
public double dIdt
public double t
public CurrentRing ring
public CurrentRing dipole
private EMCollection collection
Constructor Detail 
public TeachSpinExperiment(double R, double deltaR, double I1, double z0, double Z0, double I0, double omega)
R
 the radius of the lower current ringdeltaR
 the amplitude of the variation in the height of the magnetI1
 the constant current in the magnetz0
 the initial position of the magnet above the lower current ringZ0
 the initial position of the lower current ring along the zaxisI0
 the amplitude of the variation in the current in the lower current ringomega
 the angular frequency of the time variation in currentMethod Detail 
public void ConstructEMSource()
ConstructEMSource
in class BaseExperiment
public BaseObject getEMSource()
BaseExperiment
getEMSource
in class BaseExperiment
public void Evolve(double dt, double maxStep)
public void Evolve(double dt)
Evolve
in class BaseExperiment
public double getHue(double TargetHue, Vec3 r, Vec RegionColor)
getHue
in class BaseExperiment
TargetHue
 This is the target hue from the renderer.r
 This is the vector postion of the point in the image.RegionColor
 This is the varous hues for the regions.
public double getFlowSpeed(Vec3 r, Vec RegionFlow)
getFlowSpeed
in class BaseExperiment
r
 This is the vector postion of the point in the image.RegionFlow
 This is the flow speeds for the regions.


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 