Particle base class More...
#include <particles.hpp>
Public Member Functions | |
| particle_status_e | get_status () |
| Return particle status. More... | |
| void | set_status (particle_status_e status) |
| Set particle status. More... | |
| double | IQ () const |
| Return current or charge carried by trajectory or particle cloud [A/C]. More... | |
| double | q () const |
| Return particle charge (q) [C]. More... | |
| double | m () const |
| Return particle mass (m) [kg]. More... | |
| double | qm () const |
| Return charge per mass ratio (q/m) [C/kg]. More... | |
| void | save (std::ostream &s) const |
| Saves data to stream. More... | |
Protected Member Functions | |
| ParticleBase (double IQ, double q, double m) | |
| ParticleBase (std::istream &s) | |
| Constructor for loading particle from a file. More... | |
Protected Attributes | |
| particle_status_e | _status |
| Status of particle. More... | |
| double | _IQ |
| Current or charge of particle. More... | |
| double | _q |
| Charge q [C]. More... | |
| double | _m |
| Mass m [kg]. More... | |
Detailed Description
Particle base class
A parent class for common (non-templated) parts of Particle classes.
Constructor & Destructor Documentation
|
inlineprotected |
Constructor for loading particle from a file.
Member Function Documentation
|
inline |
Return particle status.
|
inline |
Return current or charge carried by trajectory or particle cloud [A/C].
With MODE_2D, this in A/m or C/m.
|
inline |
Return particle mass (m) [kg].
|
inline |
Return particle charge (q) [C].
|
inline |
Return charge per mass ratio (q/m) [C/kg].
|
inline |
Saves data to stream.
|
inline |
Set particle status.
Member Data Documentation
|
protected |
Current or charge of particle.
The sign is forced to be same as the sign of q/m.
In time-dependent simulations particles are localized and IQ is charge, in time-independent simulation IQ is current. In case of 2D simulations this is in units A/m or C/m. In 3D and cylindrically symmetric simulations unit is A or C.
|
protected |
Mass m [kg].
|
protected |
Charge q [C].
|
protected |
Status of particle.
The documentation for this class was generated from the following file: