Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@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 4 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
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.