Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atomistics/lennard-jones-pairwise-js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomistics/lennard-jones-pairwise-js

Pairwise lennard-jones potential in javascript.

  • 1.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

lennard-jones-pairwise-js

Pairwise Lennard-Jones potential written in javascript.

API

const lennardJones = require('lennard-jones-pairwise-js');

const lj = lennardJones({
  depth: 1.0,
  length: 1.0,
  cutoff: undefined
});
OptionTypeDefaultDescription
depthfloat1.0The depth of the potential well.
lengthfloat1.0The distance at which the potential is the smallest value.
cutofffloatundefinedDisabled when undefined. When defined, is the distance at which the potential is forced to zero.

Returns a function that calculates the Lennard-Jones potential and force at a given distance:

const result = lj(distance);
ParameterTypeDescription
distancefloatThe distance at which to calculate the Lennard-Jones potential.

Returns an object containing the energy and force at the given distance:

NameTypeDescription
result.energyfloatThe energy of the potential at the given distance.
result.forcefloatThe force of the potential at the given distance.

Keywords

FAQs

Package last updated on 01 Sep 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc