Molecular Dynamics Simulation
1.0
src
physics
pairwiseforces
LennardJonesForce.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
physics/pairwiseforces/PairwiseForceSource.h
"
4
10
class
LennardJonesForce
:
public
PairwiseForceSource
{
11
public
:
21
std::array<double, 3UL>
calculateForce
(
const
Particle
& p,
const
Particle
& q)
const override
;
22
26
explicit
operator
std::string()
const override
;
27
};
PairwiseForceSource.h
LennardJonesForce
Class to calculate the Lennard-Jones force between particles. Implements the interface PairwiseForceS...
Definition:
LennardJonesForce.h:10
LennardJonesForce::calculateForce
std::array< double, 3UL > calculateForce(const Particle &p, const Particle &q) const override
Calculates the Lennard-Jones forces between two particles.
Definition:
LennardJonesForce.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