#include <LennardJonesForce.h>
|
| | LennardJonesForce () |
| |
| std::array< double, 3 > | compute (Particle &target, Particle &source) override |
| | Actual computation of the Lennard-Jones force occurring. More...
|
| |
| std::array< double, 3 > | computeOptimized (Particle &target, Particle &source, std::array< double, 3 > &difference, double distance) override |
| | Implements the optimization we presented as our second idea. At the moment this is dead code, because we have not been able yet to make it compatible with our current program structure and only integrated it once when doing the time measurements. More...
|
| |
| virtual | ~Force ()=default |
| |
◆ LennardJonesForce()
| LennardJonesForce::LennardJonesForce |
( |
| ) |
|
|
default |
◆ compute()
| std::array< double, 3 > LennardJonesForce::compute |
( |
Particle & |
target, |
|
|
Particle & |
source |
|
) |
| |
|
overridevirtual |
Actual computation of the Lennard-Jones force occurring.
- Parameters
-
| target | Particle on which the Lennard-Jones force acts. |
| source | Particle which exerts the Lennard-Jones force on the target. |
- Returns
- 3 dimensional force vector.
Computation of the Lennard-Jones force which exerts the source on the target.
Implements Force.
◆ computeOptimized()
| std::array< double, 3 > LennardJonesForce::computeOptimized |
( |
Particle & |
target, |
|
|
Particle & |
source, |
|
|
std::array< double, 3 > & |
difference, |
|
|
double |
distance |
|
) |
| |
|
overridevirtual |
Implements the optimization we presented as our second idea. At the moment this is dead code, because we have not been able yet to make it compatible with our current program structure and only integrated it once when doing the time measurements.
Implements Force.
The documentation for this class was generated from the following files:
- /home/runner/work/MolSim/MolSim/src/moleculeSimulator/forceCalculation/lennardJones/LennardJonesForce.h
- /home/runner/work/MolSim/MolSim/src/moleculeSimulator/forceCalculation/lennardJones/LennardJonesForce.cpp