15     const std::array<double, 3> 
force;
 
   47     void applyForce(std::vector<Particle>& particle_vector, 
double curr_simulation_time) 
const override;
 
   52     explicit operator std::string() 
const override;
 
Interface for targetted force source classes.
 
Class for a constant force source.
 
const double end_time
End Time within the simulation until which the force is exerted.
 
TargettedTemporaryConstantForce(const std::vector< size_t > &targetIndices, const std::array< double, 3 > &force, double start_time, double end_time)
Construct a new Targetted Temporary Constant Force object.
 
void applyForce(std::vector< Particle > &particle_vector, double curr_simulation_time) const override
Applies the force directly to the particles with the specified indices within the vector.
 
const std::array< double, 3 > force
Force exerted on the particles.
 
const double start_time
Start Time within the simulation from which on the force is exerted.