Molecular Dynamics Simulation
1.0
src
physics
pairwiseforces
LennardJonesRepulsiveForce.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
physics/pairwiseforces/PairwiseForceSource.h
"
4
11
class
LennardJonesRepulsiveForce
:
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
LennardJonesRepulsiveForce
Class to calculate the only the repulisve part of the Lennard-Jones force between particles....
Definition:
LennardJonesRepulsiveForce.h:11
LennardJonesRepulsiveForce::calculateForce
std::array< double, 3UL > calculateForce(const Particle &p, const Particle &q) const override
Calculates only the repulsive part of the Lennard-Jones forces between two particles.
Definition:
LennardJonesRepulsiveForce.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