|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object JSci.physics.Particle JSci.physics.AbstractClassicalParticle JSci.physics.ClassicalParticle3D
public class ClassicalParticle3D
The ClassicalParticle3D class provides an object for encapsulating classical point particles that live in 3D.
Field Summary | |
---|---|
protected double |
mass
Mass. |
protected double |
vx
Velocity coordinates. |
protected double |
vy
Velocity coordinates. |
protected double |
vz
Velocity coordinates. |
protected double |
x
Position coordinates. |
protected double |
y
Position coordinates. |
protected double |
z
Position coordinates. |
Constructor Summary | |
---|---|
ClassicalParticle3D()
Constructs a classical particle. |
Method Summary | |
---|---|
ClassicalParticle3D |
accelerate(double ax,
double ay,
double az,
double dt)
Accelerates this particle. |
ClassicalParticle3D |
applyForce(double Fx,
double Fy,
double Fz,
double dt)
Applies a force to this particle. |
double |
energy()
Returns the kinetic energy. |
double |
getMass()
|
AbstractDoubleVector |
getMomentum()
|
AbstractDoubleVector |
getPosition()
|
AbstractDoubleVector |
getVelocity()
|
double |
getXMomentum()
|
double |
getXPosition()
|
double |
getXVelocity()
|
double |
getYMomentum()
|
double |
getYPosition()
|
double |
getYVelocity()
|
double |
getZMomentum()
|
double |
getZPosition()
|
double |
getZVelocity()
|
ClassicalParticle3D |
gravitate(ClassicalParticle3D p,
double dt)
Evolves two particles under their mutual gravitational attraction. |
ClassicalParticle3D |
move(double dt)
Evolves this particle forward according to its kinematics. |
void |
setMass(double m)
|
void |
setMomentum(double xMom,
double yMom,
double zMom)
|
void |
setPosition(double xPos,
double yPos,
double zPos)
|
void |
setVelocity(double xVel,
double yVel,
double zVel)
|
void |
setXPosition(double xPos)
|
void |
setYPosition(double yPos)
|
void |
setZPosition(double zPos)
|
double |
speed()
|
ClassicalParticle3D |
translate(double dt)
Evolves this particle forward according to its linear kinematics. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double mass
protected double x
protected double y
protected double z
protected double vx
protected double vy
protected double vz
Constructor Detail |
---|
public ClassicalParticle3D()
Method Detail |
---|
public void setMass(double m)
public double getMass()
getMass
in class AbstractClassicalParticle
public void setPosition(double xPos, double yPos, double zPos)
public AbstractDoubleVector getPosition()
getPosition
in class AbstractClassicalParticle
public void setXPosition(double xPos)
public double getXPosition()
public void setYPosition(double yPos)
public double getYPosition()
public void setZPosition(double zPos)
public double getZPosition()
public void setVelocity(double xVel, double yVel, double zVel)
public AbstractDoubleVector getVelocity()
getVelocity
in class AbstractClassicalParticle
public double getXVelocity()
public double getYVelocity()
public double getZVelocity()
public double speed()
speed
in class AbstractClassicalParticle
public void setMomentum(double xMom, double yMom, double zMom)
public AbstractDoubleVector getMomentum()
getMomentum
in class AbstractClassicalParticle
public double getXMomentum()
public double getYMomentum()
public double getZMomentum()
public double energy()
energy
in class AbstractClassicalParticle
public ClassicalParticle3D move(double dt)
public ClassicalParticle3D translate(double dt)
public ClassicalParticle3D accelerate(double ax, double ay, double az, double dt)
accelerate(a1, dt).accelerate(a2, dt)
is equivalent to accelerate(a1+a2, dt)
.
public ClassicalParticle3D applyForce(double Fx, double Fy, double Fz, double dt)
applyForce(F1, dt).applyForce(F2, dt)
is equivalent to applyForce(F1+F2, dt)
.
public ClassicalParticle3D gravitate(ClassicalParticle3D p, double dt)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |