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
16
Particle::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
}
Particle.hpp
A class that holds the properties of a particle.
Particle::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
Particle::v_vec
arma::vec::fixed< 3 > v_vec
velocity
Definition:
Particle.hpp:24
Particle::q
double q
Charge.
Definition:
Particle.hpp:21
Particle::r_vec
arma::vec::fixed< 3 > r_vec
position
Definition:
Particle.hpp:23
Particle::m
double m
Mass.
Definition:
Particle.hpp:22
src
Particle.cpp
Generated by
1.9.6