Skip to content

omoultosEthTuDelft/OCTP

Repository files navigation

On-the-fly Calculation of Transport Properties of Fluids using the order-n algorithm in Equilibrium Molecular Dynamics. More information on how this plugin works and how this plugin can be used with LAMMPS is thoroughly explained in the work by Jamali et al. J. Chem. Inf. Model. 2019, 59, 4, 1290-1294. If this package is used, please cite the following article: Jamali SH, Wolff L, Becker TM, de Groen M, Ramdin M, Hartkamp R, Bardow A, Vlugt TJH, Moultos OA. OCTP: A Tool for On-the-Fly Calculation of Transport Properties of Fluids with the Order-n Algorithm in LAMMPS. Journal of Chemical Information and Modeling. 2019, 59, 4, 1290-1294 (DOI: 10.1021/acs.jcim.8b00939).

This plugin consists of two new compute commands (position and rdf/ext) and one new fix command (ordern) for LAMMPS. For more information on the use of these new commands as well as a LAMMPS input file for the calcualation of transport properties for a water-methanol mixture, the user is referred to the work of Jamali et al.

"compute position" computes a global vector of 5*N components, where N is the total number of atoms in the simulation box. This vector includes the position (x,y,z), the atom ID, and the group mask of each atom. This compute can be used by "fix ordern" to calculate the self-diffusion and Maxwell-Stefan diffusion coefficients of a multicomponent mixture (see J. Chem. Theory Comput., 2018, 14 (5), pp 2667–2677). The components of the mixture should be pre-defined via the command group. The only restriction on the calculation of diffusion coefficients is that no atom should belong to more than 1 group.

"compute rdf/ext" is an extension of "compute rdf", which is already available in LAMMPS. This compute calculates the RDF up to sqrt(2)/2 of the box length. In addition, RDFs are corrected due to the finite-size of the simulation box are computed. For the finite-size correction, the method of van der Vegt et al. (see J. Chem. Theory Comput., 2013, 9 (3), pp 1347–1355 and J. Phys. Chem. B, 2018, 122 (21), pp 5515–5526) has been implemented. Similar to "compute position", the mixture should be pre-defined via the command group. The restriction on the calculation of RDFs is that no atom should belong to more than 1 group. This compute command directly generates output files; however, in order to invoke it during the simulation, a fix command (e.g., fix ave/time) should be specified.

"fix ordern" uses the modified order-n algorithm by Dubbeldam et al. (Mol. Simul., 2009, 35 (12–13), pp 1084–1097) to compute mean-square displacement (MSD) for the self-diffusion coefficient, Maxwell-Stefan diffusion coefficient, shear viscosity, bulk viscosity, and thermal conductivity. Each transport property can be calculated from the slope of the time-MSD plot, where a linear relation between MSD and time is found. As the input to this fix command, the ID of "compute position", "compute pressure", and "compute heat/flux" should be assigned. This fix generates output files containing MSD as a function of time. The definition of reported MSD can be found at pages S14, S17, and S19 of the Supporting Information of the article "OCTP: A Tool for On-the-fly Calculation of Transport Properties of Fluids with the Order-n Algorithm in LAMMPS" (J. Chem. Inf. Model., 2019). It should be noted that the reported MSD must be divided by a factor explicitly mentioned at the top of each output file.

About

On-the-fly calculation of Transport Properties

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published