Class representing a particle with defined position and 4-velocity. More...
#include <particle.h>
Public Member Functions | |
| Particle (Manifold *_m) | |
| Constructor. More... | |
| Particle (Manifold *_m, Point _p, vector4 _u) | |
| Constructor. More... | |
| virtual | ~Particle () |
| Destructor. | |
| void | setIntegrator (Integrator *) |
| Sets the integrator to be used for propagation. | |
| StateVector | derivative (StateVector v) |
| Overloaded method from DiffEq. More... | |
| void | propagate (double step=0.0) |
| Propagates the particle. More... | |
| int | getCoordSystem () |
| Returns the current coordinate system in use. | |
| virtual void | setCoordSystem (int) |
| Changes the coordinate system in use. | |
| Point | getPos () |
| Returns the position. | |
| vector4 | getVel () |
| Returns the 4-velocity. | |
| virtual void | setPosVel (Point _p, vector4 _u) |
| Changes the position and 4-velocity. More... | |
| virtual void | setVel (vector4 _u) |
| Changes the 4-velocity. More... | |
Public Member Functions inherited from DiffEq | |
| DiffEq () | |
| Constructor. | |
| virtual | ~DiffEq () |
| Virtual destructor. | |
Protected Member Functions | |
| virtual StateVector | constructState () |
| Constructs a state vector from the internal state. | |
| virtual void | setState (StateVector) |
| Sets the internal state to a state represented by a StateVector. | |
| virtual Point | getPosFromState (StateVector) |
| Reads the position from a StateVector. | |
| virtual vector4 | getVelFromState (StateVector) |
| Reads the 4-velocity from a StateVector. | |
Protected Attributes | |
| Point | p |
| vector4 | u |
| Manifold * | m |
| Integrator * | integrator |
Class representing a particle with defined position and 4-velocity.
Inherits DiffEq - defines the geodesic equation.
| Particle::Particle | ( | Manifold * | _m | ) |
Constructor.
| _m | The manifold on which the particle is defined |
Constructor.
| _m | The manifold on which the particle is defined |
| _p | The initial position |
| _u | The initial 4-velocity |
|
virtual |
| void Particle::propagate | ( | double | step = 0.0 | ) |
Propagates the particle.
| step | The simulation step - corresponds to the change in proper time. |
Changes the position and 4-velocity.
| _p | The new position |
| _u | The new 4-velocity |
Reimplemented in Entity.
|
virtual |
1.8.3.1