Add particle_interaction parameter

This commit is contained in:
2023-10-08 20:29:41 +02:00
parent d2047e43e0
commit 8df35f90f5
2 changed files with 72 additions and 14 deletions

View File

@@ -84,13 +84,18 @@ public:
/** @brief Go forward one timestep using the RK4 method
* */
void evolve_RK4(double dt);
void evolve_RK4(double dt, bool particle_interaction = true);
/** @brief Go forward one timestep using the forward Euler method
* */
void evolve_forward_euler(double dt);
void evolve_forward_euler(double dt, bool particle_interaction = true);
sim_arr simulate(double time, int steps, std::string method = "rk4");
sim_arr simulate(double time, int steps, std::string method = "rk4",
bool particle_interaction = true);
void write_simulation_to_dir(std::string path, double time, int steps,
std::string method = "rk4",
bool particle_interaction = true);
};
#endif