get_lj_scaling_factors

mdhelper.openmm.unit.get_lj_scaling_factors(bases: dict[str, Quantity], other: dict[str, list] = {}) dict[str, Quantity][source]

Computes scaling factors for Lennard-Jones reduced units.

By default, the following scaling factors are calculated:

  • "molar_energy": NAϵ

  • "time": mσ2/ϵ

  • "velocity": σ/τ

  • "force": ϵ/σ

  • "temperature": ϵ/kBT

  • "pressure": ϵ/σ3

  • "dynamic_viscosity": ϵτ/σ3

  • "charge": 4πε0σϵ

  • "dipole": 4πε0σ3ϵ

  • "electric_field": ϵ/(4πε0σ3)

  • "mass_density": m/σ3

Parameters:
basesdict

Fundamental quantities: molar mass (m), length (σ), and energy (ϵ).

Format: {"mass": <openmm.unit.Quantity>, "length": <openmm.unit.Quantity>, "energy": <openmm.unit.Quantity>}.

Reference units: g/mol, nm, and kJ/mol.

otherdict, optional

Other scaling factors to compute. The key should be the name of the scaling factor, and the value should contain tuple objects with the names of bases or default scaling factors and their powers.

Example: {"diffusivity": (("length", 2), ("time", -1))}.

Returns:
scalesdict

Scaling factors.