Search arXivSearch

arXiv · 2310.11458

GPT-4 as an interface between researchers and computational software: improving usability and reproducibility

Abstract

Large language models (LLMs) are playing an increasingly important role in science and engineering. For example, their ability to parse and understand human and computer languages makes them powerful interpreters and their use in applications like code generation are well-documented. We explore the ability of the GPT-4 LLM to ameliorate two major challenges in computational materials science: i) the high barriers for adoption of scientific software associated with the use of custom input languages, and ii) the poor reproducibility of published results due to insufficient details in the description of simulation methods. We focus on a widely used software for molecular dynamics simulations, the Large-scale Atomic/Molecular Massively Parallel Simulator (LAMMPS), and quantify the usefulness of input files generated by GPT-4 from task descriptions in English and its ability to generate detailed descriptions of computational tasks from input files. We find that GPT-4 can generate correct and ready-to-use input files for relatively simple tasks and useful starting points for more complex, multi-step simulations. In addition, GPT-4's description of computational tasks from input files can be tuned from a detailed set of step-by-step instructions to a summary description appropriate for publications. Our results show that GPT-4 can reduce the number of routine tasks performed by researchers, accelerate the training of new users, and enhance reproducibility.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Juan C. Verduzco, Ethan Holbrook, Alejandro Strachan. 2023-10-04. GPT-4 as an interface between researchers and computational software: improving usability and reproducibility. https://arxiv.org/abs/2310.11458

Cite the original work for its findings. Save a collection to share your selection of sources.

KEEP EXPLORING

Related papers

GRAINSMITH: A Generator of Polycrystalline Models for Atomistic Simulations with Statistical and Grain-Boundary Morphology Control

Atomistic studies of grain-boundary engineering, grain-size effects and dopant enrichment require reproducible models with prescribed microstructural features. We present GRAINSMITH, an open-source Python package for generating statistically controlled polycrystalline models with selectable grain-boundary morphologies for molecular dynamics and subsequent relaxation. Within supported feature combinations, a single configuration specifies grain-size and volume distributions, crystallographic texture, boundary-area-weighted disorientation-angle distributions, phase composition and grain-boundary dopant placement. Crystal construction supports 230 crystallographic space groups. Periodic Voronoi and volume-targeted Laguerre tessellations provide planar boundaries, while distinct geometry backends generate smoothly curved and band-limited self-affine boundaries. A registry of twenty-six checks assesses applicable inputs, construction properties and outputs. Each run exports LAMMPS data and Extended XYZ files together with structural and statistical descriptors and machine-readable provenance. For a fixed software version and computational environment, the configuration and random seed determine byte-reproducible atomic configurations and scientific data across supported worker counts. By combining statistical specification, boundary-morphology control and reproducible atomistic output, GRAINSMITH supports systematic studies of microstructural effects and quantitative comparisons across generated models.

cond-mat.mtrl-sci

Structure and dynamics of the negative thermal expansion material Cd(CN)$_2$ under hydrostatic pressure

We use a combination of variable-temperature / variable-pressure neutron powder diffraction, variable-pressure inelastic neutron scattering, and quantum chemical calculations to interrogate the behaviour of the negative thermal expansion (NTE) material $^{114}$Cd(CN)$_2$ under hydrostatic pressure. We determine the equation of state of the ambient-pressure phase, and discover the so-called `warm hardening' effect whereby the material becomes elastically stiffer as it is heated. We also identify a number of high-pressure phases, and map out the phase behaviour of Cd(CN)$_2$ over the range $0\leq p\leq0.5$\,GPa, $100\leq T\leq300$\,K. As expected for an NTE material, the low-energy phonon frequencies are found to soften under pressure, and we determine an effective Gr{ü}neisen parameter for these modes. Finally, we show that the elastic behaviour of Cd(CN)$_2$ is sensitive to the local Cd coordination environment, which suggests an interplay between short- (phononic) and long-timescale (cyanide flips) fluctuations in Cd(CN)$_2$.

cond-mat.mtrl-sci

Unconventional Magnetism, Sliding Ferroelectricity, and Magneto-Optical Kerr Effect in Multiferroic Bilayers

Antiferromagnetic (AFM) materials provide a platform to couple altermagnetic (AM) spin-splitting with the magneto-optical Kerr effect (MOKE), offering potential for next-generation quantum technologies. In this work, first-principles calculations, symmetry analysis, and kp modeling are employed to show that interlayer sliding in AFM multiferroic bilayers enables control of electronic, magnetic, and magneto-optical properties. This study reveals an intriguing dimension-driven AM crossover: the 2D paraelectric (PE) bilayer exhibits spin-degenerate bands protected by the [C2||Mc] spin-space symmetry, whereas the 3D counterpart manifests AM spin-splitting along kz \neq 0 paths. Furthermore, interlayer sliding breaks this Mc symmetry and stabilizes a ferroelectric (FE) state with compensated ferrimagnetism, where the Zeeman-like field is responsible for the nonrelativistic spin-splitting. In the FE phase, spin-orbit coupling (SOC) lifts accidental degeneracies and produces `alternating' spin-polarized bands through the interplay of Zeeman and Rashba effects. Crucially, spin polarization, ferrovalley polarization, and the Kerr angle can all be reversed by switching either sliding ferroelectricity or the Neel vector. Our findings reveal the rich coupling among electronic, magnetic, and optical orders in sliding multiferroics, illustrating new prospects for ultralow-power spintronic and optoelectronic devices.

cond-mat.mtrl-sci