Implement methods to simulate and write to file

This commit is contained in:
2023-10-13 00:52:30 +02:00
parent 13c662c148
commit 720f1815d2
3 changed files with 63 additions and 79 deletions

View File

@@ -36,6 +36,10 @@ private:
double V_0; ///< Applied potential
double d; ///< Characteristic dimension
std::vector<Particle> particles; ///< The particles in the Penning trap
arma::vec::fixed<3> *k_v;
arma::vec::fixed<3> *k_r;
std::function<arma::vec(int, double)> v_funcs[4];
std::function<arma::vec(int, double)> r_funcs[4];
public:
/** @brief Set B_0, V_0 and d.