Molecular Dynamics Simulation
1.0
src
physics
pairwiseforces
GravitationalForce.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
physics/pairwiseforces/PairwiseForceSource.h
"
4
11
class
GravitationalForce
:
public
PairwiseForceSource
{
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
};
PairwiseForceSource.h
GravitationalForce
Class to calculate gravitational forces between particles. Implements the interface PairwiseForceSour...
Definition:
GravitationalForce.h:11
GravitationalForce::calculateForce
std::array< double, 3UL > calculateForce(const Particle &p, const Particle &q) const override
Calculates the gravitational forces between two particles.
Definition:
GravitationalForce.cpp:5
PairwiseForceSource
Interface for pairwise force source classes.
Definition:
PairwiseForceSource.h:16
Particle
Class to represent a particle.
Definition:
Particle.h:26
Generated by
1.9.1