Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
Loading...
Searching...
No Matches
Particle.hpp
Go to the documentation of this file.
1
12
#ifndef __PARTICLE__
13
#define __PARTICLE__
14
15
#include <armadillo>
16
19
class
Particle
{
20
private
:
21
double
q
;
22
double
m
;
23
arma::vec::fixed<3>
r_vec
;
24
arma::vec::fixed<3>
v_vec
;
25
26
public
:
32
Particle
(
double
q
,
double
m
,
33
arma::vec::fixed<3>
r_vec
,
34
arma::vec::fixed<3>
v_vec
);
35
38
friend
class
PenningTrap
;
39
};
40
41
#endif
Particle
A class that holds attributes of a particle.
Definition:
Particle.hpp:19
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
PenningTrap
A class that simulates a Penning trap.
Definition:
PenningTrap.hpp:25
include
Particle.hpp
Generated by
1.9.6