원시데이터 수집 시스템
선정목록으로

ESPResSo 4.0 -- An Extensible Software Package for Simulating Soft Matter Systems

간접 관련 수소연료전지 · (6) PEM(고분자전해질막) (5) 연료전지용 수분제어장치(가습기)(11) 배리어 필름(18) VENT(방수통기 부품)

기본 정보

저자
  1. Weik, Florian
  2. Weeber, Rudolf
  3. Szuttor, Kai
  4. Breitsprecher, Konrad
  5. de Graaf Joost
  6. Kuron Michael
  7. Landsgesell, Jonas
  8. Menke, Henri
  9. Sean David
  10. Holm Christian
DOI
10.48550/arxiv.1811.07729
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1811.07729
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W6891769335

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (6) PEM(고분자전해질막)
부 분야
(5) 연료전지용 수분제어장치(가습기), (11) 배리어 필름, (18) VENT(방수통기 부품)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
molecular dynamics, soft matter, polyelectrolytes, membranes, electrostatic solvers
판단 근거
이 논문은 연성 물질(soft matter) 연구를 위한 분자 동역학(MD) 시뮬레이션 소프트웨어 패키지인 ESPResSo 4.0에 관한 것으로, 고분자 전해질, 막(membrane), 정전기적 상호작용 등을 모델링하는 기술을 다룹니다.
R&D 활용 포인트
PEMFC용 이온전도성 고분자막(6)이나 수분제어장치용 중공사막(5)의 미세 구조 및 이온 전도 메커니즘을 컴퓨터 시뮬레이션으로 예측하고 설계하는 데 활용 가능합니다.
평가 입력
본문 96,415자 중 30,032자 발췌

초록

ESPResSo 4.0 is an extensible simulation package for research on soft matter. This versatile molecular dynamics program was originally developed for coarse-grained simulations of charged systems Limbach et al., Comput. Phys. Commun. 174, 704 (2006). The scope of the software has since broadened considerably: ESPResSo can now be used to simulate systems with length scales spanning from the molecular to the colloidal. Examples include, self-propelled particles in active matter, membranes in biological systems, and the aggregation of soot particles in process engineering. ESPResSo also includes solvers for hydrodynamic and electrokinetic problems, both on the continuum and on the explicit particle level. Since our last description of version 3.1 Arnold et al., Meshfree Methods for Partial Differential Equations VI, Lect. Notes Comput. Sci. Eng. 89, 1 (2013), the software has undergone considerable restructuring. The biggest change is the replacement of the Tcl scripting interface with a much more powerful Python interface. In addition, many new simulation methods have been implemented. In this article, we highlight the changes and improvements made to the interface and code, as well as the new simulation techniques that enable a user of ESPResSo 4.0 to simulate physics that is at the forefront of soft matter research.

본문 96,415자

본문 펼치기
ESPResSo 4.0 – An Extensible Software Package for Simulating Soft Matter Systems Florian Weik, <sup>1,</sup> <sup>_∗_</sup> Rudolf Weeber, <sup>1</sup> Kai Szuttor, <sup>1</sup> Konrad Breitsprecher, <sup>1</sup> Joost de Graaf, <sup>2</sup> Michael Kuron, <sup>1</sup> Jonas Landsgesell, <sup>1</sup> Henri Menke, <sup>1, 3</sup> David Sean, <sup>1</sup> and Christian Holm <sup>1,</sup> <sup>_†_</sup> 1 _Institut_ _f¨ur_ _Computerphysik,_ _Universit¨at_ _Stuttgart,_ _Allmandring_ _3,_ _70569_ _Stuttgart,_ _Germany_ 2 _Institute_ _for_ _Theoretical_ _Physics,_ _Center_ _for_ _Extreme_ _Matter_ _and_ _Emergent_ _Phenomena,_ _Utrecht_ _University,_ _Princetonplein_ _5,_ _3584_ _CC_ _Utrecht,_ _The_ _Netherlands_ 3 _Department_ _of_ _Physics,_ _University_ _of_ _Otago,_ _P.O._ _Box_ _56,_ _Dunedin_ _9054,_ _New_ _Zealand_ (Dated: November 20, 2018) ESPResSo is an extensible simulation package for research on soft matter. This versatile molecular dynamics program was originally developed for coarse-grained simulations of charged systems [Limbach _et_ _al._, Comput. Phys. Commun. 174, 704 (2006)]. The scope of the software has since broadened considerably: ESPResSo can now be used to simulate systems with length scales spanning from the molecular to the colloidal. Examples include, self-propelled particles in active matter, membranes in biological systems, and the aggregation of soot particles in process engineering. ESPResSo also includes solvers for hydrodynamic and electrokinetic problems, both on the continuum and on the explicit particle level. Since our last description of version 3.1 [Arnold _et_ _al._, Meshfree Methods for Partial Differential Equations VI, Lect. Notes Comput. Sci. Eng. 89, 1 (2013)], the software has undergone considerable restructuring. The biggest change is the replacement of the Tcl scripting interface with a much more powerful Python interface. In addition, many new simulation methods have been implemented. In this article, we highlight the changes and improvements made to the interface and code, as well as the new simulation techniques that enable a user of ESPResSo 4.0 to simulate physics that is at the forefront of soft matter research. I. INTRODUCTION Soft matter [1–3] is an established field of research that concerns itself with systems ranging from the nanometer scale up to tens of micrometers, existing on the interface between physics, chemistry, and biology. These systems are classified as “soft” because the relevant energy scale of interactions is typically comparable to the thermal energy, making them easy to deform through the application of external forces and fields. The broadness of the field is exemplified by the subjects covered therein: polymer science [4, 5], colloidal science [6, 7], liquid crystals [8, 9], biological physics [10, 11], food science [12], material science [13], to name but a few. Statistical techniques may be employed to describe soft matter systems, as thermal fluctuations and thus Brownian motion play an important role and allow the system to readily explore phase space. The field has thus proven itself to be a fruitful playground for shaping the community’s understanding of statistical physics concepts [14, 15], as well as emergent non-equilibrium phenomena [16–18]. The delicate interplay of energy and entropy that is found in many colloidal suspensions leads to a plethora of complex structural properties that are difficult to grasp with pen and paper. Indeed, the soft matter community owes a great deal to computer simulations for its current level of understanding. The use of computers in soft matter traces its root to first molecular-dynamics (MD) simulations of phase separation in a system of hard spheres [19, 20]. From these _∗_ [fweik@icp.uni-stuttgart.de](mailto:fweik@icp.uni-stuttgart.de) _†_ [holm@icp.uni-stuttgart.de](mailto:holm@icp.uni-stuttgart.de) humble beginnings, computer simulation grew out to a new field that bridges experimental and theoretical efforts. These methods came to their own in soft matter, as the typical size and nature of the interactions found therein, lend themselves well to coarse graining. This is a process by which many of the microscopic freedoms that govern a system may be captured in terms of effective interactions on a larger scale. The use of effective interactions enables the simulation of emergent effects using simple models at a fraction of the computation effort that is required to account for the full microscopic details. This has played a decisive role in elucidating, _e.g._, the guiding principles for phase behavior of complex liquids [21–24], the structure of ferrofluids [25–28], the structure of polyelectrolytes [29– 32], and the swelling of hydrogels and ferrogels [33–37]. The MD simulation package ESPResSo is one of the most broad, efficient, and well-suited platforms for the study of coarse-grained models of soft matter. Only LAMMPS <sup>1</sup> [38] and ESPResSo++ <sup>2</sup> [39] approach ESPResSo in terms of the scope of their simulation methods and features. Here, we should emphasize that while ESPResSo is capable of simulating molecular fluids, its scope does not cover atomisticly resolved systems. There are a number of better-suited, open-source softwares available for atomistic simulations, such as GROMACS <sup>3</sup> [40– 42], NAMD <sup>4</sup> [43–45], and AMBER <sup>5</sup> [46, 47], to name just a few of the most commonly used ones. 1 `[https://lammps.sandia.gov](https://lammps.sandia.gov)` 2 `[http://www.espresso-pp.de/](http://www.espresso-pp.de/)` 3 `[http://www.gromacs.org](http://www.gromacs.org)` 4 `[https://www.ks.uiuc.edu/Research/namd/](https://www.ks.uiuc.edu/Research/namd/)` 5 `[http://ambermd.org](http://ambermd.org)` The aim of this paper is to present the improvements made in ESPResSo 4.0 compared to our previous release ESPResSo 3.1 [48]. We have also taken the opportunity to introduce readers to our software package and encourage them to consider ESPResSo, both for use in soft matter research, and as a platform for method and algorithm development. A strong community is key to maintaining and extending a strong and reliable software for research. We will provide examples of cutting-edge physics that can be simulated using ESPResSo 4.0, which will hopefully create interest in tyring out ESPResSo and potentially joining our thriving user and developer community. In brief, this paper covers the following subjects. We start by giving a broad introduction to ESPResSo, discussing its history, goals, and community in Section II. This will set the background to the developments made for our ESPResSo 4.0 release. Next, we focus on the new interface (Section III), the interaction with external packages (Section IV), user interaction with the software in terms of visualization and output (Sections V and VI, respectively), and changes to the new code development procedures and practices (Section VII) that we adopted with ESPResSo 4.0. Finally, we introduce the standout physical methods and models that were recently introduced within ESPResSo: energy minimization routines (Section IX), cluster analysis (Section X), chemical reac tions (Section XI), polarizable molecules (Section XII), and self-propelled particles (Section XIII). We end with a summary and outlook in Section XIV. II. EXTENSIBLE SIMULATION PACKAGE FOR RESEARCH ON SOFT MATTER SYSTEMS A. The Idea behind ESPResSo ESPResSo development began in 2001. Its name is an acronym for E xtensible S imulation P ackage for Res earch on So ft matter systems, which encapsulates the goal of the software project: On the one hand, the original development team wished to create a highly parallel molecular dynamics program that could deal efficiently with charged bead-spring models of polymers. At that time, we had learned to master electrostatic interactions in periodic geometries [49, 50] and had also developed other fast electrostatic solvers for partially periodic geometries [51–57]. The resulting software saw its first use in the study of polyelectrolyte solutions and charged colloidal suspensions. On the other hand, the ESPResSo framework was designed to be “extensible”. That is, its core architecture was created to facilitate the testing and integration of new algorithms. ESPResSo has seen many additions since 2001, living up to this extensible character [48]. This includes support for the simulation of hydrodynamic interactions via an efficient GPU implementation of a lattice Boltzmann solver, rigid-body dynamics, a scheme for the study of irreversible agglomeration, and electrostatic solvers that allow for dielectric inclusions or even locally varying dielectric permittivities [48, 58–62]. From the start, ESPResSo has a two-fold architecture, which roughly separates the developer from the user and promotes ease of use: (i) Massively parallel simulation routines were implemented in the C programming language using the Message Passing Interface (MPI). These routines scale well up to hundreds of processors on large computing clusters. They also facilitate the addition of new algorithms, even by novice developers. (ii) The simulation core exposes a scripting interface to the user, such that they did not have to directly interact with the core code. This interface was based on the Tcl language—the most suitable choice at that time to provide easy-to-use scripting. This gave the user programmatic control over the simulation protocol, and enabled run-time analysis and visualization in a straightforward manner. B. The Motivation for ESPResSo 4.0 Every simulation package has to cope with changing computer architectures and programming models, ensure continued ease of development, and cater to users’ expectations concerning interaction with the software. ESPResSo 4.0 is our answer to the changes in the field of scientific computing that have taken place over the past five years. Today, the Python language has become the _de-facto_ standard in scientific computing. There exists a vast ecosystem of third-party Python packages for numerical algorithms, visualization, and statistical analysis. This motivated us to port the scripting interface from Tcl to Python for the latest version of ESPResSo, as will be described in Section III. We have also updated our online visualization to make the most of ESPResSo 4.0’s new Python interface, see Section V. Post-processing and visualization of large data sets is facilitated by the introduction of the HDF5 output format and parallellized output routines, see Section VI. Finally, the ESPResSo core has been converted to the C++ programming language, which has had added benefits both in terms of software development practices and in terms of performance, see Section VII. To stay at the forefront of the field, it is not only necessary to commit to the user and development experience, it is also critical to keep up with the ever shifting interests of the user base. ESPResSo has done so in the past [48] and continues this effort with the ESPResSo 4.0 release. Our simulation package now covers an even wider range of physical systems of relevance to modern soft matter research. This includes non-equilibrium phenomena in active matter, which ESPResSo 4.0 captures using model self-propelled particles [63–66], see Section XIII. Going beyond soft matter, particle-based methods have attracted interest from the engineering community. Specifically, this community utilizes MD to model large-scale physical processes such as soot aggregation [67, 68] and air filtration [69], with the aim to improve these processes. Section X describes the opportunities for these kinds of studies in our latest release. However, as will become clear shortly, ESPResSo 4.0 is capable of much more. C. The User and Developer Community The ESPResSo package was set up as an open software project, committed to open source development under the GNU General Public License (GPL), a practice that we continue to adhere to. Users of ESPResSo are supported through mailing lists <sup>6</sup> and workshops, such as the annual ESPResSo summer schools, which have between 20 and 40 participants. These workshops are often run as CECAM <sup>7</sup> tutorials, jointly funded through grants from the German Research Foundation through the SFB 716 and the cluster of excellence SimTech (EXC 310). The mailing lists and workshops also allow the developer team to announce new features implemented in the code base of ESPResSo to the global research community. ESPResSo is used by scientists all over the world, which is documented by more than 431 citations on Web of Science since 2006 and 608 citations on Google Scholar, as of this writing. Several research groups have contributed algorithms to the core of ESPResSo, which include: (i) Continuum flow solvers (including ones on GPUs) and various methods to couple them to MD [70–76]. (ii) Advanced algorithms for rare-event sampling and the reconstruction of free-energy landscapes [77, 78]. (iii) Monte-Carlo methods [79]. (iv) An interface to Python analysis package MDAnalysis. (v) Extensions to the support for anisotropic particles. (vi) Methods to calculate dipolar interactions on the GPU. Significant effort has been made to accommodate the various sources of these contributions and ensure code quality of ESPResSo 4.0. This includes putting in place an extended test infrastructure and increasing the test coverage. Furthermore, all changes to the software, including those made by the core team, undergo peer review before they are merged, see Section VII. The latest version of ESPResSo and its documentation can be found on the website `[http://espressomd.org](http://espressomd.org)` . Ongoing development is organized through the social code hosting platform GitHub <sup>8</sup>, which facilitates contribution handling through its collaborative features. III. THE PYTHON INTERFACE In recent years, Python has become increasingly popular in the scientific community as a scripting language, in areas such as machine learning (PyTorch, scikit-learn, Keras) [80–82], symbolic mathematics 6 `[espressomd-users@nongnu.org](https://lists.nongnu.org/mailman/listinfo/espressomd-users )` 7 `[https://www.cecam.org/](https://www.cecam.org/)` 8 `[https://github.com/espressomd/espresso/](https://github.com/espressomd/espresso/)` (SymPy, SAGE) [83, 84], data visualization (Matplotlib, Mayavi) [85, 86], and numerical mathematics (NumPy, SciPy, pandas) [87, 88]. In ESPResSo 4.0, we have therefore decided to switch the interface scripting language from Tcl to Python. This allows for the quick generation of clear and concise scripts that can harness the power of third party numerical tools. The ESPResSo core functionality can be accessed like any other Python module by importing the `espressomd` module. The whole architecture is built around the `system` object which encapsulates the physical state of the high-performance simulation core. ESPResSo is a particle-based molecular dynamics simulator, _i.e._, all fundamental operations in the simulation setup revolve around particles. Inspired by Python’s list datatype and the NumPy package [87], we introduced slicing operations on the list of particles. Many functions also accept lists and automatically broadcast themselves to the individual list elements. This often reduces the number of lines of code significantly, _e.g._, placing several particles at random positions in the simulation box can now be done in a single line: ``` import numpy as np system. part . add ( pos =np.random.random ((50, 3)) * system. box_l ) print (system. part [:]. pos ) ``` In Python, functions can be passed to other functions as arguments. ESPResSo 4.0 makes use of this, _e.g.,_ for particle selection using a user-specified criterion: ``` charged_particles = system. part .select( lambda p: p. q != 0.0) ``` Because the NumPy package [87] is very popular in numerical computing, including in undergraduate courses, we designed the interface for maximal compatibility. This allows the user to directly pass on values returned from ESPResSo functions to a variety of NumPy routines, _e.g._, to compute the mean, standard deviation, or histograms. We further make use of the object-oriented programming capabilities of Python. Instead of commands having an immediate effect, the user instantiates objects of a class and adds these objects to the system instance. For example, when the user creates an object for the electrostatic solver, it is not immediately active, but has to be added to the list of actors first. This new design aims to reduce dependencies between different parts of the user-provided simulation script and eliminate issues related to the order of commands. IV. INTEGRATION WITH EXTERNAL PACKAGES A. Using ESPResSo with other Python packages As we already mentioned earlier, the ESPResSo Python interface was designed with NumPy in mind and most functions return datatypes which are compatible with the routines offered by NumPy. These routines are wellmaintained and supported by a large community with numerous online resources and introductory material. One example are various statistics routines. These include mean, variance and median calculations, but also `numpy.` `histogram()` . As an example, a probability distribution of inter-particle distances can be used to obtain effective potentials via Boltzmann inversion [89]. Furthermore, the confidence interval estimators from `scipy.stats.t.` `interval()` can be used to control the amount of sampling in a simulation. Random number generation from `numpy` `.random` and `scipy.stats` can be used, e.g., for setting up a randomized starting configuration. Linear algebra methods from `numpy.linalg` allow for easily calculating the principal axes of and moments of inertia of a set of particles. Lastly, new interpolated bonded and pair potentials in ESPResSo can be added by providing NumPy arrays for the energies and forces. It is also possible to create Jupyter notebooks [90] using ESPResSo. These interactive worksheets are popular for teaching and provide a great way to nicely present results and the generating simulation code alongside. For example the introductory tutorials for ESPResSo 4.0 are presented in this fashion. ESPResSo 4.0 provides an interface to the MDAnalysis Python package, which provides a large number of analysis routines for particle-based data. This includes the calculation of radial distribution functions, density profiles, and the persistence length of polymer chains. B. Algorithms for Coulomb and dipolar interactions from the ScaFaCoS library The treatment of Coulomb and dipolar interactions has always been one of the strong points of ESPResSo. Electrostatic interactions are inherently important in many soft matter systems: _e.g._ colloidal suspensions are often stabilized by means of electrostatic repulsion, the structure of polyelectrolytes depends on the concentration of charged salt atoms, and electric fields are used for the analysis and separation of particles in electrophoresis applications. Being long-ranged, electrostatic interactions have to be treated by specialized algorithms in systems with periodic and mixed boundary conditions. ESPResSo already contains implementations of the particle-particle-particlemesh (P <sup>3</sup> M) algorithm [91] for fully periodic systems, as well as the electrostatic layer correction (ELC) [53] and MMM2D [51] scheme for 2D-periodic slit-pore geometries. FIG. 1. Example of the OpenGL visualizer of ESPResSo for charged particles in a plate capacitor. Positive (red) and negative (green) ions experience a constant-potential boundary condition. However, more algorithms have been developed, designed for particular applications. Many of these are available in the ScaFaCoS library [92] ( Sca lable Fa st Co ulomb S olvers). ESPResSo 4.0 provides an interface to this library, exposing all provided electrostatic solvers. Moreover, an extension to the ScaFaCoS library adds solvers for dipolar interactions with an _O_ ( _N_ log _N_ ) scaling for periodic, mixed, and open boundary conditions. With ESPResSo 4.0, this version of the library can be used as a solver for magnetostatic interactions [93, 94]. The dipolar P <sup>2</sup> NFFT solver for open boundaries is of particular relevance to research in magnetic soft matter: properties of such material can depend on the sample shape due to the demagnetization field [95, 96]. V. ONLINE VISUALIZATION A graphical representation of the system is of great value when it comes to presenting results of a simulation study. Also, it is common practice to visualize intermediate results while setting up the simulation. This saves time, as possible pitfalls related to positions, directions or orientations can be rectified immediately when discovered via visualization. Usually, this is done by writing out trajectories or volumetric data and utilizing external tools like Paraview [97] or VMD [98]. ESPResSo with Python is well suited for this kind of workflow. Furthermore, ESPResSo features two options for visualizing simulations while they are running, _i.e._, live or on-line visualization. FIG. 2. Example of the OpenGL visualizer of ESPResSo for particles advected in a Poiseuille flow between two walls (Green arrows: particle velocity; blue arrows: fluid velocity). The first one uses Mayavi [86], a Python framework for “3D scientific data visualization and plotting” to visualize particles. Mayavi has a user-friendly graphical interface to manipulate the visual appearance and to interact with the resulting representation. Second, ESPResSo 4.0 comes with a 3D rendering engine that uses PyOpenGL [99, 100]. Both visualizers are not primarily intended to produce print-quality renderings, but rather to give a quick impression of the system setup and the equilibration process. Two exemplary snapshots are shown in Figs. 1 and 2; the corresponding Python scripts are available in the distribution package of ESPResSo 4.0. Our OpenGL visualizer has been crafted specifically for use with ESPResSo and is capable of not only visualizing particles, but also several specific features like constraints, detailed particle properties, the cell system, the domain decomposition across processors, or fluid flows computed with the lattice Boltzmann method [101] (Fig. 1). It has a large number of options to adjust colors, materials, lighting, camera perspective, and many more. Vectorial particle properties can be visualized by 3D arrows on the particles to display forces, velocities, etc. The OpenGL visualizer can also be used for offline visualization to display completed simulations. A unique feature is the ability to interact with the running simulation: Particles can be queried for their properties in real-time by simply clicking on them in the 3D window. Most of the system information like active interactions, actors and global properties can be viewed in the visualization. In the Python script, the user can assign callback functions to keyboard input, so that all exposed system and particle properties ( _e.g._, the temperature of the Langevin thermostat or the external force on a particle group) can be manipulated in real-time for testing and demonstration purposes. This allows to use ESPResSo also as an educational tool for a broad range of skill levels from basic physics to advanced simulation methods. VI. PARALLEL OUTPUT Writing trajectories of a large set of particles to disk can be a bottleneck of parallel MD simulations. For serial I/O the costs of writing the trajectory include the communication to gather the data on the node that actually performs the write. A second aspect of the performance cost is the amount of data that has to be written to disk. Thus, in ESPResSo 4.0 we added the possibility to write binary files in parallel using the H5MD specification [102] which utilizes the HDF5 file format [103]. H5MD files are intended to be self-contained and therefore enhance the portability of simulation output. This more readily allows one to use a wide class of analysis programs. The implementation is based on a wrapper around the HDF5 library. In typical ESPResSo simulations, the I/O performance is improved by using parallel output for particle numbers greater than approximately 10 <sup>4</sup> . Writing in this binary format is significantly faster than more traditional ASCII text. The H5MD files written by ESPResSo 4.0 may conveniently be read into Python using the H5py module [104]. Simulation trajectories may also be visualized in VMD [98] by using its H5MD plugin. The H5MD output file contains a field that holds the source script that was used for its creation. Thus the origin of the raw simulation data can always be traced back to the ESPResSo Python script, which helps tremendously in reproducing data. For convenience, we still support ESPResSo’s VTF format which outputs system and particle properties as ASCII text. However, the use of Python as a scripting language opens the door to a large number of alternatives. Many aspects of a simulation, as well as simulation parameters can, for instance, be stored in a structured format using Python’s `pickle` module. VII. SOFTWARE ENGINEERING AND TESTING As outlined in the previous section, the scripting interface is powered by a high-performance simulation core. The core of previous versions of ESPResSo was implemented in the C programming language. It was only natural to also upgrade the core in a manner that mirrors the new object-oriented approach of the interface. Therefore, ESPResSo 4.0 has switched from C to C++. C++ is a modern object-oriented programming language that allows for a more compact, readable code style. Just like Python, C++ benefits from an active community and a rich ecosystem of third-party support libraries, _e.g._, the Boost libraries [105]. Thus, functionality that was previously implemented in the simulation core can now be provided externally. This reduces the code complexity and consequently the maintenance effort. ESPResSo is designed with high-performance computing in mind. On high-performance compute clusters, the environment is often times very heterogeneous. For example, external libraries provided by different operating systems can vary noticeably, and only very recent C++ compilers fully support modern standards like C++11. To ensure that ESPResSo can be built and run on a large variety of different setups, it turned out to be necessary to comprehensively test it on different combinations of operating systems and compiler versions. ESPResSo has always included a suite of test cases that could automatically run small simulations to formally verify the physical correctness of the implementation by comparing to established results. In ESPResSo 4.0, not only have these tests been extended to cover more code, but also to specifically test the correctness of certain core aspects, a method called unit testing. A. Improvements in the simulation core The ESPResSo code base has been developed continuously for more than 15 years by a host of contributors of various backgrounds and styles. Thanks to the substantial overlap of language features between C and C++, it was possible to switch the language with minimal effort. Even though C and C++ share a common heritage, the programming paradigms are radically different and we are gradually transforming the old C code into more modern C++ code. New language and library features of C++, especially ones which became available with the C++11 standard, are employed for more concise and expressive design of our software. ESPResSo is continuously used in day-to-day research activities and mainly developed by interested domain researchers; hence a gradual modernization strategy was necessary. Among the many algorithms whose code has been refactored, one central method is the traversal of particle pairs used for the evaluation of short-range interactions. In ESPResSo 4.0, the traversal has been separated from the kernel that evaluates the interactions for each particle pair. Repetition of the complicated routine for the pair energy, virial, and force calculation in the three types of particle cell systems supported by ESPResSo is hence avoided. This has been achieved by replacing several loops over the particles by a single function that takes the kernels as template parameters. This allows us to test key routines in isolation, independent of any interaction potentials. Added benefits to this decoupling are, improved performance and the ease by which new methods may be introduced by (future) collaborators. B. Testing ESPResSo contains a test suite to verify the correctness of the code. Hitherto, these tests were run by the maintainers before accepting code contributions, but features without tests were not covered. A formal measurement of the code coverage was introduced because it proved hard to detect which features are untested. In preparation for this release, we systematically improved coverage of previously untested areas of code. It is our experience that adding tests to existing code not only ensures correctness, but also improves the user experience by streamlining interfaces and avoiding inconsistencies and confusion. For example, ESPResSo’s GPU and CPU lattice Boltzmann (LB) implementations had few systematic tests. However, this is an important method for many users of ESPResSo, and central for the correctness of many soft matter simulations [106]. We therefore introduced multiple new tests in this area that compare the flow fields computed by the LB method, as well as its coupling to particles, against stationary and time-dependent analytical solutions and reference data. These tests include direct verification of momentum and mass conservation, as well as validation of the statistical properties of the fluctuating variant of the LB and particle coupling. This helped us to improve the existing code as well as its interface. In addition to the improved integration tests, this release includes some unit tests. Unit tests help identify issues on the level of individual functions which make up the algorithms and give more precise information where an issue occurred. This further allows changing the building blocks of an algorithm or their reuse across different simulation methods. C. Continuous Integration As mentioned earlier, the development of ESPResSo is organized through GitHub. Contributors can submit patches to fix a bug or introduce new features by means of a pull request. Whenever such a pull request is filed, the aforementioned set of unit and integration tests is automatically run and the outcome is communicated to GitHub where it is displayed in an informative fashion. This method of automatically running the test suite for changes is called continuous integration. Many online services exist which are free to use for open source projects like ESPResSo. Unfortunately, their free service plans are too limited for the vast variety of setups we need to test. Therefore we mirror the ESPResSo repository to a private instance of GitLab <sup>9</sup> . This instance manages a fleet of dedicated in-house computers and distributes jobs for each configuration to test. On top of the automated 9 GitLab is a free, self-hosted platform similar to GitHub, see `[https://gitlab.com](https://gitlab.com)` . testing, other developers are tasked with peer review of the patches to ensure a consistent integration into the code base. We also try to cover as many combinations of operating systems, compilers, Python versions, and with and without GPU processors as possible. Our use of the Clang compiler [107] is particularly noteworthy as it is able to perform static code analysis to detect a large number of common programming errors and it is able to generate code to automatically recognize undefined behavior during runtime, thus often detecting bugs that are hard to discover for a human software developer. VIII. EXTERNAL FIELDS ESPResSo 4.0 implements a new extensible framework for coupling particles to external fields, _i.e._, fields that are not caused by particle interactions. An “external field“ is composed of a field source and a coupling, which can be combined as needed. An important use case for this feature are particles advected in a prescribed flow field under the assumption that they do not back-couple to that flow field. An example are soot particles on the nanometer scale in combustion exhausts [68, 108]. Here the field source would be a flow field specified on a regular grid which is interpolated to the particle positions. The coupling term would be a viscous friction, combining the velocity difference between the particle and the flow field and a friction constant to a force. Further use cases for external fields are complex boundary shapes as they are found in super-capacitor electrodes as for example described by Breitsprecher _et_ _al._ [109]. In this application, electrodes with non-trivial geometry are considered. The electric field caused by the electrodes is pre-computed by solving Poisson’s equation for the system, and the resulting field is then superimposed on the inter-particles forces in the MD simulations as an interpolated external electric field. A snapshot of particles and electric field lines in such a system is shown in Fig. 3. The feature can also be used for Lennard-Jones particles in front of convex surfaces. Such a particle can interact with an extended part of the surface. This cannot be described by ESPResSo’s constraint feature, which only accounts for an interaction along the surface normal vector. Let us now look at the two components of external fields in detail. The field source is described as a global scalar or vectorial field. Either, user-provided data is interpolated from a regular grid onto the particle positions, a constant value throughout the full domain is used, or an affine map _A_ according to _u_ ( _r_ ) = _A_ _r_ + _b_ _,_ (1) with a user-provided matrix _A_ and shift _b_ is evaluated. The coupling maps a particle property and the value of the field source at the particle position to a force or potential. In the latter case the force is calculated by invoking the coupling with the gradient of the field. For FIG. 3. Electric Field lines in a slit pore filled with an ionic liquid. example a gravitational field can be defined as a constant scalar field source coupling to the particle mass. Presently there are several possibilities for the particle coupling, including but not limited to a particle’s scalar mass or charge, or the particle’s velocity vector _v_ using a viscous coupling, _e.g._, _F_ _i_ = _−γ_ ( _v_ _i −_ _u_ ) _._ (2) As a simple example we consider a two-dimensional system comprising particles with excluded-volume interactions in a square simulation box of side length 2 _π_ . We combine interpolated flow field data with a viscous coupling. The flow field is a discretized static Taylor-Green vortex, specified by _ux_ = cos( _x_ ) sin( _y_ ) _,_ (3) _uy_ = _−_ sin( _x_ ) cos( _y_ ) _,_ where _u_ is the flow velocity. It has the vorticity _ω_ _≡∇×_ _u_ = 2 _|_ cos( _x_ ) cos( _y_ ) _| ._ (4) In Fig. 4 we show a snapshot of a simulation where the particles were initially placed at random positions distributed equally over the simulation volume. They are driven out of the areas with high vorticity _ω_ by inertial forces and accumulate elsewhere. A complete simulation script can be found in the supplementary information. IX. ENERGY MINIMIZATION Since bulk molecular dynamics are typically set up with random particle positions, initial configurations often have a lot of overlap between neighboring particles. This leads to problems with numerical stability due to very high energies. To remove this overlap there are two common methods. Limiting the forces between particles to a maximum value and performing an energy minimization step FIG. 4. Example for the use of external fields in ESPResSo 4.0. We show the stationary state of particles in a static TaylorGreen vortex flow. The green arrows denote the particle velocity and direction. after the initial setup. While it was possible to cap the the forces in previous version of ESPResSo, now also energy minimization by the steepest descent method is available. It allows relaxing the position as well as the orientation of the particles by running the following iterative scheme: ∆ <sup>_x,y,z_</sup> _i_ <sup>_x,y,z_</sup> _i_ = sgn( _Fi_ <sup>_x,y,z_</sup> _i_ <sup>_x,y,z_</sup> ) min( _γFi_ <sup>_x,y,z_</sup> ∆ <sup>_x,y,z_</sup> _i_ = sgn( _Fi_ <sup>_x,y,z_</sup> ) min( _γFi_ <sup>_x,y,z_</sup> _,_ ∆max) (5) _x_ <sup>_x,y,z_</sup> _i_ = _x_ <sup>_x,y,z_</sup> _i_ + ∆ <sup>_x,y,z_</sup> _i_ _,_ (6) <sup>_x,y,z_</sup> _i_ = _x_ <sup>_x,y,z_</sup> _i_ <sup>_x,y,z_</sup> _i_ + ∆ <sup>_x,y,z_</sup> _i_ <sup>_x,y,z_</sup> _i_ _,_ (6) (a) (b) (c) FIG. 5. (a) Initial configuration of the particles filling the raspberry. (b) Configuration after 100 steps energy relaxation. (c) Configuration after 1000 steps. Andersen interaction. Initially the particles are placed randomly in a cube contained by the sphere, then the energy minimization is performed. For the simulation script and detailed parameters please refer to the supplementary information. X. CLUSTER ANALYSIS An analysis of the spatial clustering of particles is an important tool in many fields of soft matter science. Some examples include the nucleation of crystals [111, 112], clustering of magnetic nanoparticles in magnetic soft matter systems [113–116], and the irreversible agglomeration of soot particles in combustion processes [67, 68, 117]. Clusters are typically defined by means of a criterion for a given pair of particles which takes the form of an equivalence relation. That is, if particles _a_ and _b_ are “neighbors” and particles _b_ and _c_ are “neighbors”, all three particles belong to a cluster. The pair criterion is chosen based on the application. For crystallization studies, a local bond order parameter [118] above a certain threshold on both particles is a common choice. For magnetic systems, a combination of distance and either dipole configuration or pair energies are used [114, 115]. For the agglomeration of soot particles, the bonds created by the collision algorithms are used [68]. While it is possible to perform cluster analysis in the post-processing state of a simulation, this requires the storage of a significant number of snapshots of the simulation. Due to the potentially large amount of storage space this might take, as well as the extra time it takes to write the snapshot to disk, this is often not a good approach. ESPResSo 4.0 therefore introduces an online cluster analysis which can be run from within the simulation. The implementation is loosely based on the Hoshen-Kopelman scheme [119], but does not use a lattice. The procedure is as follows: All pairs of particles are examined. If they are “neighbors” as determined by a user-specified pair criterion, there are several possible cases. _•_ If neither particle belongs to a cluster, a new clusters is created and both particles are marked as members. _•_ If one particle is part of a cluster and the other is while max _i |Fi| ≥_ _F_ max. Here the _x_ <sup>_x,y,z_</sup> _i_ <sup>_x,y,z_</sup> _i_ and _Fi_ <sup>_x,y,z_</sup> while max _i |Fi| ≥_ _F_ max. Here the _x_ <sup>_x,y,z_</sup> _i_ and _Fi_ <sup>_x,y,z_</sup> are the components of the position and force of the _i_ th particle. That is the update rule and limits are applied by component. _γ_ and _F_ max are relaxation parameters provided by the user. The orientation of the particle is relaxed in a similar fashion. Steepest descent energy minimization is available as an alternative to the integrator in ESPResSo. In soft matter simulations the solvent is often treated on a coarse-grained level using a lattice Boltzmann fluid, which interacts with the particles of the system via socalled point coupling [106]. This type of coupling limits the maximal coupling strength for one particle which can lead to unrealistic transport properties for larger objects like colloids. One way to overcome this problem is to use so-called raspberry models [110], rigid bodies of multiple particles, which couple to the fluid in multiple points to reduce interpolation artifacts and can achieve higher friction with the fluid. This can help to obtain better transport coefficients [63, 64]. To setup such a raspberry particle, its volume is filled with particles in a homogeneous manner. A common way to do this is to put the particles into a spherical constraint, give them a repulsive interaction and relax the energy. This can now be easily implemented in ESPResSo. As an example, Fig. 5 show the initial and relaxed configuration of 1400 particles in a spherical constraint with a soft-core Weeks-Chandler not, the free particle is added to the cluster. _•_ If the two particles belong to different clusters, a note is made that the two clusters are one and the same and need to be merged later. The clusters are labeled by numeric IDs, assigned in ascending order. After all pairs of particles are examined, the clusters marked as identical in the previous step are merged. Cluster IDs are traversed in descending order and merged clusters receive the lower of the two cluster IDs. In this way, the merging can be done in a single pass. ESPResSo 4.0 currently contains pair criteria based on inter-particle distance, pairwise short-range energy, and the presence of a bonded interaction. Further criteria can be added easily. The cluster analysis is organized around a `ClusterStructure` object, which provided the methods to run analysis as well as access to the clusters found. Furthermore, some analysis routines are provided on a per-cluster level, _e.g._, for a cluster’s radius of gyration, fractal dimension, or inertia tensor. Lastly, direct access to the particles making up a cluster is provided. As an example, let us consider the simulation of a ferrofluid monolayer, i.e, a two-dimensional suspension of soft spheres carrying a magnetic dipole at their center. The example is loosely based on Ref. [114]. Magnetic particles tend to form chain and ring-like clusters due to the non-isotropic nature of the dipole-dipole potential. For simplicity, we define particles as “neighbors” if the distance between their centers is less than 1 _._ 3 _σ_, where _σ_ denotes the particle diameter in the purely repulsive Lennard-Jones potential [119]. The sample system contains 1000 magnetic particles at an area fraction of _φ_ = 0 _._ 1. The relative strength of the dipolar interactions to the thermal energy is _<u>µ</u>_ <u>0</u> _<u>m</u>_ <sup>2</sup> _λ_ = 4 _πσ_ <sup>3</sup> _k_ B _T_ <sup>_,_</sup> (7) where _µ_ 0 denotes the vacuum permittivity and _m_ the particles’ dipole moment. The dipolar interactions are calculated by means of the dipolar P <sup>3</sup> M method [120] and the dipolar layer correction [121]. While the particle positions are confined to a plane, the magnetic dipoles can rotate freely in three dimensions. This is called a quasi-2D system. In Fig. 6, a snapshot from the simulation along with a plot of the cluster composition of the suspension averaged over 1000 snapshots are shown. The full simulation script is provided in the supplementary information. Please note that the script is meant as an example. For a scientific study, larger systems, higher accuracies for the dipolar interactions, and longer sampling times are needed. XI. PARTICLE-BASED REACTIONS Chemical reactions can take place in many systems, for example water can autodissociate in positively charged 0.09 0.08 0.07 0.06 0.05 0.04 0.03 0.02 0.01 0 2 4 6 8 10 12 14 16 18 20 cluster size FIG. 6. Top: Snapshot of the ferrofluid monolayer. Bottom: Composition of the suspension plotted as fraction of particles being part of a cluster of a given size. protons and negatively charged OH groups, or there are other groups that can dissociate only partially in solvents like water, like the carboxylic group COOH. These groups can be found, for example, in weak polyelectrolytes, charge stabilized colloids, or proteins [122], and their charging state depends on the pH-value [123] of the solution. Therefore, the presence of weak groups in charged polymers (polyelectrolytes) promote phenomena like protonation-configuration coupling [124, 125]. Protonation-configuration coupling means that the configuration of a protein or polymer depends on the protonation state of the titratable groups within the polymer. However, the protonation state itself depends on the configuration. This tight coupling introduces the need to investigate this phenomenon through computer simula # ? FIG. 7. The protonated/deprotonated states of a Monte-Carlo reaction step. Target particles are circled with a dotted line. tions. Reactions can also give rise to a net attraction of particles, which are on average charge neutral [126, 127]. Here, the net charge of the particles fluctuates around its mean, thus allowing a particle to be temporarily positive or negative. This fluctuation effect then induces a net attraction. Investigating physical phenomena like the above with the correct statistics, requires introducing particle based reaction schemes in ESPResSo 4.0 which are described in the following. A typical acidic reaction is shown in Fig. 7: an acid particle (HA) may release a proton (H <sup>+</sup> ), or vice versa, the deprotonated form of the acid (A <sup>_−_</sup> ) may take up a proton. Such protonation reactions change the electrostatic charge of the particles taking part in the reaction. Therefore, ESPResSo with its various electrostatic solvers [128], is well-suited to investigate electrostatic effects involved in reactions. The first scheme that allowed for acid-base reactions in thermodynamic equilibrium using Molecular Dynamics and Monte Carlo simulations appeared in the 1990s [129] in the form of the constant-pH ensemble. Soon after, the reaction ensemble [130, 131] was introduced which allows for the simulation of arbitrary chemical reactions. In both reaction schemes, particle properties (such as the charge) need to be changed and particles need to be created or deleted based on probabilistic criteria. The reaction ensemble and the constant-pH method only differ in the probabilistic criteria [132] and both methods are implemented in ESPResSo 4.0. In the reaction ensemble, arbitrary reactions can be implemented in the simulation: to _l_ is given by [134] acc <sup>RE</sup> <sup>_,ξ_</sup> ( _l|r_ ) = min 1 _,_ ( _V_ Γ) <sup>_<u>νξ</u>_</sup> _z_ _i_ =1 - _<u>Ni</u>_ <sup>_r_</sup> _<u>Ni</u>_ <sup>_r_</sup> <sup><u>!</u></sup> ( _Ni_ <sup>_r_</sup> <sup>+</sup> _i_ <sup>_r_</sup> <sup>+</sup> <sup>_ξνi_</sup> <sup>)!</sup> - exp( _−β_ ∆ _E_ pot _,r→l_ ) _,_ (9) where _Ni_ <sup>_r_</sup> <sup>is</sup> <sup>the</sup> <sup>number</sup> <sup>of</sup> <sup>particles</sup> <sup>prior</sup> <sup>to</sup> <sup>a</sup> <sup>reac-</sup> tion and _ξ_ the “extent” of the reaction which is selected randomly with _ξ_ _±_ 1 and _β_ = 1 _/_ ( _k_ B _T_ ) proportional to the inverse of the temperature. Further parameters are <u>the</u> concentration-dependent reaction constant Γ = _c_ <sup>_◦ν_</sup> exp( _−β_ ∆ _G_ <sup>_◦_</sup> ) where _c_ <sup>_◦_</sup> is the reference concentration for which the change in the free enthalpy ∆ _G_ <sup>_◦_</sup> is tabulated, the potential energy difference with ∆ _E_ pot _,r→l_ = _E_ pot _,r −_ _E_ pot _,l_, the volume of the system _V_ and the total change in the number of molecules _<u>ν</u>_ = <sup>�</sup> _i_ <sup>_νi_</sup> due to the reaction. The corresponding protonation and deprotonation reactions are usually performed after a fixed number of MD simulation steps with constant particle numbers [134]. In addition to the above standard reaction ensemble algorithm, we implemented a rare event sampling method on top of the reaction ensemble [135], called the WangLandau [136] reaction ensemble algorithm. The WangLandau scheme is a so-called flat histogramme technique that samples all states with equal probability. This modification of the algorithm might prove useful when investigating systems with metastable states and rare transitions between them. In the other chemical equilibrium sampling method which is present in literature—the constant-pH ensemble— the acceptance probability for a reaction HA _−−↽−−⇀_ A <sup>_−_</sup> +H <sup>+</sup> is given by: acc <sup>cpH</sup> <sup>_,ξ_</sup> ( _l|r_ ) = min �1 _,_ exp� _−β_ (∆ _E_ pot _±_ (ln(10) _/β_ ) (pH _−_ pK _a_ ))�� _,_ (10) �1 _,_ exp� _−β_ (∆ _E_ pot _±_ (ln(10) _/β_ ) (pH _−_ pK _a_ )) _z_ _i_ =1 _νisi_ = 0 _,_ (8) where pH is the pH of an implicitly imposed proton reservoir, pK _a_ = _−_ log10 exp( _−β_ ∆ _G_ <sup>_◦_</sup> ) and where _±_ is used in the case of a association/dissociation. Additionally the dissociation proposal probability is proportional to the number of dissociable groups HA, while the association proposal probability is proportional to the number of deprotonated groups A <sup>_−_</sup> . As a showcase for our ability to simulate chemcial reactions in ESPResSo 4.0 we present in figure 8 the titration curve of a linear weak polyelectrolyte. A typical titration curve which is obtained from experiment shows the degree of dissociation as a function of _pKa_ _−_ _pH_ . The degree of association _<u>n</u>_ measures how many particles _N_ are in the associated state HA or in the dissociated state A <sup>_−_</sup> : _<u>n</u>_ = _N_ HA _<u>N</u>_ <u>(HA)+</u> _N_ A _−_ <sup>.</sup> <sup>At</sup> <sup>low</sup> <sup>pH,</sup> <sup>a</sup> <sup>weak</sup> <sup>acid</sup> <sup>is</sup> mostly associated <u>(</u> _<u>n</u>_ _≈_ 1) while at higher pH a weak acid becomes less and less associated <u>(</u> _<u>n</u>_ _≈_ 0). The reaction ensemble implementation in ESPResSo also allows for simulations in the grand-canonical ensemble. This is, because the grand canonical simulation where _z_ chemical species of type _si_ with stoichiometric coefficients _νi_ are reacting [133]. The acceptance probability in the reaction ensemble for a reaction from state _r_ 1 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 -4 -3 -2 -1 0 1 2 pKa-pH FIG. 8. The titration curve of a linear weak polyacid obtained with the constant pH method. For increasing pH the acid is less associated. The data is taken from Ref. [132] and simulation parameters are described there in more detail. scheme [137] can be represented as a reaction _∅−−↽−−⇀_ A with Γ = _c_ <sup>_b_</sup> _A_ <sup>exp(</sup> <sup>_βµ_</sup> _A_ <sup>ex</sup> <sup>_,b_</sup> ), where _c_ <sup>_b_</sup> _A_ <sup>is</sup> <sup>the</sup> <sup>bulk</sup> <sup>concen-</sup> tration of the species _A_ and _µ_ <sup>ex</sup> _A_ <sup>_,b_</sup> the excess chemical potential of the species in the bulk. The needed excess chemical potential can be obtained via the Widoms insertion method [137]. We also implemented this method in ESPResSo 4.0 . It resembles a reaction which is constantly rejected while observing potential energy changes due to the insertion of particles. The excess chemical potential in a homogeneous system is then given by [137] <sup>_b_</sup> _A_ <sup>exp(</sup> <sup>_βµ_</sup> _A_ <sup>ex</sup> <sup>_,b_</sup> _A_ <sup>ex</sup> <sup>_,b_</sup> ), where _c_ <sup>_b_</sup> _A_ _._ (11) _µ_ <sup>ex</sup> = _−k_ B _T_ ln �� _e_ <sup>_−β_</sup> <sup>(</sup> <sup>_E_</sup> <sup>pot(</sup> <sup>_N_</sup> <sup>+1)</sup> <sup>_−E_</sup> <sup>pot(</sup> <sup>_N_</sup> <sup>))��</sup> FIG. 9. Sketch of the polarizable coarse grained model for the ionic liquid BMIM PF6. polarization. The basic idea is to add a “charge-on-aspring” (Drude charge) to a particle (Drude core) that mimics an electron cloud which can be elongated to create a dynamically inducible dipole (see Fig. 9)[145]. The energetic minimum of the Drude charge can be obtained self-consistently, which requires several iterations of the system’s electrostatics solver and is usually considered computationally expensive [146]. However, with thermalized cold Drude oscillators, the distance between Drude charge and core is coupled to a thermostat, so that it fluctuates around the self-consistent field solution. This thermostat is kept at a lower temperature compared to the global temperature to minimize the heat flow into the system. A second thermostat is applied on the center of mass of the Drude charge and core system to maintain the global temperature. The downside of this approach is that usually a smaller time step has to be used to resolve the high frequency oscillations of the spring to get a stable system [147]. In ESPResSo, the basic ingredients to simulate such a system are split into three bonds; their combined usage creates polarizable compounds: 1. A _harmonic_ _bond_ between charge and core. 2. For the cold thermostat, a Langevin-type _thermal-_ _ized_ _distance_ _bond_ is used for the Drude-Core dis tance. 3. A _subtract_ _P_ <sup>3</sup> _M_ _short-range_ _bond_ to cancel unwanted electrostatic interaction. The system-wide thermostat has to be applied to the center of mass and not to the core particle directly. Therefore, XII. INCLUDING EXPLICIT DIPOLAR POLARIZATION WITH DRUDE OSCILLATORS A particle’s electron density is redistributed by the local electric field, leading to a nonadditive molecular interaction. Especially the study of ionic liquids (molten salts) polarization plays a large role []. Often, this is effectively included in the force-field ( _e.g._ via reduced charges) to match continuum properties [138–142]. In systems where polarization effects are supposed to be inhomogeneous, e.g. at interfaces, incorporating the dynamic nature of polarization can refine the physical picture. Also simulations of bulk systems can benefit from explicit polarization. For example, the experimental values for the static dielectric constant and the self-diffusion coefficient of water were accurately reproduced using a polarizable model [143]. Thermalized cold Drude oscillators [144], available in ESPResSo 4.0, can be used to model this dynamic particle 10 <sup>4</sup> 10 <sup>2</sup> 10 <sup>0</sup> 10 <sup>−2</sup> 10 <sup>−4</sup> the particles have to be excluded from the global thermostat, which is possible in ESPResSo by setting the temperature and friction coefficient of the Drude complex to zero. It thus remains possible to use a global Langevin thermostat for non-polarizable particles. As the Drude charge should not alter the charge or mass of the Drude complex, both properties have to be subtracted from the core when adding the Drude particle. In the following convention, we assume that the Drude charge is always negative. It is calculated via the spring constant _k_ and _√_ <u>polarizability</u> _α_ (in units of inverse volume) with _qd_ = _−kα_ . For polarizable molecules ( _i.e._, con (a) (b) _F_ ALM = _f_ ˆ _u_ _U_ t t t = tB t = tR _F_ fric = Γ _U_ ALM passive t <sup>2</sup> t <sup>2</sup> _√_ with _qd_ = _−kα_ . For polarizable molecules ( _i.e._, con nected particles, coarse grained models etc.) with partial charges on the molecule sites, the Drude charges will have electrostatic interaction with other cores of the molecule. Often, this is unwanted, as it might be already part of the force-field (via partial charges or parametrization of the covalent bonds). Without any further measures, the elongation of the Drude particles will be greatly affected by the partial charges of the molecule that are in close proximity. To prevent this, one has to cancel the interaction of the Drude charge _qd_ with the partial charges of the cores _q_ partial within the molecule. This can be done with the _subtracts_ _P_ <sup>3</sup> _M_ _short-range_ _bond_, which is also used to cancel the electrostatics between Drude core _↔_ _q_ core and Drude charge _qd_ . This ensures that only the dipolar interaction inside the molecule remains. The error of this approximation increases with the share of the long-range part of the electrostatic interaction. In most cases, this error is negligible comparing the distance of the charges and the real-space cutoff of the P <sup>3</sup> M electrostatics solver. In ESPResSo, helper methods assist setting up this exclusion. In combination with particle polarizability, the _Thole_ _correction_ [148] is often used to correct for overesti mation of induced dipoles at short distances. Ultimately, it alters the short-range electrostatics of P <sup>3</sup> M to result in a damped Coulomb interaction potential �� _._ (12) 10 <sup>−6</sup> 10 <sup>−3</sup> 10 <sup>−2</sup> 10 <sup>−1</sup> 10 <sup>0</sup> 10 <sup>1</sup> 10 <sup>2</sup> t FIG. 10. The Active Langevin Model (ALM). (a) A twodimensional (2D) schematic of a shape anisotropic ALM selfpropelled particle. The balance of self-propulsion force _f_ ˆ _u_ and fluid friction <u>Γ</u> _t_ _U_, leads to a constant swim speed _U_ . (b) The mean-squared displacement _⟨r_ <sup>2</sup> _⟩_ as a function of time _t_ of a passive Langevin particle (blue) and ALM swimmer (red), with error bars indicating the standard error. In the passive case, the ballistic regime _⟨r_ <sup>2</sup> _⟩∝_ _t_ <sup>2</sup> transitions to a diffusive regime _⟨r_ <sup>2</sup> _⟩∝_ _t_ around the ballistic-to-diffusion crossover time _tB_, as indicated by the grey vertical line. The ballistic regime is stretched by the activity and enhanced diffusion sets on a time scale associated with rotational diffusion _tR_ . XIII. ACTIVE PARTICLES In ESPResSo 4.0 it is possible to simulate active systems, wherein individual particles constantly transduce (internal) energy to perform work in the form of motion. The combination of this self-propulsion with particle interactions gives rise to unique out-of-equilibrium behaviors, of which living systems offer a wealth of examples: mammals, fish and birds [149–153], as well as microorganisms [154–161]. The last decade and a half have seen the rapid development of man-made counterparts to microorganisms, following the first experimental realizations of “chemical swimmers” by Paxton _et_ _al._ [162] and Howse _et_ _al._ [163], respectively. These artificial swimmers re duce the complexity of living matter, but still display signature features of being out of equilibrium, such as the ability to perform work [164] and motility-induced phase separation [165, 166]. _V_ ( _r_ ) = <sup>_<u>qiqj</u>_</sup> _r_ - 1 _−_ _e_ <sup>_−sr_</sup> 1 + <sup>_<u>sr</u>_</sup> 2 The Thole scaling coefficient _s_ is related to the polarizabilities _αk_ and Thole damping parameters _ak_ of the interacting species via _s_ = <sup><u>(</u></sup> ( <sup>_<u>a</u>_</sup> _α_ <sup>_<u>i</u>_</sup> <sup><u>+</u></sup> _iα_ <sup>_<u>a</u>_</sup> _j_ ) <sup>_<u>j</u>_</sup> <sup>1)</sup> <sup>_//_</sup> <sup>62</sup> <sup>_._</sup> (13) Note that for the Drude oscillators, the Thole correction should be applied only for the dipole part _±qd_ added by the Drude charge and not on the total core charge, which can be different for polarizable ions. Also note that the Thole correction acts between all dipoles, intraand intermolecular. Again, the accuracy is related to the P <sup>3</sup> M accuracy and the split between short-range and long-range electrostatics interaction. ESPResSo assists with the bookkeeping of mixed scaling coefficients and has convenient methods to set up all necessary Thole interactions. Significant progress has been made both theoretically and computationally in understanding the individual and collective behavior of swimmers using simple models. Arguably the most famous of these is the Vicsek model [167], followed closely by the active Brownian model [168–170]. In our developments, we have drawn inspiration from the Active Brownian Model (ABM) and created a variant thereof: The Active Langevin Model (ALM), which we will describe here. This ALM can also be coupled to the ESPResSo (GPU) lattice Boltzmann (LB) fluid dynamics solver [48, 70] to account for the characteristic dipolar flow field that is associated with self-propulsion by microorganisms [171, 172] as well as chemical swimmers [173]. Our implementation [65] is similar to the sub-lattice approach introduced by Nash _et_ _al._ [174, 175]. We refer to this extension as the hydrodynamic ALM (HALM) and we will briefly touch upon it here. The ALM equation of motion for the translation of the _i_ th swimmer’s center of mass _r_ _i_ is given by: _M_ <sup>_<u>∂</u>_</sup> <sup>2</sup> _∂t_ <sup>2</sup> <sup>_r_</sup> <sup>_i_</sup> <sup>=</sup> <sup>_<u>−</u>_</sup> <sup><u>Γ</u></sup> <sup>_t_</sup> _<u>∂</u>_ _∂t_ <sup>_r_</sup> <sup>_i_</sup> <sup>+</sup> <sup>_f_</sup> <sup>ˆ</sup> <sup>_u_</sup> <sup>_i_</sup> _−_ _j̸_ = _i_ _∇_ _V_ ( _rij,_ _Q_ _i,_ _Q_ _j_ ) + _ξ_ _i,t_ ( _t_ ) _._ (14) pusher ~~puller~~ FIG. 11. Sketches of two types of force-free hydrodynamic ALM (HALM) swimmers. Pusher and puller swimmers result from a change in the placement of the counter force (blue arrow) with respect to the swimmer’s center, on which a propulsive force (red arrow) is applied. These forces are resolved sub-lattice (gray mesh) and interpolated to achieve the flow fields, as sketched using black arrows. The inherent friction of the swimmer’s body with the lattice Boltzmann fluid leads to a persistent motion with a well-defined swim speed. The similarity of this figure to Fig. 4.1 from R. Nash’s PhD thesis [175] is intentional and emphasizes the inspiration for our algorithm. particles. However, ALM approaches the fully damped ABM when the friction coefficient is chosen to be large. In this limit, the time step should be suitably small to ensure that the algorithm produces the correct physics. HALM introduces coupling between ALM and an LB fluid to account for hydrodynamic interactions between swimmers, particles, and obstacles. In developing HALM we have drawn inspiration from the work of Nash _et_ _al._ [174, 175], who formulated a similar coupling to an LB fluid for the ABM. A directional self-propulsion force is applied to the particle, similar to the way this is done in ALM. In LB, a single point particle gains an effective radius [179] or rather an inherent friction by coupling to the grid. This friction counter-balances the propulsive force leading to a constant swim speed. However, this also leads to force onto the LB fluid, while self-propulsion in a fluid should be force free. Therefore, a counter-force is applied to the LB fluid to ensure that momentum is not transferred into it globally, see Fig. 11. This force/ counter-force pair induces a flow field with the typical leading-order dipolar contribution that characterizes selfpropulsion. Figure 11 illustrates two combinations of the force pair leading to the well-known puller and pusher dipolar flow fields, representing, _e.g._, algae [171, 180] and spermatozoa [181], respectively. We refer to Ref. [65] for full details of the implementation. The reason for introducing ALM and HALM here, rather than relying on Brownian dynamics, is related to the way particles in ESPResSo couple to the LB fluid. Using these algorithms in tandem, the effect of the hy Here, we assume that the swimmer is fully shape anisotropic and we have introduced the following quantities: the mass _M_, the translational diffusion tensor <u>Γ</u> _t_, a (co-rotating) unit vector that gives the direction of self-propelled motion _u_ ˆ _i_, the self-propulsion force _f_, and swimmer-swimmer interaction potential _V_ . The latter depends on the separation _rij_ _≡|_ _r_ _i −_ _r_ _j|_ and orientation of the swimmers, as specified by quaterions _Q_ _i_ . Thermal noise is introduced via _ξ_ _i,t_ ( _t_ ), which satisfies _⟨_ _ξ_ _i,t_ ( _t_ ) _⟩_ = 0 and _⟨_ _ξ_ _i,t_ ( _t_ ) _⊗_ _ξ_ _j,t_ ( _t_ <sup>_′_</sup> ) _⟩_ = 6 _k_ B _T_ <u>Γ</u> _~~t~~_ _δijδ_ ( _t_ _−_ _t_ <sup>_′_</sup> ). The equation of motion for quaternions is lengthy and well-described in Ref. [176], it is therefore not reproduced here. Figure 10a shows a representation of an ALM swimmer. Each particle is assigned a direction of self-propulsion _u_ ˆ _i_, along which it experiences a constant force _F_ ALM = _f_ ˆ _u_ . This self-propulsion force balances against the friction exerted by the implicit solvent, _F_ fric = <u>Γ</u> _~~t~~_ _U_, leading to persistent directed motion with swim speed _U_ = _|_ _U_ _|_ . Individual swimmers can have different propulsion forces and/or friction matrices in ESPResSo 4.0, providing users with tremendous flexibility in creating mixtures with a range of mobilities. A swimmer’s direction of self-propulsion may be changed by rotational Brownian motion or by torques, either from external fields or collisions. The former leads to enhanced diffusion [163] as shown in Fig. 10b. ALM in ESPResSo 4.0 currently does not allow for the coupling of translational and rotational degrees of freedom, as required for the simulation of L-shaped [177] and chiral swimmers [178]; future releases will bring such functionality. Lastly, note that ALM is not fully damped (Fig. 10b), _i.e._, there is an inertial component to the dy namics, which is uncommon in simulating (large) colloidal drodynamic interactions between swimmers may be disentangled, in much the same way as was done for passive particles [182]. Careful tuning of the relevant hydrodynamic parameters and the self-propulsion forces is key to reproducing low-Reynolds number hydrodynamic solutions, we refer to Ref. [183] for an in-depth discussion. These authors have verified that the Nash _et_ _al._ implementation [174, 175] and HALM have the same near-field flow characteristics, long-range hydrodynamic retardation effects, and particle dynamics [184]. Thus, the inertial component to HALM does not significantly affect the dynamics of our model. ALM and HALM can both be used in conjunction with the raspberry method of creating shape-anisotropic particles [63, 64, 110, 185]. This enables, for example, the study of the effect of polarization and roughness on motility-induced clustering [186]. HALM combined with raspberry particles leads to hydrodynamic multipole moments beyond the leading dipole moment for the selfpropulsion of shape-anisotropic particles in fluids [65]. This property has been exploited to determine the effect of these hydrodynamic moments on the motion of these swimmers in confining geometries [66], as well as their interaction with passive particles in their surrounding [65, 183]. The use of raspberry particles in combination with HALM removes most of the lattice artifacts that pointparticle HALM suffers from [65]. We therefore recommend employing this combination within ESPResSo to properly account for any rigid body dynamics in a fluid, including rotational coupling due to shape anisotropies. XIV. CONCLUSIONS In this work, we outlined the major revisions that ESPResSo 4.0 has undergone, and the benefits that the user will experience from these changes. These include the reimplementation of the user interface in Python and an overhaul of the core architecture to modern software development paradigms. We have also reported new features and presented them accompanied by specific use cases. This enables the simulation of systems at the forefront of soft matter research, including active matter and catalytic reactions. We foresee a bright future for ESPResSo as a software package and as a research project. Together with our collaborators, we will further improve the documentation and usability of this platform. In addition, algorithmic improvements are planned, which include: (i) Adaptive grid refinement to the electrokinetics code. (ii) A loadbalancing scheme for efficient simulation of heterogeneous systems. (iii) Lees-Edwards boundary conditions for rheological measurements. We cordially invite new users to [1] P. G. de Gennes, Reviews of Modern Physics 64, 645 (1992). try out ESPResSo as a simulation tool for their research and participate in its continued development. The current status of the package and the latest tutorials and documentation can be found on the project website `[http://espressomd.org](http://espressomd.org)`, or on GitHub `[https:](https://github.com/espressomd/)` `[//github.com/espressomd/](https://github.com/espressomd/)` . ACKNOWLEDGMENTS We would like to acknowledge more than 100 researchers who contributed over the last fifteen years to the ESPResSo software, and whose names can be found on our website `[http://espressomd.org](http://espressomd.org)` or in the `AUTHORS` file distributed with ESPResSo. We are also grateful to our colleagues of the SFB 716 for numerous suggestions for extending the capabilities of ESPResSo and in helping us to improve our software. As part of a collaboration [108], Milena Smiljanic contributed code to the cluster analysis framework, particularly to the analysis routines on the single cluster level. CH, KS, and FW gratefully acknowledge funding by the German Science Foundation (DFG) through the collaborative research center SFB 716 within TP C5, the SimTech cluster of excellence (EXC 310), and grants HO 1108/25-1, HO 1108/26-1, AR 593/7-1, HO 1108/28-1. MK, JdG, and CH thank the DFG for funding through the SPP 1726 Microswimmers–From Single Particle Motion to Collective Behavior. JdG further acknowledges funding from an NWO Rubicon Grant (#680501210) and a Marie Sk�lodowska-Curie Intra European Fellowship (G.A. No. 654916) within Horizon 2020. The simulations were partially performed on the bwUniCluster funded by the Ministry of Science, Research and Arts and the Universities of the State of Baden-W¨urttemberg, Germany, within the framework program bwHPC. AUTHOR CONTRIBUTIONS Supervision: CH; Funding Acquisition, CH; Resources, CH; Conceptualization: CH, RW, and FW. Writing: All authors contributed to the preparation of the manuscript. Software and Validation: FW, RW, and KS are core developers of ESPResSo. The main code contributors of individual features discussed in this article are the following. Test infrastructure: KS, MK. Visualization: KB, MK. Particle-based reactions: JL. Drude oscillators: KB. External fields: FW. Steepest descent energy minimization: FW. Cluster analysis: RW. Active particles: JdG, HM. H5MD parallel output: KS. VTF output: DS. A full list of code contributions can be found at `[https://github.](https://github.com/espressomd/espresso/graphs/contributors)` `[com/espressomd/espresso/graphs/contributors](https://github.com/espressomd/espresso/graphs/contributors)` . [2] M. Doi, _Soft_ _Matter_ _Physics_ (Oxford University Press, 2013). [3] J.-L. Barrat and J.-P. Hansen, _Basic_ _Concepts_ _fo_ _Simple_ _and_ _Complex_ _Liquids_ (Cambridge University Press, 2003) iSBN: 0-521-78953-2. [4] M. Doi and S. F. Edwards, _The_ _Theory_ _of_ _Polymer_ _Dynamics_, Vol. 73 (Oxford University Press, 1988). [5] M. Rubinstein and R. H. Colby, _Polymer Physics_ (Oxford University Press, Oxford, UK, 2003). [6] E. J. Verwey and J. T. G. Overbeek, _Theory_ _of_ _the_ _stability_ _of_ _Lyophobic_ _Colloids_ (Elsevier, Amsterdam, 1948). [7] H. L¨owen, Journal of Physics: Condensed Matter 13, R415 (2001). [8] S. Chandrasekhar, _Liquid_ _Crystals_ (Cambridge, 1992). [9] I. V. Hamley, _Introduction_ _to_ _Soft_ _Matter_ (Wiley, 2003) iSBN: 0-471-89952-6. [10] P. Nelson, _Biological_ _Physics_ _-_ _Energy,_ _Information,_ _Life_ (Freeman, 2004) iSBN: 0-7167-4372-8. [11] I. Levental, P. C. Georges, and P. A. Janmey, [Soft](http://dx.doi.org/levental07a.pdf:levental07a.pdf:PDF) Matter 3, 299 (2007). [12] J. Ubbink, A. Burbidge, and R. Mezzenga, Soft [Matter](http://dx.doi.org/10.1039/B802183J) 4, [1569](http://dx.doi.org/10.1039/B802183J) (2008). [13] S. Polarz and M. Antonietti, Chemical [Communications](http://dx.doi.org/10.1039/B205708P) , [2593](http://dx.doi.org/10.1039/B205708P) (2002). [14] K. Kroy and E. Frey, Annalen der Physik 14, 20 (2005). [15] D. Frenkel, Science 296, 65 (2002). [16] U. Seifert, Reports on Progress in Physics 75, 126001 (2012). [17] M. E. Cates, Reports on Progress [in](http://stacks.iop.org/0034-4885/75/i=4/a=042601) Physics 75, 042601 [(2012).](http://stacks.iop.org/0034-4885/75/i=4/a=042601) [18] E. <sup>´</sup> Fodor and M. Marchetti, Physica A: Statistical Me chanics and its Applications 504, 106 (2018). [19] B. J. Alder and T. E. Wainwright, Journal [of](http://dx.doi.org/10.1063/1.1743957) Chemical Physics [27](http://dx.doi.org/10.1063/1.1743957), 1208 (1957). [20] B. Alder and T. Wainwright, Physical [Review](http://dx.doi.org/10.1103/PhysRev.127.359) 127, 359 [(1962).](http://dx.doi.org/10.1103/PhysRev.127.359) [21] P. Pusey, W. C. Poon, S. Ilett, and P. Bartlett, Journal of Physics: Condensed Matter 6, A29 (1994). [22] M. A. Bates and D. Frenkel, The Journal of Chemical Physics [109](http://dx.doi.org/10.1063/1.477248), 6193 (1998). [23] R. van Roij, M. Dijkstra, and J.-P. Hansen, [Physical](http://dx.doi.org/10.1103/PhysRevE.59.2010) Review E 59, 2010 (1999). [24] M. E. Leunissen, C. G. Christova, A. P. Hynninen, C. P. Royall, A. I. Campbell, A. Imhof, M. Dijkstra, R. van Roij, and A. van Blaaderen, Nature 437, 235 (2005). [25] P. J. Camp, J. C. Shelley, and G. N. Patey, Physical Review Letters 84, 115 (2000). [26] Z. Wang, C. Holm, and H. W. M¨uller, Physical Review E 66, 021405 (2002). [27] S. H. L. Klapp and M. Schoen, Journal of Molecular Liquids [109](http://dx.doi.org/DOI: 10.1016/j.molliq.2003.08.003), 55 (2004). [28] M. Klinkigt, R. Weeber, S. Kantorovich, and C. Holm, Soft Matter [9](http://dx.doi.org/ 10.1039/C2SM27290C), 3535 (2013). [29] M. J. Stevens and K. Kremer, Physical Review Letters 71, 2228 (1993). [30] A. V. Dobrynin, M. Rubinstein, and S. P. Obukhov, Macromolecules 29, 2974 (1996). [31] U. Micka, C. Holm, and K. Kremer, Langmuir 15, 4033 (1999). [32] H. J. Limbach, C. Holm, and K. Kremer, Europhysics Letters 60, 566 (2002). [33] S. Schneider and P. Linse, The European Physical Jour nal E [8](http://dx.doi.org/10.1140/epje/i2002-10043-y), 457 (2002). [34] Q. Yan and J. J. de Pablo, Physical Review Letters 91, 018301 (2003). [35] B. A. Mann, R. Everaers, C. Holm, and K. Kremer, Europhysics Letters 67, 786 (2004). [36] R. Weeber, S. Kantorovich, and C. Holm, Soft [Matter](http://dx.doi.org/10.1039/C2SM26097B) 8, [9923](http://dx.doi.org/10.1039/C2SM26097B) (2012). [37] R. Weeber, M. Hermes, A. M. Schmidt, and C. Holm, Journal of Physics: [Condensed](http://dx.doi.org/ 10.1088/1361-648x/aaa344) Matter 30, 063002 [(2018).](http://dx.doi.org/ 10.1088/1361-648x/aaa344) [38] S. J. Plimpton, Journal of Computational Physics 117, 1 (1995). [39] H. V. Guzman, H. Kobayashi, N. Tretyakov, A. C. Foga rty, K. Kreis, J. Krajniak, C. Junghans, K. Kremer, and T. Stuehn, arXiv preprint arXiv:1806.10841 (2018). [40] H. J. C. Berendsen, D. van der Spoel, and R. van Drunen, Computer Physics [Communications](http://dx.doi.org/10.1016/0010-4655%0x2895%0x2900042-e) 91, 43 (1995). [41] D. van der Spoel, E. Lindahl, B. Hess, G. Groenhof, A. E. Mark, [and H. J. C. Berendsen, Journal of Computational](http://dx.doi.org/ 10.1002/jcc.20291) Chemistry 26, 1701 (2005). [42] S. Pronk, S. P´all, R. Schulz, P. Larsson, P. Bjelkmar, R. Apostolov, M. R. Shirts, J. C. Smith, P. M. Kasson, D. van der Spoel, B. Hess, and E. Lindahl, [Bioinformat-](http://dx.doi.org/ 10.1093/bioinformatics/btt055) ics 29 [,](http://dx.doi.org/ 10.1093/bioinformatics/btt055) 845 (2013). [43] M. Nelson, W. Humphrey, A. Gursoy, A. Dalke, L. Kale, R. D. Skeel, and K. Schulten, International Journal of Supercomputer Applications 10, 251 (1996). [44] J. C. Phillips, R. Braun, W. Wang, J. Gumbart, E. Tajkhorshid, E. Villa, C. Chipot, R. D. Skeel, L. Kale, and K. Schulten, Journal of Computational Chemistry 26, 1781 (2005). [45] J. C. Phillips, J. E. Stone, K. L. Vandivort, T. G. Arm strong, J. M. Wozniak, M. Wilde, and K. Schulten, in _Proceedings_ _of_ _the_ _1st_ _[First](http://dx.doi.org/ 10.1109/HPTCDL.2014.7)_ _Workshop_ _for_ _High_ _Per-_ _formance_ _Technical_ _[Computing](http://dx.doi.org/ 10.1109/HPTCDL.2014.7)_ _in_ _Dynamic_ _Languages_ (IEEE Press, 2014) pp. 6–17. [46] D. A. Pearlman, D. A. Case, J. W. Caldwell, W. R. Ross, I. T. E. Cheatham, S. DeBolt, D. Ferguson, G. Seibel, and P. Kollman, Computer Physics Commications 91, 1 (1995). [47] D. A. Case, T. E. Cheatham, T. Darden, H. Gohlke, R. Luo, K. M. Merz, A. Onufriev, C. Simmerling, B. Wang, and R. Woods, Journal of Computational Chemistry 26, 1668 (2005). [48] A. Arnold, O. Lenz, S. Kesselheim, R. Weeber, F. Fahren berger, D. R¨ohm, P. Koˇsovan, and C. Holm, in _[Meshfree](http://dx.doi.org/ 10.1007/978-3-642-32979-1_1)_ _Methods_ _for_ _Partial_ _Differential_ _Equations_ _VI_, Lecture Notes in Computational Science and Engineering, Vol. 89, edited by M. Griebel and M. A. Schweitzer (Springer Berlin Heidelberg, 2013) pp. 1–23. [49] M. Deserno and C. Holm, Journal of Chemical Physics 109, 7678 (1998). [50] M. Deserno and C. Holm, Journal of Chemical Physics 109, 7694 (1998). [51] A. Arnold and C. Holm, Computer Physics Communica tions 148, 327 (2002). [52] A. Arnold and C. Holm, Chemical Physics Letters 354, 324 (2002). [53] A. Arnold, J. de Joannis, and C. Holm, Journal of Chemical Physics 117, 2496 (2002). [54] A. Arnold, J. de Joannis, and C. Holm, Journal of Chemical Physics 117, 2503 (2002). [55] A. Arnold and C. Holm, in _Advanced_ _Computer_ _Simula-_ _tion_ _Approaches_ _for_ _Soft_ _Matter_ _Sciences_ _II_, Advances in Polymer Sciences, Vol. II, edited by C. Holm and K. Kremer (Springer, Berlin, 2005) pp. 59–109. [56] A. Arnold and C. Holm, Journal of Chemical Physics 123, 144103 (2005). [57] A. Arnold, B. A. Mann, and C. Holm, in _Computer_ _Simulations_ _in_ _Condensed_ _Matter:_ _from_ _Materials_ _to_ _Chemical_ _Biology_, Lecture Notes in Physics No. 1, edited by M. Ferrario, G. Ciccotti, and K. Binder (Springer, Berlin, Germany, 2006) pp. 193–222. [58] S. Tyagi, A. Arnold, and C. Holm, Journal of Chemical Physics 127, 154723 (2007). [59] S. Tyagi, A. Arnold, and C. Holm, Journal of Chemical Physics 129, 204102 (2008). [60] C. Tyagi, M. S¨uzen, M. Sega, M. Barbosa, S. S. Kan torovich, and C. Holm, The Journal of Chemical Physics 132, 154112 (2010). [61] A. Arnold, K. Breitsprecher, F. Fahrenberger, S. Kessel heim, O. Lenz, and C. Holm, Entropy 15, 4569 (2013). [62] F. Fahrenberger and C. Holm, Physical [Review](http://dx.doi.org/10.1103/PhysRevE.90.063304) E 90, [063304](http://dx.doi.org/10.1103/PhysRevE.90.063304) (2014). [63] L. P. Fischer, T. Peter, C. Holm, and J. de Graaf, [The](http://dx.doi.org/ 10.1063/1.4928502) Journal of Chemical [Physics](http://dx.doi.org/ 10.1063/1.4928502) 143, 084107 (2015). [64] J. de Graaf, T. Peter, L. P. Fischer, and C. Holm, [The](http://dx.doi.org/ 10.1063/1.4928503) Journal of Chemical [Physics](http://dx.doi.org/ 10.1063/1.4928503) 143, 084108 (2015). [65] J. de Graaf, H. Menke, A. J. Mathijssen, M. Fabritius, C. Holm, and T. N. Shendruk, The Journal of Chemical Physics [144](http://dx.doi.org/ 10.1063/1.4944962), 134106 (2016). [66] J. de Graaf, A. J. Mathijssen, M. Fabritius, H. Menke, C. Holm, and T. N. Shendruk, Soft [Matter](http://dx.doi.org/ 10.1039/C6SM00939E) 12, 4704 [(2016).](http://dx.doi.org/ 10.1039/C6SM00939E) [67] G. Inci, A. Arnold, A. Kronenburg, and R. Weeber, Aerosol Science and [Technology](http://dx.doi.org/10.1080/02786826.2014.932942) 48, 842 (2014). [68] G. Inci, A. Kronenburg, R. Weeber, and D. Pfl¨uger, Flow, Turbulence and Combustion, 1 (2017). [69] C. Schober, D. Keerl, M. J. Lehmann, and M. Mehl, in _Proceedings_ _of_ _the_ _VII_ _International_ _Conference_ _on_ _Coupled_ _Problems_ _in_ _Science_ _and_ _Engineering_, edited by M. Papadrakakis, E. O˜nate, and B. Schrefler (International Center for Numerical Methods in Engineering, 2016). [70] D. R¨ohm and A. Arnold, The European Physical Journal Special Topics 210, 89 (2012). [71] I. Cimr´ak, M. Gusenbauer, and T. Schrefl, [Computers](http://dx.doi.org/10.1016/j.camwa.2012.01.062) & Mathematics with [Applications](http://dx.doi.org/10.1016/j.camwa.2012.01.062) 64, 278 (2012). [72] I. Cimrak, M. Gusenbauer, and I. Janˇcigov´a, [Computer](http://dx.doi.org/10.1016/j.cpc.2013.12.013r) Physics [Communications](http://dx.doi.org/10.1016/j.cpc.2013.12.013r) 185, 900 (2014). [73] I. Cimr´ak, I. Jancigov´a, K. Bachrat´a, and H. Bachrat`y, in _III_ _International_ _Conference_ _on_ _Particle-based_ _Methods–Fundamentals_ _and_ _Applications_ _PARTICLES_, Vol. 2013 (2013) pp. 133–144. [74] G. Rempfer, G. B. Davies, C. Holm, and J. de Graaf, The Journal of Chemical [Physics](http://dx.doi.org/ 10.1063/1.4958950) 145, 044901 (2016). [75] A. Guckenberger, M. P. Schraml, P. G. Chen, M. Leonetti, and S. Gekle, Computer [Physics](http://dx.doi.org/10.1016/j.cpc.2016.04.018) Com[munications](http://dx.doi.org/10.1016/j.cpc.2016.04.018) 207, 1 (2016). [76] C. B¨acher, L. Schrack, and S. Gekle, [Physical](http://dx.doi.org/10.1103/PhysRevFluids.2.013102) Review Fluids 2, 013102 (2017). [77] K. Kratzer, A. Arnold, and R. J. Allen, Journal of Chemical Physics 138, 164112 (2013). [78] K. Kratzer, J. T. Berryman, A. Taudt, J. Zeman, and A. Arnold, Computer Physics [Communications](http://dx.doi.org/ 10.1016/j.cpc.2014.03.013) 185, [1875](http://dx.doi.org/ 10.1016/j.cpc.2014.03.013) (2014). [79] S. Samin, Y. Tsori, and C. Holm, Physical [Review](http://dx.doi.org/ 10.1103/PhysRevE.87.052128) E 87 (2013), [10.1103/PhysRevE.87.052128.](http://dx.doi.org/ 10.1103/PhysRevE.87.052128) [80] A. Paszke, S. Gross, S. Chintala, G. Chanan, E. Yang, Z. DeVito, Z. Lin, A. Desmaison, L. Antiga, and A. Lerer, in _Neural_ _Information_ _Processing_ _Systems_ (2017). [81] F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay, Journal of Machine Learning Research 12, 2825 (2011). [82] F. Chollet, _Deep_ _learning_ _with_ _Python_ (Manning Publi cations Co., 2017). [83] A. Meurer, C. P. Smith, M. Paprocki, O. Cert´ık, <sup>ˇ</sup> S. B. Kirpichev, M. Rocklin, A. Kumar, S. Ivanov, J. K. Moore, S. Singh, T. Rathnayake, S. Vig, B. E. Granger, R. P. Muller, F. Bonazzi, H. Gupta, S. Vats, F. Johansson, F. Pedregosa, M. J. Curry, A. R. Terrel, v. Rouˇcka, A. Saboo, I. Fernando, S. Kulal, R. Cimrman, and A. Scopatz, PeerJ Computer [Science](http://dx.doi.org/10.7717/peerj-cs.103) 3, e103 (2017). [84] W. Stein and D. Joyner, ACM SIGSAM Bulletin 39, 61 (2005). [85] J. D. Hunter, Computing In [Science](http://dx.doi.org/10.1109/MCSE.2007.55) & Engineering 9, [90](http://dx.doi.org/10.1109/MCSE.2007.55) (2007). [86] P. Ramachandran and G. Varoquaux, Computing in Science & Engineering 13, 40 (2011). [87] E. Jones, T. Oliphant, P. Peterson, _et_ _al._, [“SciPy:](https://scipy.org/) Open source [scientific](https://scipy.org/) tools for Python,” (2001–2018). [88] W. McKinney, in _Proceedings_ _of_ _the_ _9th_ _Python_ _in_ _Sci-_ _ence_ _Conference_, edited by S. van der Walt and J. Mill man (2010) pp. 51 - 56. [89] D. Reith, M. P¨utz, and F. M¨uller-Plathe, Journal of Computational Chemistry 24, 1624 (2003). [90] T. Kluyver, B. Ragan-Kelley, F. P´erez, B. E. Granger, M. Bussonnier, J. Frederic, K. Kelley, J. B. Hamrick, J. Grout, S. Corlay, P. Ivanov, D. Avila, S. Abdalla, and C. Willing, in _Positioning_ _and_ _Power_ _in_ _Academic_ _Publishing:_ _Players,_ _Agents_ _and_ _Agendas_, edited by F. Loiyides and B. Schmidt (IOS Press, 2016) pp. 87–90. [91] R. W. Hockney and J. W. Eastwood, _Computer_ _Simula-_ _tion_ _Using_ _Particles_ (IOP, London, 1988). [92] A. Arnold, F. Fahrenberger, C. Holm, O. Lenz, M. Bolten, H. Dachsel, R. Halver, I. Kabadshow, F. G¨ahler, F. Heber, J. Iseringhausen, M. Hofmann, M. Pippig, D. Potts, and G. Sutmann, [Physical](http://dx.doi.org/10.1103/PhysRevE.88.063308) Review E 88, [063308](http://dx.doi.org/10.1103/PhysRevE.88.063308) (2013). [93] F. Nestler, Applied Numerical Mathematics 105, 25 (2016). [94] R. Weeber, F. Nestler, F. Weik, M. Pippig, D. Potts, and C. Holm, Arxiv pre-print arXiv:1808.10341 (2018). [95] Y. L. Raikher and O. V. Stolbov, JMMM 258/259, 477 (2003). [96] K. Morozov, M. Shliomis, and H. Yamaguchi, Physical Review E 79, 040801 (2009). [97] U. Ayachit, _The_ _ParaView_ _Guide:_ _A_ _Parallel_ _Visualiza-_ _tion_ _Application_ (Kitware, Inc., USA, 2015). [98] W. Humphrey, A. Dalke, and K. Schulten, Journal of Molecular Graphics 14, 33 (1996). [99] M. Fletcher and R. Liebscher, [“PyOpenGL–the](http://pyopengl.sourceforge.net) Python [OpenGL](http://pyopengl.sourceforge.net) binding,” (2005). [100] D. Shreiner, _OpenGL_ _Reference_ _Manual:_ _The_ _Official_ _Reference_ _Document_ _to_ _OpenGL,_ _Version_ _1.2_, 3rd ed. (Addison-Wesley Longman Publishing Co., Inc., Boston, MA, USA, 1999). [101] D. R¨ohm, _Lattice_ _Boltzmann_ _Simulations_ _on_ _GPUs_, Diplomarbeit, University of Stuttgart (2011). [102] P. de Buyl, P. H. Colberg, and F. H¨ofling, Computer Physics Communications 185, 1546 (2014). [103] The HDF Group, “Hierarchical data format, version 5,” `[http://www.hdfgroup.org/HDF5/](http://www.hdfgroup.org/HDF5/)` . [104] A. Collette, _Python_ _and_ _HDF5_ (O’Reilly, 2013). [105] “Boost [C++](https://www.boost.org) libraries,” `[https://www.boost.org](https://www.boost.org)` (1998– 2018). [106] B. D¨unweg and A. J. C. Ladd, in _Advanced_ _Computer_ _Simulation_ _Approaches_ _for_ _Soft_ _Matter_ _Sciences_ _III_, Advances in Polymer Science, Vol. 221 (Springer-Verlag Berlin, Berlin, Germany, 2009) pp. 89–166. [107] [“Clang: a C language family frontend for LLVM,”](https://clang.llvm.org/) `[https:](https://clang.llvm.org/)` `[//clang.llvm.org/](https://clang.llvm.org/)` . [108] M. Smiljanic, R. Weeber, D. Pfl¨uger, C. Holm, and A. Kronenburg, Submitted to European Physics Journal Special Topics (2018). [109] K. Breitsprecher, C. Holm, and S. Kondrat, ACS Nano 12, [9733](http://dx.doi.org/10.1021/acsnano.8b04785) (2018). [110] V. Lobaskin and B. D¨unweg, New Journal of Physics 6, 54 (2004). [111] M. Radu and T. Schilling, Europhysics Letters 105, [26001](http://stacks.iop.org/0295-5075/105/i=2/a=26001) (2014). [112] K. Kratzer and A. Arnold, Soft Matter [11](http://dx.doi.org/10.1039/C4SM02365J), 2174 (2015). [113] K. Butter, P. H. H. Bomans, P. M. Frederik, G. J. Vroege, and A. P. Philipse, Nature Materials 2, 88 (2003). [114] J. J. Cerd`a, S. Kantorovich, and C. Holm, [Journal](http://dx.doi.org/10.1088/0953-8984/20/20/204125) of Physics: Condensed Matter 20, 204125 (2008). [115] R. Weeber, M. Klinkigt, S. Kantorovich, and C. Holm, Journal of Chemical [Physics](http://dx.doi.org/ 10.1063/1.4832239) 139, 214901 (2013). [116] J. G. Donaldson and S. S. Kantorovich, Nanoscale 7, 3217 (2015). [117] A. Attili, F. Bisetti, M. E. Mueller, and H. Pitsch, Combustion and [Flame](http://dx.doi.org/doi.org/10.1016/j.combustflame.2014.01.008) 161, 1849 (2014). [118] W. Lechner and C. Dellago, The Journal of Chemical Physics 129, 114707 (2008). [119] J. D. Weeks, D. Chandler, and H. C. Andersen, The Journal of Chemical Physics 54, 5237 (1971). [120] J. J. Cerd`a, V. Ballenegger, O. Lenz, and C. Holm, Journal of Chemical [Physics](http://dx.doi.org/10.1063/1.3000389) 129, 234104 (2008). [121] A. Br´odka, Chemical Physics Letters 400, 62 (2004). [122] W. Richtering, Smart Colloidal Materials 133, 9 (2006). [123] J. M. Berg, ed., _Biochemistry_, 8th ed. (Freeman, New York, NY (USA), 2015). [124] M. Castelnovo, P. Sens, and J.-F. Joanny, European Physical Journal E: Soft Matter 1, 115 (2000). [125] C. Shi, J. A. Wallace, and J. K. Shen, Biophysical Journal 102, 1590 (2012). [126] M. Lund and B. J¨onsson, Biochemistry [44](http://dx.doi.org/10.1021/bi047630o), 5722 (2005). [127] M. Lund and B. J¨onsson, Quarterly Reviews of Bio physics 46, 265 (2013). [128] H. J. Limbach, A. Arnold, B. A. Mann, and C. Holm, Computer Physics [Communications](http://dx.doi.org/ 10.1016/j.cpc.2005.10.005) 174, 704 (2006). [129] C. E. Reed and W. F. Reed, Journal of Chemical Physics 96, 1609 (1992). [130] E. R. Smith, Journal of Statistical Physics 77, 449 (1994). [131] J. K. Johnson, A. Z. Panagiotopoulos, and K. E. Gub bins, Molecular Physics 81, 717 (1994). [132] J. Landsgesell, C. Holm, and J. Smiatek, The [European](http://dx.doi.org/10.1140/epjst/e2016-60324-3) Physical Journal [Special](http://dx.doi.org/10.1140/epjst/e2016-60324-3) Topics 226, 725 (2017). [133] P. W. Atkins and J. de Paula, _Physical_ _Chemistry_ (Ox ford Univ. Press, Oxford (UK), 2010). [134] C. Heath Turner, J. K. Brennan, M. Lisal, W. R. Smith, J. Karl Johnson, and K. E. Gubbins, Molecular Simula tion 34, 119 (2008). [135] J. Landsgesell, C. Holm, and J. Smiatek, [Journal](http://dx.doi.org/10.1021/acs.jctc.6b00791) of Chemical Theory and [Computation](http://dx.doi.org/10.1021/acs.jctc.6b00791) 13, 852 (2017). [136] F. Wang and D. P. Landau, Physical Review E 64, 056101 (2001). [137] D. Frenkel and B. Smit, _Understanding_ _Molecular_ _Simu-_ _lation_, 1st ed. (Academic Press, San Diego, 1996). [138] I. Leontyev and A. Stuchebrukhov, Physical [Chemistry](http://dx.doi.org/10.1039/C0CP01971B) Chemical [Physics](http://dx.doi.org/10.1039/C0CP01971B) 13, 2613 (2011). [139] J. Schmidt, C. Krekeler, F. Dommert, Y. Zhao, R. Berger, L. Delle Site, and C. Holm, Journal of Physical [Chemistry](http://dx.doi.org/10.1021/jp910771q) B 114, 6150 (2010). [140] F. Dommert, K. Wendler, R. Berger, L. D. Site, and C. Holm, [ChemPhysChem](http://dx.doi.org/ 10.1002/cphc.201100997) 13, 1625 (2012). [141] [F. Dommert and C. Holm, Physical Chemistry Chemical](http://dx.doi.org/10.1039/C2CP43698A) Physics [15](http://dx.doi.org/10.1039/C2CP43698A), 2037 (2013). [142] M. Kohagen, P. E. Mason, and P. Jungwirth, [The](http://dx.doi.org/10.1021/acs.jpcb.5b05221) Journal of Physical [Chemistry](http://dx.doi.org/10.1021/acs.jpcb.5b05221) B 120, 1454 (2016). [143] G. Lamoureux, E. Harder, I. Vorobyov, B. Roux, and A. MacKerell, Chemical Physics [Letters](http://dx.doi.org/ 10.1016/j.cplett.2005.10.135) 418, 245 (2006). [144] [G. Lamoureux and B. Roux, Journal of Chemical Physics](http://dx.doi.org/10.1063/1.1589749) 119, [3025](http://dx.doi.org/10.1063/1.1589749) (2003). [145] J. R. Bordin, R. Podgornik, [and C. Holm, The European](http://dx.doi.org/10.1140/epjst/e2016-60150-1) Physical Journal [Special](http://dx.doi.org/10.1140/epjst/e2016-60150-1) Topics 225, 1693 (2016). [146] H. Yu, T. Hansson, and W. F. van Gunsteren, The Journal of Chemical Physics 118, 221 (2003). [147] P. Mitchell and D. Fincham, Journal of [Physics:](http://stacks.iop.org/0953-8984/5/i=8/a=006) Con densed [Matter](http://stacks.iop.org/0953-8984/5/i=8/a=006) 5, 1031 (1993). [148] B. T. Thole, Chemical [Physics](http://dx.doi.org/10.1016/0301-0104%0x2881%0x2985176-2) 59, 341 (1981). [149] D. Helbing, I. Farkas, and T. Vicsek, Nature 407, 487 (2000). [150] M. Ballerini, N. Cabibbo, R. Candelier, A. Cavagna, E. Cisbani, I. Giardina, V. Lecomte, A. Orlandi, G. Parisi, A. Procaccini, M. Viale, and V. Zdravkovic, Proceedings of the National Academy of Sciences 105, 1232 (2008). [151] Y. Katz, K. Tunstrøm, C. Ioannou, C. Huepe, and I. Couzin, Proceedings of the National Academy of Sciences 108, 18720 (2011). [152] J. Zhang, W. Klingsch, A. Schadschneider, and A. Seyfried, in _Traffic_ _and_ _Granular_ _Flow_ _’11_, edited by V. V. Kozlov, A. P. Buslaev, A. S. Bugaev, M. V. Yashina, A. Schadschneider, and M. Schreckenberg (Springer (Berlin/Heidelberg), 2013) p. 241. [153] J. Silverberg, M. Bierbaum, J. Sethna, and I. Cohen, Physical Review Letters 110, 228701 (2013). [154] D. Woolley, Reproduction 126, 259 (2003). [155] I. Riedel, K. Kruse, and J. Howard, Science 309, 300 (2005). [156] A. Sokolov, I. S. Aranson, J. O. Kessler, and R. E. Goldstein, Physical Review Letters 98, 158102 (2007). [157] M. Polin, I. Tuval, K. Drescher, J. Gollub, and R. Gold stein, Science 325, 487 (2009). [158] V. Geyer, F. J¨ulicher, J. Howard, and B. Friedrich, Proceedings of the National Academy of Sciences 110, 18058 (2013). [159] R. Ma, G. Klindt, I. Riedel-Kruse, F. J¨ulicher, and B. Friedrich, Physical Review Letters 113, 048101 (2014). [160] M. Reufer, R. Besseling, J. Schwarz-Linek, V. Mar tinez, A. Morozov, J. Arlt, D. Trubitsyn, F. Ward, and W. Poon, Biophysical Journal 106, 37 (2014). [161] J. Schwarz-Linek, J. Arlt, A. Jepson, A. Dawson, T. Vis sers, D. Miroli, T. Pilizota, V. A. Martinez, and W. C. Poon, Colloids and Surfaces B: Biointerfaces 137, 2 (2016). [162] W. F. Paxton, K. C. Kistler, C. C. Olmeda, A. Sen, S. K. St. Angelo, Y. Cao, T. E. Mallouk, P. E. Lammert, and V. H. Crespi, Journal of the American Chemical Society 126, 13424 (2004). [163] J. R. Howse, R. A. Jones, A. J. Ryan, T. Gough, R. Vafabakhsh, and R. Golestanian, Physical Review Letters 99, 048102 (2007). [164] C. Maggi, J. Simmchen, F. Saglimbeni, J. Katuri, M. Di palo, F. De Angelis, S. Sanchez, and R. Di Leonardo, Small 12, 446 (2016). [165] I. Theurkauff, C. Cottin-Bizonne, J. Palacci, C. Ybert, and L. Bocquet, Physical Review Letters 108, 268303 (2012). [166] J. Palacci, S. Sacanna, A. P. Steinberg, D. J. Pine, and P. M. Chaikin, Science 339, 936 (2013). [167] T. Vicsek, A. Czir´ok, E. Ben-Jacob, I. Cohen, and O. Shochet, Physical Review Letters 75, 1226 (1995). [168] W. Ebeling, F. Schweitzer, and B. Tilch, BioSystems 49, 17 (1999). [169] J. Stenhammar, A. Tiribocchi, R. Allen, D. Marenduzzo, and M. Cates, Physical Review Letters 111, 145702 (2013). [170] X. Zheng, B. ten Hagen, A. Kaiser, M. Wu, H. Cui, Z. Silber-Li, and H. L¨owen, Physical Review E 88, 032304 (2013). [171] K. Drescher, R. Goldstein, N. Michel, M. Polin, and I. Tuval, Physical Review Letters 105, 168101 (2010). [172] K. Drescher, J. Dunkel, L. Cisneros, S. Ganguly, and R. Goldstein, Proceedings of the National Academy of Sciences 108, 10940 (2011). [173] A. I. Campbell, S. J. Ebbens, P. Illien, and R. Golesta nian, arXiv preprint arXiv:1802.04600 (2018). [174] R. Nash, R. Adhikari, and M. Cates, Physical Review E 77, 026709 (2008). [175] R. W. Nash, _Efficient_ _lattice_ _Boltzmann_ _simulations_ _of_ _self-propelled_ _particles_ _with_ _singular_ _forces_, Ph.D. thesis, The University of Edinburgh (2010). [176] N. S. Martys and R. D. Mountain, Physical Review E 59, 3733 (1999). [177] F. K¨ummel, B. ten Hagen, R. Wittkowski, I. Buttinoni, R. Eichhorn, G. Volpe, H. L¨owen, and C. Bechinger, Physical Review Letters 110, 198302 (2013). [178] H. Wensink, V. Kantsler, R. Goldstein, and J. Dunkel, Physical Review E 89, 010302 (2014). [179] P. Ahlrichs and B. D¨unweg, Journal of Chemical Physics 111, 8225 (1999). [180] E. Harris, _The_ _Chlamydomonas_ _Sourcebook:_ _A_ _Compre-_ _hensive_ _Guide_ _to_ _Biology_ _and_ _Laboratory_ _Use_ (Elsevier Science, 2013). [181] V. Kantsler, J. Dunkel, M. Polin, and R. E. Goldstein, Proceedings of the [National](http://dx.doi.org/ 10.1073/pnas.1210548110) Academy of Sciences 110, [1187](http://dx.doi.org/ 10.1073/pnas.1210548110) (2013). [182] D. R¨ohm, S. Kesselheim, and A. Arnold, Soft [Matter](http://pubs.rsc.org/en/content/articlepdf/2014/sm/c4sm00686k) 10, [5503](http://pubs.rsc.org/en/content/articlepdf/2014/sm/c4sm00686k) (2014). [183] J. de Graaf and J. Stenhammar, Physical Review E 95, 023302 (2017). [184] J. de Graaf and J. Stenhammar, Personal Communica tion (2017). [185] A. Chatterji and J. Horbach, Journal of Chemical Physics 122, 184903 (2005). [186] S. E. Ilse, C. Holm, and J. de Graaf, The [Journal](http://dx.doi.org/10.1063/1.4963804) of Chemical [Physics](http://dx.doi.org/10.1063/1.4963804) 145, 134904 (2016).

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.