面向对象程序设计
计算机科学
Fortran语言
分子动力学
颂歌
计算科学
程序设计语言
化学
计算化学
数学
应用数学
作者
Amit Gupta,Shaji Chempath,Martin J. Sanborn,Louis A. Clark,Randall Q. Snurr
标识
DOI:10.1080/0892702031000065719
摘要
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.
科研通智能强力驱动
Strongly Powered by AbleSci AI