Benchmark AI / Public workspace
SciCode / 51.4 / Write a function that runs MD simulation for a system of atoms interacting…
Problem
Answer published by the source. Consult the official source to check your work against its answer.
step background
step description prompt
Write a function that runs MD simulation for a system of atoms interacting through Lennard Jones potential. The function that runs Velocity Verlet algorithm to integrate the positions and velocities of atoms interacting through Lennard Jones Potential forward for one time step according to Newton's Second Law is given. The inputs of the function contain a float sigma, a float epsilon, init_positions, which is a N (N is the nubmer of atoms) by 3 array of float, init_velocities, which is a N by 3 array of float numbers, a float dt, a float m, and a float num_steps. The outputs are curr_positions and curr_velocities, which are both N by 3 array of float numbers.
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
initial import