Benchmark AI / Public workspace

SciCode / 51.1 / Based on lennard jones potential with potential well depth epislon that reaches…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

step background

Background The Lennard-Jones potential models soft repulsive and attractive (van der Waals) interactions. Hence, the Lennard-Jones potential describes electronically neutral atoms or molecules. The commonly used expression for the Lennard-Jones potential is: VLJ(r)=4ε[(σr)12(σr)6]V_{\mathrm{LJ}}(r)=4 \varepsilon\left[\left(\frac{\sigma}{r}\right)^{12}-\left(\frac{\sigma}{r}\right)^6\right] where r is the distance between two interacting particles, epsilon is the depth of the potential well (usually referred to as 'dispersion energy'), and sigma is the distance at which the particle-particle potential energy V is zero (often referred to as 'size of the particle'). To get force, we just use the negative gradiant of Lennard-Jones potential (by definition): F=Ur=(Ux;Uy;Uz)\vec{F}=-\frac{\partial U}{\partial \vec{r}}=-\left(\frac{\partial U}{\partial x} ; \frac{\partial U}{\partial y} ; \frac{\partial U}{\partial z}\right)
Plain-text mathematical notation (without MathML)
Background
The Lennard-Jones potential models soft repulsive and attractive (van der Waals) interactions. Hence, the Lennard-Jones potential describes electronically neutral atoms or molecules. The commonly used expression for the Lennard-Jones potential is:

V_(LJ)(r)=4ε[((σ)/(r))¹²−((σ)/(r))⁶]

where r is the distance between two interacting particles, epsilon is the depth of the potential well (usually referred to as 'dispersion energy'), and sigma is the distance at which the particle-particle potential energy V is zero (often referred to as 'size of the particle').

To get force, we just use the negative gradiant of Lennard-Jones potential (by definition):

(F)→=−(∂U)/(∂(r)→)=−((∂U)/(∂x);(∂U)/(∂y);(∂U)/(∂z))
Original LaTeX notation
Background
The Lennard-Jones potential models soft repulsive and attractive (van der Waals) interactions. Hence, the Lennard-Jones potential describes electronically neutral atoms or molecules. The commonly used expression for the Lennard-Jones potential is:

$V_{\mathrm{LJ}}(r)=4 \varepsilon\left[\left(\frac{\sigma}{r}\right)^{12}-\left(\frac{\sigma}{r}\right)^6\right]$

where r is the distance between two interacting particles, epsilon is the depth of the potential well (usually referred to as 'dispersion energy'), and sigma is the distance at which the particle-particle potential energy V is zero (often referred to as 'size of the particle').

To get force, we just use the negative gradiant of Lennard-Jones potential (by definition):

$\vec{F}=-\frac{\partial U}{\partial \vec{r}}=-\left(\frac{\partial U}{\partial x} ; \frac{\partial U}{\partial y} ; \frac{\partial U}{\partial z}\right)$

step description prompt

Based on lennard jones potential with potential well depth epislon that reaches zero at distance sigma, write a function that calculates the forces between two particles whose three dimensional displacement is r. The inputs of the function contain a float sigma, a float epsilon and r, which is a 1 by 3 array of float numbers. The output is force, which is a 1 by 3 array of float numbers.

Discussion

Discussion

No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Source and history

Official source

initial import