Penning Trap Simulation
Simulate particle behavior inside a Penning Trap
Loading...
Searching...
No Matches
Particle Class Reference

A class that holds attributes of a particle. More...

#include <Particle.hpp>

Public Member Functions

 Particle (double q, double m, vec_3d r_vec, vec_3d v_vec)
 Initialize the particle.
 

Private Attributes

double q
 Charge.
 
double m
 Mass.
 
vec_3d r_vec
 position
 
vec_3d v_vec
 velocity
 

Friends

class PenningTrap
 Make private attributes available for PenningTrap.
 

Detailed Description

A class that holds attributes of a particle.

Definition at line 21 of file Particle.hpp.

Constructor & Destructor Documentation

◆ Particle()

Particle::Particle ( double  q,
double  m,
vec_3d  r_vec,
vec_3d  v_vec 
)

Initialize the particle.

Initialize the particle with a charge, mass, position and velocity.

Parameters
qThe charge of the particle
mThe mass of the particle
r_vecThe initial position of the particle
v_vecThe initial velocity of the particle

Definition at line 15 of file Particle.cpp.

Friends And Related Function Documentation

◆ PenningTrap

friend class PenningTrap
friend

Make private attributes available for PenningTrap.

Definition at line 43 of file Particle.hpp.

Member Data Documentation

◆ m

double Particle::m
private

Mass.

Definition at line 24 of file Particle.hpp.

◆ q

double Particle::q
private

Charge.

Definition at line 23 of file Particle.hpp.

◆ r_vec

vec_3d Particle::r_vec
private

position

Definition at line 25 of file Particle.hpp.

◆ v_vec

vec_3d Particle::v_vec
private

velocity

Definition at line 26 of file Particle.hpp.


The documentation for this class was generated from the following files: