simulations.objects
Class InfiniteWire
java.lang.Object
simulations.objects.BaseObject
simulations.objects.InfiniteWire
- public class InfiniteWire
- extends BaseObject
Constructor Summary |
InfiniteWire(double I,
double dIdt,
Vec3 p,
Vec3 d)
|
InfiniteWire(double I,
double dIdt,
Vec3 p,
Vec3 d,
Vec3 v)
|
InfiniteWire(double I,
Vec3 p,
Vec3 d)
|
InfiniteWire(double I,
Vec3 p,
Vec3 d,
Vec3 v)
|
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'. |
void |
Evolve(double dt)
Evolves the object by the amount of time 'dt'. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bfactor
protected static double Bfactor
I
public double I
dIdt
public double dIdt
p
public Vec3 p
d
public Vec3 d
v
public Vec3 v
InfiniteWire
public InfiniteWire(double I,
Vec3 p,
Vec3 d)
InfiniteWire
public InfiniteWire(double I,
double dIdt,
Vec3 p,
Vec3 d)
InfiniteWire
public InfiniteWire(double I,
Vec3 p,
Vec3 d,
Vec3 v)
InfiniteWire
public InfiniteWire(double I,
double dIdt,
Vec3 p,
Vec3 d,
Vec3 v)
Evolve
public void Evolve(double dt)
- Description copied from class:
BaseObject
- Evolves the object by the amount of time 'dt'.
- Overrides:
Evolve
in class BaseObject
- Parameters:
dt
- the time step
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 observerE
- the electric field at the observer's position
- Returns:
- E the electric field at the observer's position
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