#include "autopas/utils/ConstexprMath.h"
Go to the source code of this file.
Functions | |
| constexpr double | calculateLJPotential (const std::array< double, 3 > &posI, const std::array< double, 3 > &posJ, double cutoff, double sigma, double epsilon) | 
| Calculates the potential energy between particle i and j using the Lennard Jones 12-6 potential.   | |
| constexpr std::array< double, 3 > | calculateLJForce (const std::array< double, 3 > &posI, const std::array< double, 3 > &posJ, double cutoff, double sigma, double epsilon) | 
| Calculates the force exerted by particle j on particle i using the 12-6 potential of Lennard Jones.   | |
| constexpr std::array< double, 3 > | calculateLJVirial (const std::array< double, 3 > &posI, const std::array< double, 3 > &posJ, double cutoff, double sigma, double epsilon) | 
| Calculates the virial between particle i and j using the Lennard Jones 12-6 potential.   | |
| constexpr double | calculateLJVirialTotal (const std::array< double, 3 > &posI, const std::array< double, 3 > &posJ, double cutoff, double sigma, double epsilon) | 
| Calculates the sum of all components of the virial between particle i and j using the Lennard Jones 12-6 potential.   | |
A simple reference implementation of the lennard jones potential to calculate expected forces
      
  | 
  constexpr | 
Calculates the force exerted by particle j on particle i using the 12-6 potential of Lennard Jones.
| posI | coordinate of the first particle | 
| posJ | coordinate of the second particle | 
| cutoff | the cutoff distance in wich we consider interactions | 
| sigma | sigma value for particles | 
| epsilon | epsilon value for particles | 
      
  | 
  constexpr | 
Calculates the potential energy between particle i and j using the Lennard Jones 12-6 potential.
| posI | coordinate of the first particle | 
| posJ | coordinate of the second particle | 
| cutoff | the cutoff distance in wich we consider interactions | 
| sigma | sigma value for particles | 
| epsilon | epsilon value for particles | 
      
  | 
  constexpr | 
Calculates the virial between particle i and j using the Lennard Jones 12-6 potential.
| posI | coordinate of the first particle | 
| posJ | coordinate of the second particle | 
| cutoff | the cutoff distance in wich we consider interactions | 
| sigma | sigma value for particles | 
| epsilon | epsilon value for particles | 
      
  | 
  constexpr | 
Calculates the sum of all components of the virial between particle i and j using the Lennard Jones 12-6 potential.
| posI | coordinate of the first particle | 
| posJ | coordinate of the second particle | 
| cutoff | the cutoff distance in wich we consider interactions | 
| sigma | sigma value for particles | 
| epsilon | epsilon value for particles |