Molecular Dynamics Simulation  1.0
GravitationalForce.h
Go to the documentation of this file.
1 #pragma once
2 
4 
12  public:
22  std::array<double, 3UL> calculateForce(const Particle& p, const Particle& q) const override;
23 
27  explicit operator std::string() const override;
28 };
Class to calculate gravitational forces between particles. Implements the interface PairwiseForceSour...
std::array< double, 3UL > calculateForce(const Particle &p, const Particle &q) const override
Calculates the gravitational forces between two particles.
Interface for pairwise force source classes.
Class to represent a particle.
Definition: Particle.h:26