|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.experiments.BaseExperiment
simulations.experiments.faradaysLaw.FallingRingExperiment
Falling Ring experiment, consisting of a ring falling past a stationary magnet. This object computes the evolution of the system and also generates an EMSource that computes the E&M fields of the system. The evolution is computed in terms of dimensionless variables and then converted to "real" units.
Documentation for the evolution equations describing this system can be found in the TEAL_Physics_Math document (see Section 4.1). This link will work if you have installed the SundquistDLIC code base and documentation as instructed.
Nested Class Summary | |
class |
FallingRingExperiment.Motion
Specifies the time derivative of the parmeters which describe the experiment at any time t. |
Field Summary | |
double |
alpha
parameter of the experiment as defined in the TEAL_Physics_Math reference |
double |
beta
parameter of the experiment as defined in the TEAL_Physics_Math reference |
private EMCollection |
collection
the collection of the two rings |
double |
dIdt
the time derivative of the current in dimensionless current units = I0/t0 |
CurrentRing |
dipole
the current ring representing the point dipole |
FallingRingExperiment.Motion |
equations
Define the evolution equations used by the RK4 integrator |
double |
I
the current in dimensionless units |
double |
I0
the current scale factor, see TEAL_Physics_Math document |
private RungeKuttaIntegration |
integrator
define the integraton scheme used to numerically integrate the evolution equations in time |
double |
lambda
parameter of the experiment as defined in the TEAL_Physics_Math reference |
double |
M0
M0 = dipole moment of the "point dipole" |
double |
offset
offset is an overall offset of the entire experiment along the z-axis |
double |
R
R = radius of the ring |
CurrentRing |
ring
the current ring representing the ring |
double |
t
the time in dimensionless units |
double |
t0
the time scale factor, see TEAL_Physics_Math document |
double |
v
the velocity in dimensionless speed units = z0/t0 |
double |
z
the dimensionless height of the ring above the magnet |
double |
z0
the distance scale factor, which is the radius of the ring |
Fields inherited from class simulations.experiments.BaseExperiment |
eps, FieldMotionType, FieldType, FluidFlowSpeed, Fnorm, Fpower, numberSmallSteps |
Constructor Summary | |
FallingRingExperiment(double R,
double relH,
double alpha,
double beta,
double offset)
Constructs an instance of the experiment using the given parameters. |
Method Summary | |
void |
ConstructEMSource()
Constructs the EMCollection representing the experiment consisting of the two rings of current with the given initial conditions |
void |
Evolve(double dt)
Evolves the experiment by a time step "dt" using an RK4 integrator by taking numberSmallSteps between t and t + dt, for accuracy. |
void |
Evolve(double dt,
double maxStep)
Evolve the experiment by a time step "dt" using an integrator. |
BaseObject |
getEMSource()
An EMSource that represents the current experimental state that can be used to compute the current E&M fields. |
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 z0
public double t0
public double I0
public double z
public double t
public double I
public double v
public double dIdt
public double alpha
public double beta
public double lambda
public double offset
public double M0
public CurrentRing ring
public CurrentRing dipole
private EMCollection collection
public FallingRingExperiment.Motion equations
private RungeKuttaIntegration integrator
Constructor Detail |
public FallingRingExperiment(double R, double relH, double alpha, double beta, double offset)
R
- the radius of the ring in real unitsrelH
- the initial height/R of the falling ringalpha
- experimental parameter as defined in TEAL_Physics_Math document Section 4.1.3beta
- experimental parameter as defined in TEAL_Physics_Math document Section 4.1.3offset
- the distance that the magnet is offset from the originMethod Detail |
public void ConstructEMSource()
ConstructEMSource
in class BaseExperiment
public BaseObject getEMSource()
getEMSource
in class BaseExperiment
public void Evolve(double dt, double maxStep)
maxStep
- the maximum step alloweddt
- the time steppublic 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 |