|
Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
|
A class that holds attributes of a particle. More...
#include <Particle.hpp>
Public Member Functions | |
| Particle (vec3 r_vec, vec3 v_vec, double q=CA_CHARGE, double m=CA_MASS) | |
| Initialize the particle. | |
Private Attributes | |
| vec3 | r_vec |
| position | |
| vec3 | v_vec |
| velocity | |
| double | q |
| Charge. | |
| double | m |
| Mass. | |
Friends | |
| class | PenningTrap |
| Make private attributes available for PenningTrap. | |
A class that holds attributes of a particle.
Definition at line 22 of file Particle.hpp.
Initialize the particle.
Initialize the particle with a charge, mass, position and velocity.
| q | The charge of the particle |
| m | The mass of the particle |
| r_vec | The initial position of the particle |
| v_vec | The initial velocity of the particle |
Definition at line 15 of file Particle.cpp.
|
friend |
Make private attributes available for PenningTrap.
Definition at line 45 of file Particle.hpp.
|
private |
Mass.
Definition at line 28 of file Particle.hpp.
|
private |
Charge.
Definition at line 27 of file Particle.hpp.
|
private |
position
Definition at line 25 of file Particle.hpp.
|
private |
velocity
Definition at line 26 of file Particle.hpp.