![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@atomistics/pairwise-potential
Advanced tools
Takes a pairwise function and returns a function that can calculate the energy from a set of 3D positions.
Takes a pairwise function and returns a function that can calculate the energy from a set of 3D positions.
const LJ = require("@atomistics/lennard-jones-pairwise-js");
const PairwisePotential = require("@atomistics/pairwise-potential");
const ljp = PairwisePotential(LJ());
console.log(ljp([0,0,0, 1.01,0,0]));
> { energy: -0.9966412452432595,
> force: Float32Array [ 0.6486654877662659, 0, 0, -0.6486654877662659, 0, 0 ] }
const PairwisePotential = require('@atomistics/pairwise-potential');
const potential = PairwisePotential(pairwise)
Parameter | Type | Description |
---|---|---|
pairwise | pairwise potential | A pairwise potential like @atomistics/lennard-jones-pairwise-js |
Returns a function that calculates the potential energy of and force on from a set of positions:
const result = potential(positions);
Parameter | Type | Description |
---|---|---|
positions | array | A set of 3D positions in a flat array of floats, e.g., [0.0, 0.0, 0.0, 1.0, 0.0, 1.0] |
Returns an object containing the energy and force:
Name | Type | Description |
---|---|---|
result.energy | float | The energy of the potential. |
result.force | float | The force of the potential. |
FAQs
Takes a pairwise function and returns a function that can calculate the energy from a set of 3D positions.
The npm package @atomistics/pairwise-potential receives a total of 1 weekly downloads. As such, @atomistics/pairwise-potential popularity was classified as not popular.
We found that @atomistics/pairwise-potential demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.