public class Particle
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static double |
s_dblFacElec
Coefficient for electrical properties
|
static double |
s_dblFacMag
Coefficient for magnetic properties
|
Constructor and Description |
---|
Particle()
Creates a new instance of Particle
|
Particle(double q,
double m,
PhaseVector z)
Creates a new instance of Particle
|
Particle(Particle p)
Creates a new instance, a deep copy, of this object
|
Modifier and Type | Method and Description |
---|---|
Particle |
copy()
Perform a deep copy of this particle object
|
R3 |
electricField(R3 ptFld)
Computes the Coulomb electric field of the particle at the given field point.
|
R3 |
electricField(R3 ptFld,
double R)
Computes electric field assuming the particle is an uniform sphere of
charge with radius R.
|
double |
electricPotential(R3 ptFld)
Computes the Coulomb potential of the particle at the given field point.
|
double |
electricPotential(R3 ptFld,
double R)
Computes electric potential assuming the particle was an uniform sphere of
charge with radius R.
|
double |
getCharge()
Get charge of particle
|
double |
getMass()
Get mass of particle
|
R3 |
getMomentum()
Get the velocity vector of the particle
|
PhaseVector |
getPhase()
Get the entire (homogeneous) phase space coordinates of particle
|
R3 |
getPosition()
Get the position vector of the particle
|
R3 |
magneticField(R3 ptFld)
Computes magnetic field assuming the particle is an uniform sphere of
charge with radius R.
|
R3 |
magneticField(R3 ptFld,
double R)
Computes magnetic field assuming the particle is an uniform sphere of
charge with radius R.
|
void |
print(java.io.PrintWriter os)
Print out the properties of this particle.
|
void |
setCharge(double q)
Set charge of particle
|
void |
setMass(double m)
Set mass of particle
|
void |
setPhase(PhaseVector z)
Set (homogeneous) phase space coordinates of particle
|
public static final double s_dblFacElec
public static final double s_dblFacMag
public Particle()
public Particle(double q, double m, PhaseVector z)
q
- particle chargem
- particle massz
- phase space coordinates (homogeneous coordinates)public Particle(Particle p)
p
- particle object to be deep copiedpublic Particle copy()
public void setMass(double m)
public void setCharge(double q)
public void setPhase(PhaseVector z)
public double getCharge()
public double getMass()
public R3 getPosition()
public R3 getMomentum()
public PhaseVector getPhase()
public double electricPotential(R3 ptFld)
ptFld
- field point to evaluate the potentialpublic double electricPotential(R3 ptFld, double R)
ptFld
- field point to evaluate the potentialR
- radius of finite particlepublic R3 electricField(R3 ptFld)
ptFld
- field point to evaluate the potentialpublic R3 electricField(R3 ptFld, double R)
ptFld
- field point to evaluate the electric fieldR
- radius of finite particlepublic R3 magneticField(R3 ptFld)
ptFld
- field point to evaluate the electric fieldpublic R3 magneticField(R3 ptFld, double R)
ptFld
- field point to evaluate the electric fieldR
- radius of finite particlepublic void print(java.io.PrintWriter os)
os
- output stream receiving text description