arrow
Return

An object oriented Python interface for atomistic simulations

delete2016-01-01
delete1
delete
OA
AI
T
Teemu Hynninen *
L
Lauri Himanen
P
Parkkinen, V.
T
Tiziana Musso
Jukka Corander cover
Jukka Corander (Jukka Corander)
Adam S. Foster cover
Adam S. Foster (Adam S. Foster)
DOI:10.1016/j.cpc.2015.09.010delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Programmable simulation environments allow one to monitor and control calculations efficiently and automatically before, during, and after runtime. Environments directly accessible in a programming environment can be interfaced with powerful external analysis tools and extensions to enhance the functionality of the core program, and by incorporating a flexible object based structure, the environments make building and analysing computational setups intuitive. In this work, we present a classical atomistic force field with an interface written in Python language. The program is an extension for an existing object based atomistic simulation environment. Program summary Program title: Pysic Catalogue identifier: AEYE_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEYE_v1_0.html Program obtainable from: CPC Program Library, Queen's University, Belfast, N. Ireland. Licensing provisions: Standard CPC licence, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 74.743. No. of bytes in distributed program, including test data, etc.: 758.903. Distribution format: tar.gz Programming language: Python, Fortran 90. Computer: Program has been tested on Linux and OS X workstations, and a Cray supercomputer. Operating system: Linux, Unix, OS X, Windows. RAM: Depends on the size of system. Classification: 7.7, 16.9, 4.14. External routines: Atomic Simulation Environment, NumPy necessary. Scipy, Matplotlib, HDF5, h5py recommended. The random number generator, Mersenne Twister, is included from the source: http://www.math.sci.hiroshima-u.ac.jp/similar to m-mat/MT/VERSIONS/FORTRAN/mt95.f90 Nature of problem: Automated simulation control, interaction tuning and an intuitive interface for running atomistic simulations. Solution method: Object oriented interface to a flexible classical potential. Additional comments: User guide: http://thynnine.githublo/pysic/ Running time: Depends on the size of system. (C) 2015 Elsevier B.V. All rights reserved.
Keywords:
Atomistic simulations
Classical potential
Object oriented
Python
Fortran

AI Summary

Brief Overview

In January 2016, Tiziana Musso; Jukka Corander; Adam S. Foster; Teemu Hynninen; Lauri Himanen; Ville Parkkinen published the paper “An object oriented Python interface for atomistic simulations” online in COMPUTER PHYSICS COMMUNICATIONS. This study developed Pysic, an object-oriented programming interface written in Python, which addresses the key challenges of high operational barriers and the difficulty of modifying interaction models in traditional atomistic simulation software. By encapsulating interatomic forces (such as attraction, repulsion, and charge effects) into freely combinable, modular computing blocks and automatically invoking high-speed underlying Fortran programs to perform calculations, it achieves a unification of intuitive modeling and efficient computation, significantly reducing the technical difficulty for researchers and students to design, debug, and analyze materials simulation experiments. It provides an easy-to-use, transparent, and scalable new tool for teaching and cutting-edge research in computational materials science.

Research Abstract

Computer simulation at the atomic scale is a core means of understanding material properties (such as strength, conductivity, and reactivity), but traditional simulation software often operates like a “black box”: users must manually write lengthy configuration files, and even minor parameter errors lead to distorted results. Although existing tools are powerful, they are difficult to adjust flexibly for interatomic interaction rules—for example, to test “whether the structure becomes more symmetric after weakening the silicon-oxygen bond by 10%”, one has to rewrite the entire codebase. This study proposes the Pysic interface, which abstracts each type of atomic force (such as spring-like attraction, charge attraction, and multi-atom cooperative effects) into independent, adjustable Python objects, supporting free assembly and real-time debugging like building with LEGO. The results show that by fine-tuning a single parameter, the study successfully corrected an abnormally asymmetric structure in a silicon oxide cluster, making the simulation results highly consistent with first-principles calculations. This not only makes new material design more reliable but also enables undergraduate students to complete modeling tasks in one hour that previously required weeks.

Background

The core advantage of atomistic simulation technology lies in its ability to “see how atoms move without relying on experiments”, which is widely used in the R&D of battery materials, catalysts, and semiconductors. However, most existing mainstream software is customized by physicists for high-performance computing, with obscure interfaces and difficult modifications: changing an interatomic force formula often requires recompiling the entire program, and error messages are hard to understand; beginners often cause simulation crashes or completely distorted results due to a wrong unit or a cutoff distance set 0.1 nanometer too small. Strategy A (directly calling underlying Fortran programs) is fast but extremely difficult to debug; Strategy B (encapsulating with a general-purpose scripting language) is flexible but too slow to handle systems with more than 100 atoms. Therefore, how to make simulations maintain professional-level accuracy while providing an intuitive operational experience similar to a mobile app has become a critical bottleneck between research efficiency and talent training.

Key Highlights

  1. Modular modeling: Decomposing interatomic forces into draggable modules such as “springs”, “magnets”, and “cooperative networks”, allowing users to combine new models with a few lines of Python code (e.g., “charge-adjustable silicon-oxygen bonds”) without understanding the underlying programming logic; modules automatically check parameter validity, avoiding more than 90% of human configuration errors; the effect is equivalent to simplifying an automobile assembly line into building a remote-controlled car.
  2. Intelligent acceleration engine: Core calculations are performed by high-speed Fortran programs, while the Python layer is only responsible for “issuing commands” and “checking results”, making it more than 300 times faster than pure Python implementations and still smooth when processing systems with a thousand atoms; it is like using a voice assistant (Python) to direct a professional driver (Fortran), which is both effortless and efficient.
  3. Teaching-friendly design: Built-in tools for structure analysis, energy visualization, and parameter sensitivity testing allow students to observe in real time “how atoms move when a certain parameter is adjusted”, generating force-distance curve plots in 5 minutes; compared to traditional processes requiring days of configuration, the startup time is shortened to within 10 minutes.

Summary and Outlook

Based on an object-oriented Python interface, decoupling atomic forces into programmable modules and bridging to a high-speed Fortran computing kernel achieves a dual breakthrough in simulation modeling flexibility and computational efficiency. This technology possesses the dual advantages of being “easy to learn and use” and “professionally reliable”. The study demonstrates that in silicon oxide cluster simulations, an energy accuracy on the order of 0.1 electron volts was achieved, and in undergraduate computational physics courses, 95% of students independently completed modeling tasks in a single class period. This research not only solves the industry pain points of repeated trial-and-error by researchers and the lack of tools in teaching scenarios, but also, through the methodological innovation of “fully transparent computational processes and traceable individual parameters”, provides a reusable underlying paradigm for artificial intelligence-driven reverse design of materials and the digital transformation of interdisciplinary science education.

Clinamen2: Functional-style evolutionary optimization in Python for atomistic structure searches ☆
err2024-04-01
err2
errOAAI
errWanzenboeck, Ralf; Buchner, Florian; Kovacs, Peter; Madsen, Georg K. H.; Carrete, Jesus
errShare
errSave
SMMP v. 3.0 - Simulating proteins and protein interactions in Python and Fortran
err2008-03-01
err21
PREAI
errMeinke, Jan H.; Mohanty, Sandipan; Eisenmenger, Frank; Hansmann, Ulrich H. E.
errShare
errSave
errShare
errSave

Journal

Computer Physics Communications cover
Computer Physics Communications
IF:
3.4
Papers:
1.2W
Citations:
4.7W

Organization

A
Aalto University
Scholars:
913
Papers: 378
Citations: 1.2W
U
university of helsinki
Scholars:
2.5K
Papers: 900
Citations: 2.5W
Cited Papers

Cited Papers

Post-concussion symptoms after traumatic brain injury at 3 and 12 months post-injury: A prospective study
err2009-07-21
err0
PREAI
errSolrun Sigurdardottir; Nada Andelic; Cecilie Roe; Tone Jerstad; Anne-Kristine Schanke
errShare
errSave
errShare
errSave
A fast and robust algorithm for Bader decomposition of charge density
err2006-06-01
err8.7K
PREAI
errHenkelman, Graeme; Arnaldsson, Andri; Jonsson, Hannes
errShare
errSave
A Longitudinal Comparison Between Depressed Patients Receiving Electroconvulsive Therapy and Healthy Controls on Specific Memory Functions
err2020-05-14
err0
PREAI
errMalin O. Blomberg; Maria Semkovska; Ute Kessler; Vera Jane Erchinger; Ketil J. Oedegaard; Leif Oltedal; Åsa Hammar
errShare
errSave
errShare
errSave
researcher View more