{"id":436,"date":"2018-10-27T06:31:42","date_gmt":"2018-10-27T06:31:42","guid":{"rendered":"https:\/\/doublelayer.eu\/vilab\/?p=436"},"modified":"2018-10-27T14:03:38","modified_gmt":"2018-10-27T14:03:38","slug":"md-simulation-of-bulk-bmpyrdca-ionic-liquid","status":"publish","type":"post","link":"https:\/\/doublelayer.eu\/vilab\/2018\/10\/27\/md-simulation-of-bulk-bmpyrdca-ionic-liquid\/","title":{"rendered":"MD simulation of bulk BMPyrDCA ionic liquid"},"content":{"rendered":"<p>Simple demonstration of a molecular dynamics simulation of 25 BMPyrDCA ionic pairs in a box.<\/p>\n<p>Inputs (packmol.inp, STEEP.mdp, RUN.mdp, topol.top) and force field parameters: <a href=\"https:\/\/github.com\/vilab-tartu\/LOKT.02.048\/tree\/master\/MD_BMPyrDCA_box\">github.com\/vilab-tartu\/LOKT.02.048\/tree\/master\/MD_BMPyrDCA_box<\/a>.\u00a0The force fields are taken from github: <a href=\"https:\/\/github.com\/vladislavivanistsev\/RTIL-FF\">github.com\/vladislavivanistsev\/RTIL-FF<\/a>. References are given within the files.<\/p>\n<p><!--more--><\/p>\n<p>Let&#8217;s execute some commands to tell the computer how to run the simulation. First, we pack 25 BMImDCA into a predefined box. For packmol we should thank J. M. Mart\u00ednez and L. Mart\u00ednez. Visit <a href=\"http:\/\/m3g.iqm.unicamp.br\/packmol\/home.shtml\">m3g.iqm.unicamp.br\/packmol\/<\/a> to see details.\u00a0In case packmol does not work, I have put packmol.gro file.<br \/>\n<code>.\/packmol &lt; packmol.inp<\/code><br \/>\n<code>gmx editconf -f packmol.pdb -o packmol.gro<\/code><\/p>\n<p>Now let&#8217;s create an index of the ionic pairs. Enter q.<br \/>\n<code>gmx make_ndx -f packmol.gro -o index.ndx<\/code><\/p>\n<p>Prepare an executable file for the simulation.<br \/>\n<code>gmx grompp -f STEEP.mdp -c packmol.gro -p topol.top -n index.ndx -o STEEP<\/code><\/p>\n<p>Execute the first simulation step.<br \/>\n<code>gmx mdrun -deffnm STEEP<\/code><\/p>\n<p>Prepare another executable file for the simulation.<br \/>\n<code>gmx grompp -f RUN.mdp -c STEEP.gro -p topol.top -n index.ndx -o NVT<\/code><\/p>\n<p>Run the simulation, so-called production run. Note, it should use all available CPUs.<br \/>\n<code>gmx mdrun -deffnm NVT<\/code><\/p>\n<p>Convert the trajectory for the whole system. Enter 0.<br \/>\n<code>gmx trjconv -f NVT.xtc -s NVT.tpr -o NVT.trr -ur compact -pbc mol<\/code><\/p>\n<p>To see the equilibrated system, open a terminal and type &#8220;vmd NVT.gro&#8221;. In the &#8220;VMD main&#8221; window select the single line &#8220;0 T A D F NVT.gro &#8230;&#8221;, then from File menu choose &#8220;load data into molecule&#8221;, select &#8220;NVT.trr&#8221; file.<br \/>\n<code>vmd NVT.gro<\/code><\/p>\n<p>Examine the spatial distribution. For example select group 2 and then 3 to see the destribution of 3 (DCA anion) around 2 (Pyr cation).<br \/>\n<code>gmx spatial -f NVT.xtc -s NVT.tpr -n index.ndx<\/code><\/p>\n<p>Visualize the grid.cude in VMD. Chech the representations and drawing method: isosurface.<br \/>\n<code>vmd grid.cube<\/code><\/p>\n<p>You can do much more when you have a longer trajectory. For example, you may calculate density or diffusion coefficient.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Simple demonstration of a molecular dynamics simulation of 25 BMPyrDCA ionic pairs in a box. Inputs (packmol.inp, STEEP.mdp, RUN.mdp, topol.top) and force field parameters: github.com\/vilab-tartu\/LOKT.02.048\/tree\/master\/MD_BMPyrDCA_box.\u00a0The force fields are taken from github: github.com\/vladislavivanistsev\/RTIL-FF. References are given within the files.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,12,41],"tags":[44],"class_list":["post-436","post","type-post","status-publish","format-standard","hentry","category-conferences","category-know-how","category-teaching","tag-gromacs"],"_links":{"self":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/comments?post=436"}],"version-history":[{"count":7,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/436\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/posts\/436\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/media?parent=436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/categories?post=436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doublelayer.eu\/vilab\/wp-json\/wp\/v2\/tags?post=436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}