Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
Loading...
Searching...
No Matches
Particle.cpp
Go to the documentation of this file.
1
13#include "Particle.hpp"
14
15Particle::Particle(vec3 r_vec, vec3 v_vec, double q, double m)
16{
17 // Giving the particle its properties
18 this->r_vec = r_vec;
19 this->v_vec = v_vec;
20 this->q = q;
21 this->m = m;
22}
A class that holds the properties of a particle.
vec3 r_vec
position
Definition: Particle.hpp:25
vec3 v_vec
velocity
Definition: Particle.hpp:26
double q
Charge.
Definition: Particle.hpp:27
double m
Mass.
Definition: Particle.hpp:28
Particle(vec3 r_vec, vec3 v_vec, double q=CA_CHARGE, double m=CA_MASS)
Initialize the particle.
Definition: Particle.cpp:15
arma::vec::fixed< 3 > vec3
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:23