Object-oriented programming paradigms for molecular modeling

被引:377
|
作者
Gupta, A
Chempath, S
Sanborn, MJ
Clark, LA
Snurr, RQ [1 ]
机构
[1] Northwestern Univ, Dept Chem Engn, Evanston, IL 60208 USA
[2] Northwestern Univ, Ctr Catalysis & Surface Sci, Evanston, IL 60208 USA
关键词
object-oriented programming; molecular simulation; Fortran; 90; hybrid Monte Carlo;
D O I
10.1080/0892702031000065719
中图分类号
O64 [物理化学(理论化学)、化学物理学];
学科分类号
070304 ; 081704 ;
摘要
This paper discusses the application of object-oriented programming (OOP) design concepts to the development of molecular simulation code. A number of new languages such as Fortran 90 (F90) have been developed over the last decade that support the OOP design philosophy. We briefly describe the salient features of F90 and some basic object-oriented design principles. As an illustration of the design concepts we implement a general interface in F90 for calculating pairwise interactions that can be extended easily to any number of different forcefield models. The ideas presented here are used in the development of a mu ltipurpose si mulation c ode, named Music. An example of the use of Music for grand canonical Monte Carlo (GCMC) simulations of flexible sorbate molecules in zeolites is given. The example illustrates how OOP allowed existing code for molecular dynamics and GCMC to be easily combined to perform hybrid GCMC simulations with minimal coding effort.
引用
收藏
页码:29 / 46
页数:18
相关论文
共 50 条