| 
    Molecular Dynamics Simulation
    1.0
    
   | 
 
Class for a constant force source. More...
#include <TargettedTemporaryConstantForce.h>


Public Member Functions | |
| 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.  More... | |
| 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.  More... | |
| operator std::string () const override | |
| Conversion from a force source object to a string containing its name.  More... | |
  Public Member Functions inherited from TargettedForceSource | |
| TargettedForceSource (const std::vector< size_t > &target_indices) | |
| virtual | ~TargettedForceSource ()=default | 
| Virtual destructor for correct cleanup of derived classes.  More... | |
Private Attributes | |
| const std::array< double, 3 > | force | 
| Force exerted on the particles.  More... | |
| const double | start_time | 
| Start Time within the simulation from which on the force is exerted.  More... | |
| const double | end_time | 
| End Time within the simulation until which the force is exerted.  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from TargettedForceSource | |
| std::vector< size_t > | target_indices | 
| Indices of the particles on which the force is applied.  More... | |
Class for a constant force source.
Class for a constant force source, which exerts a constant force on the particles with the specified indices.
Definition at line 10 of file TargettedTemporaryConstantForce.h.
| TargettedTemporaryConstantForce::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.
| targetIndices | Indices of the particles on which the force is applied | 
| force | Force exerted on the particles | 
| start_time | Time for which the force is exerted | 
| end_time | Time until which the force is exerted | 
Definition at line 7 of file TargettedTemporaryConstantForce.cpp.
      
  | 
  overridevirtual | 
Applies the force directly to the particles with the specified indices within the vector.
| particle_vector | Particle vector on which the force is applied | 
| curr_simulation_time | Current simulation time | 
Calculates and applies the force exerted on the particles identified by index within the given particle vector.
Implements TargettedForceSource.
Definition at line 11 of file TargettedTemporaryConstantForce.cpp.
      
  | 
  explicitoverridevirtual | 
Conversion from a force source object to a string containing its name.
Implements TargettedForceSource.
Definition at line 22 of file TargettedTemporaryConstantForce.cpp.
      
  | 
  private | 
End Time within the simulation until which the force is exerted.
Definition at line 25 of file TargettedTemporaryConstantForce.h.
      
  | 
  private | 
Force exerted on the particles.
Definition at line 15 of file TargettedTemporaryConstantForce.h.
      
  | 
  private | 
Start Time within the simulation from which on the force is exerted.
Definition at line 20 of file TargettedTemporaryConstantForce.h.