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