# Penning Trap Simulation: include/Particle.hpp Source File

Loading...
Searching...
No Matches
Particle.hpp
Go to the documentation of this file.
#ifndef __PARTICLE__
#define __PARTICLE__
#include <armadillo>
#include "typedefs.hpp"
class Particle {
private:
double q;
double m;
vec_3d r_vec;
vec_3d v_vec;
public:
Particle(double q, double m, vec_3d r_vec, vec_3d v_vec);
friend class PenningTrap;
};
#endif
Particle
A class that holds attributes of a particle.
Definition: Particle.hpp:21
Particle::q
double q
Charge.
Definition: Particle.hpp:23
Particle::v_vec
vec_3d v_vec
velocity
Definition: Particle.hpp:26
Particle::m
double m
Mass.
Definition: Particle.hpp:24
Particle::r_vec
vec_3d r_vec
position
Definition: Particle.hpp:25
PenningTrap
A class that simulates a Penning trap.
Definition: PenningTrap.hpp:31
typedefs.hpp
Useful typedefs for cleaner code.
vec_3d
arma::vec::fixed< 3 > vec_3d
Typedef for a fixed 3d arma vector.
Definition: typedefs.hpp:36