Loading...
Searching...
No Matches
Particle.hpp
Go to the documentation of this file.
#ifndef __PARTICLE__
#define __PARTICLE__
#include <armadillo>
class Particle {
private:
double q;
double m;
arma::vec::fixed<3> r_vec;
arma::vec::fixed<3> v_vec;
public:
Particle(double q, double m,
arma::vec::fixed<3> r_vec,
arma::vec::fixed<3> v_vec);
friend class PenningTrap;
};
#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:29