Skip to main content

Friction and Lattice Analysis of Kinetics and Energetics: statics and overdamped Langevin dynamics of a 2D rigid cluster over a substrate.

Project description

logo

FLAKE — Friction and Lattice Analysis of Kinetics and Energetics

FLAKE computes the interlocking potential between a periodic substrate and a finite-size adsorbate, in the rigid approximation. The adsorbate is treated as a rigid body at a given orientation $\theta$ and center of mass (CM) position $x_\mathrm{cm}, y_\mathrm{cm}$.

This package implements the physical system and automates routines needed to study the statics, dynamics, and scaling laws of friction at nanoscale interfaces. It was developed at SISSA, Trieste, Italy in the group of Prof. Erio Tosatti and Andrea Vanossi, based on experiments by Xin Cao and Clemens Bechinger at the University of Konstanz, Germany.

See the documentation for more details.

Installation

pip install flake-rigid

Or clone and install in editable mode (for development):

git clone https://github.com/LamaKing/flake_rigid.git
cd flake_rigid
pip install -e ".[dev]"

Numba will JIT-compile the hot loops on first run; subsequent runs are fast.

Quick start

# Compute a translational energy map
flake map -i my_params.yaml --grid grid_trasl.yaml -o map_trasl.h5

# Find the minimum energy path between two configurations
flake string -i my_params.yaml --cfg string_roto.yaml -o mep.h5

# Run a sweep of MD trajectories over a force grid
flake sweep -i my_params.yaml --spec sweep_Fx.yaml

See test_cli_and_phys/ for working YAML examples of all three subcommands.

Substrate

The substrate is defined as a periodic function, either a superposition of plane waves or a potential well repeated on a Bravais lattice. The relevant module is flake.substrate.

For a plane-wave (sinusoidal) substrate, the substrate is defined by a set of wave vectors: the number of vectors controls the symmetry and the length sets the spacing [1]. For a lattice of wells, the substrate is defined by the well shape parameters and the lattice vectors [2–5]. The substrate can be decorated with a multi-site basis.

See examples/0-Substrate_types.ipynb for details.

Cluster

The cluster is a collection of points (optionally decorated with a basis) belonging to a 2D Bravais lattice, cut to a given shape (circle, hexagon, rectangle, triangle, ellipse, or arbitrary polygon via Shapely). The relevant module is flake.cluster.

See examples/1-Cluster_creation.ipynb for details.

Static maps

The module flake.maps provides translational, rotational, and roto-translational energy landscapes:

  • Translational: $E(x_\mathrm{cm}, y_\mathrm{cm})$ at fixed $\theta$
  • Rotational: $E(\theta)$ at fixed CM
  • Roto-translational: global minimum search in $(x_\mathrm{cm}, y_\mathrm{cm}, \theta)$ space

See examples/2-Cluster_on_substrate.ipynb for details.

Barrier finding

The minimum energy path (MEP) between two configurations in $(x_\mathrm{cm}, y_\mathrm{cm})$ or $(x_\mathrm{cm}, y_\mathrm{cm}, \theta)$ space is found with the string method [6] implemented in flake.string_method. The maximum energy along the MEP gives the static friction force $F_s = \max_s |\nabla E|$.

See examples/3-Barrier_from_string.ipynb for details.

Molecular dynamics

flake.dynamics.run_md integrates the overdamped Langevin equation:

$$\eta_t \frac{d\mathbf{r}\mathrm{cm}}{dt} = \mathbf{F}\mathrm{ext} + \mathbf{F}_\mathrm{sub} + \boldsymbol{\xi}_t$$

$$\eta_r \frac{d\theta}{dt} = \tau_\mathrm{ext} + \tau_\mathrm{sub} + \xi_r$$

The drag coefficients $\eta_t = N\eta$ and $\eta_r = \eta \sum_i r_i^2$ are computed from the cluster geometry by calc_cluster_langevin. Noise satisfies the fluctuation-dissipation theorem: $\langle \xi_i \xi_j \rangle = 2k_BT\eta_i,\delta_{ij}\delta(t-t')$. Sweep infrastructure (flake.sweep) parallelises trajectories over a grid of external drives.

See examples/4-Dynamics.ipynb for depinning sweeps.

Scaling laws

examples/5-Scaling_laws.ipynb demonstrates:

  • Commensurate contact: $F_s \propto N$ (all particles contribute coherently)
  • Incommensurate contact: $F_s \propto \sqrt{N}$ (structural superlubricity)

Units

No internal units conversion is performed; the user chooses a coherent set.

Colloidal experiments [2, 3]:

  • energy: zJ = $10^{-21}$ J
  • length: $\mu$m
  • mass: fg = $10^{-15}$ g
  • force: fN, torque: fN·$\mu$m, time: ms

Nanoscale / AFM experiments:

  • energy: eV
  • length: Å
  • force: eV/Å $\approx$ 1.6 nN

References

  1. Vanossi, Manini, Tosatti. Proc. Natl. Acad. Sci. 109, 16429 (2012). https://doi.org/10.1073/pnas.1213930109
  2. Panizon, Silva et al. Nanoscale 15, 1299 (2023). https://doi.org/10.1039/D2NR04532J
  3. Cao, Silva et al. Phys. Rev. X 12, 021059 (2022). https://doi.org/10.1103/PhysRevX.12.021059
  4. Cao et al. Nature Physics 15, 776 (2019). https://doi.org/10.1038/s41567-019-0515-7
  5. Cao et al. Phys. Rev. E 103, 012606 (2021). https://doi.org/10.1103/PhysRevE.103.012606
  6. E, Ren, Vanden-Eijnden. J. Chem. Phys. 126, 164103 (2007). https://doi.org/10.1063/1.2720838

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flake_rigid-0.1.0.tar.gz (82.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flake_rigid-0.1.0-py3-none-any.whl (62.5 kB view details)

Uploaded Python 3

File details

Details for the file flake_rigid-0.1.0.tar.gz.

File metadata

  • Download URL: flake_rigid-0.1.0.tar.gz
  • Upload date:
  • Size: 82.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for flake_rigid-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59f25251c1c72b6c463b4785e523e2b9682126688b562a49a482759293cacf28
MD5 00f0d6e0566047f92bfdd03049f90792
BLAKE2b-256 87eb94766805532eec280eb4aa016385b4e1ab741b4b6410920110b4f126b331

See more details on using hashes here.

File details

Details for the file flake_rigid-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: flake_rigid-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 62.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for flake_rigid-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 07500cc322c938262858a6108eab44a9107af668c061d7408b094f421f244575
MD5 b0f16f166cee31833bc527b85de09a39
BLAKE2b-256 373b7aebfeb9d91a0194a43521bf9f3bf448f016a930767221fff2d51d5e4670

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page