|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsimulations.objects.BaseObject
simulations.objects.CurrentRing
A ring carrying current. CurrentRing is an EMSource object that computes the electric and magnetic field of a moving circular ring of current. The adjustable parameters are the position, orientation, radius, and velocity of the ring, the current and its time rate of change. To compute the fields, elliptic integrals must be performed, and so using a CurrentRing will slow down computations.
Documentation for the expressions used herein in calculating the magnetic field can be found in the TEAL_Physics_Math document (see Section 3.2.2). This link will work if you have installed the SundquistDLIC code base and documentation as instructed.
Field Summary | |
Vec3 |
c
center of the ring |
Vec3 |
d
unit vector along the direction of the rings axis, defines the direction of positive current |
double |
dIdt
time rate of change of current |
double |
I
current in ring (positive current is right handed with respect to the axis of the ring) |
private Vec3 |
LastB
the last calculated B field value, stored to avoid unnecessary calculations |
private Vec3 |
LastE
the last calculated E field value, stored to avoid unnecessary calculations |
private Vec3 |
LastX
the last calculated location, stored to avoid unnecessary calculations |
Vec3 |
omega
the angular velocity vector of the ring, omega cross r from center gives the angular speed |
Vec3 |
p
the observer"s location where we are going to calculate the fields |
double |
R
R = radius of the ring |
Vec3 |
v
the velocity of the ring |
Constructor Summary | |
CurrentRing(Vec3 p,
Vec3 d,
double R,
double I)
Constructs a new Current ring. |
|
CurrentRing(Vec3 p,
Vec3 d,
double R,
double I,
double dIdt)
Constructs a new Current ring. |
|
CurrentRing(Vec3 p,
Vec3 d,
double R,
double I,
Vec3 v)
Constructs a new Current ring. |
|
CurrentRing(Vec3 p,
Vec3 d,
double R,
double I,
Vec3 v,
Vec3 omega)
Constructs a new Current ring. |
Method Summary | |
Vec3 |
Bfield(Vec3 x,
Vec3 B)
Sets "B" to the value of the magnetic field at "x". |
private void |
CalculateFields(Vec3 x)
Computes both the electric and magnetic fields at the observer"s position. |
Vec3 |
Efield(Vec3 x,
Vec3 E)
Sets "E" to the value of the electric field at "x". |
void |
Evolve(double dt)
A very simple evolution of the CurrnetRing by amount of time "dt". |
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 double I
public double dIdt
public double R
public Vec3 p
public Vec3 c
public Vec3 d
public Vec3 v
public Vec3 omega
private Vec3 LastX
private Vec3 LastB
private Vec3 LastE
Constructor Detail |
public CurrentRing(Vec3 p, Vec3 d, double R, double I)
p
- the position of the center of the ringd
- the axis of the ringR
- the radius of the ringI
- the current in the ringpublic CurrentRing(Vec3 p, Vec3 d, double R, double I, Vec3 v)
p
- the position of the center of the ringd
- the axis of the ringR
- the radius of the ringI
- the current in the ring *v
- the velocity of the ringpublic CurrentRing(Vec3 p, Vec3 d, double R, double I, double dIdt)
p
- the position of the center of the ringd
- the axis of the ringR
- the radius of the ringI
- the current in the ring *dIdt
- the time rate of change of current in the ringpublic CurrentRing(Vec3 p, Vec3 d, double R, double I, Vec3 v, Vec3 omega)
p
- the position of the center of the ringd
- the axis of the ringR
- the radius of the ringI
- the current in the ring *v
- the velocity of the ringomega
- the angular velocity of the ringMethod Detail |
public void Evolve(double dt)
Evolve
in class BaseObject
dt
- the time stepprivate void CalculateFields(Vec3 x)
x
- the position of the observerpublic Vec3 Efield(Vec3 x, Vec3 E)
Efield
in class BaseObject
x
- the position of the observerE
- the electric field at the observer (calculated)
public Vec3 Bfield(Vec3 x, Vec3 B)
Bfield
in class BaseObject
x
- the position of the observerB
- the magnetic field at the observer (calculated)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |