{"id":5683,"date":"2012-01-24T10:00:02","date_gmt":"2012-01-24T08:00:02","guid":{"rendered":"http:\/\/www.ehu.es\/sgi\/?p=5683"},"modified":"2019-07-08T14:23:01","modified_gmt":"2019-07-08T12:23:01","slug":"lammps","status":"publish","type":"post","link":"https:\/\/www.ehu.eus\/sgi\/biochemistry\/lammps","title":{"rendered":"LAMMPS"},"content":{"rendered":"<p>LAMMPS (\u00abLarge-scale Atomic\/Molecular Massively Parallel Simulator\u00bb) is a molecular dynamics program from Sandia National Laboratories. LAMMPS makes use of MPI for parallel communication and is a free open-source code, distributed under the terms of the GNU General Public License.<br \/>\nLAMMPS was originally developed under a Cooperative Research and Development Agreement (CRADA) between two laboratories from United States Department of Energy and three other laboratories from private sector firms. It is currently maintained and distributed by researchers at the Sandia National Laboratories. (Taken from Wikipedia). Jun-05-2019 version.<\/p>\n<h2>General Information<\/h2>\n<p>LAMMPS is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state. It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions.<\/p>\n<p>In the most general sense, LAMMPS integrates Newton&#8217;s equations of motion for collections of atoms, molecules, or macroscopic particles that interact via short- or long-range forces with a variety of initial and\/or boundary conditions. For computational efficiency LAMMPS uses neighbor lists to keep track of nearby particles. The lists are optimized for systems with particles that are repulsive at short distances, so that the local density of particles never becomes too large. On parallel machines, LAMMPS uses spatial-decomposition techniques to partition the simulation domain into small 3d sub-domains, one of which is assigned to each processor. Processors communicate and store \u00abghost\u00bb atom information for atoms that border their sub-domain. LAMMPS is most efficient (in a parallel sense) for systems whose particles fill a 3d rectangular box with roughly uniform density. Papers with technical details of the algorithms used in LAMMPS are listed in\u00a0<a href=\"http:\/\/lammps.sandia.gov\/doc\/Section_intro.html#intro_5\">this section<\/a>.<\/p>\n<h2>How to Use<\/h2>\n<p><strong>send_lmp<\/strong><\/p>\n<ul>\n<li>To send LAMMPS to the queue\u00a0system \u00a0use the send_lmp utility.\u00a0When\u00a0executed,<br \/>\nshows\u00a0the\u00a0command\u00a0syntax,\u00a0which is\u00a0summarized\u00a0below:<\/li>\n<li><tt><code>send_lmp JOBNAME NODES PROCS_PER_NODE TIME [ MEM ] [``Other queue options'' ]<\/code><\/tt><br \/>\n<table cellpadding=\"3\">\n<tbody>\n<tr>\n<td align=\"LEFT\"><tt><strong>JOBNAME<\/strong>:<\/tt><\/td>\n<td align=\"LEFT\">Is the \u00a0name of the input with extension.<\/td>\n<\/tr>\n<tr>\n<td align=\"LEFT\"><tt><strong>NODES<\/strong>:<\/tt><\/td>\n<td align=\"LEFT\">Number of nodes.<\/td>\n<\/tr>\n<tr>\n<td align=\"LEFT\"><tt><strong>PROCS<\/strong>:<\/tt><\/td>\n<td align=\"LEFT\">Number of \u00a0processors.<\/td>\n<\/tr>\n<tr>\n<td align=\"LEFT\"><tt><strong>TIME<\/strong>:<\/tt><\/td>\n<td align=\"LEFT\">Time requested to the queue system, format\u00a0<tt>hh:mm:ss.<\/tt><\/td>\n<\/tr>\n<tr>\n<td align=\"LEFT\"><tt><strong>MEM<\/strong>:<\/tt><\/td>\n<td align=\"LEFT\"><strong>Optional<\/strong>. Memory in Gb ( It will used 1GB\/core if not set).<\/td>\n<\/tr>\n<tr>\n<td align=\"LEFT\"><strong><tt>[``Other Torque Options'' ]<\/tt><\/strong><\/td>\n<td align=\"LEFT\"><strong>Optional<\/strong>. There is\u00a0the possibility to pass\u00a0more variables\u00a0to the\u00a0queuing system.<br \/>\nSee examples\u00a0below.\u00a0\u00a0<a href=\"http:\/\/www.ehu.es\/sgi\/mandar-trabajos\/comandos-de-interes-del-sistema-de-colas\"> More information about this options<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<h3>Examples<\/h3>\n<p>We send\u00a0the lammps input\u00a0job1\u00a0to\u00a01 node,\u00a04\u00a0processors\u00a0on that node,\u00a0with\u00a0a\u00a0requested time\u00a0of 4\u00a0hours:<\/p>\n<pre><tt>send_lmp job1.in 1 4 04:00:00<\/tt><\/pre>\n<p>We send job2 \u00a0to 2\u00a0compuation nodes,\u00a08\u00a0processors\u00a0on each\u00a0node,\u00a0with\u00a0a requested time\u00a0of 192\u00a0hours,\u00a08\u00a0GB\u00a0of\u00a0RAM\u00a0and to start running\u00a0after\u00a0work\u00a01234.arinab is finished:<\/p>\n<pre><tt>send_lmp job2.inp 2 8 192:00:00 8 ``-W depend=afterany:1234'<\/tt><\/pre>\n<p>We \u00a0send\u00a0the\u00a0input\u00a0job3\u00a0to\u00a04\u00a0nodes\u00a0and\u00a04\u00a0processors\u00a0on\u00a0each\u00a0node,\u00a0with\u00a0arequested time\u00a0of\u00a0200:00:00\u00a0hours,\u00a02\u00a0GB\u00a0of\u00a0RAM\u00a0and\u00a0we request to be\u00a0send an\u00a0email\u00a0at the beginning\u00a0and\u00a0end of the\u00a0calculation\u00a0to the direction\u00a0specified.<\/p>\n<pre><tt>send_lmp job.tpr 4 4 200:00:00 2 ``-m be -M mi.email@ehu.es''<\/tt><\/pre>\n<p>send_lmp command\u00a0copies\u00a0the\u00a0contents\u00a0of the\u00a0directory\u00a0from\u00a0which the job is sent to\u00a0\/scratch\u00a0or\u00a0\/\u00a0gscratch,\u00a0if\u00a0we use 2\u00a0or more\u00a0nodes.\u00a0And\u00a0there is where\u00a0the calculation is done.<\/p>\n<h2>Jobs Monitoring<\/h2>\n<p>To\u00a0facilitate monitoring and\/or\u00a0control\u00a0of the LAMMPS calculations, you can use\u00a0<strong>remote_vi<\/strong><\/p>\n<pre>remote_vi JOBID<\/pre>\n<p>It show us\u00a0the *.out file \u00a0(only\u00a0if it was\u00a0sent\u00a0using\u00a0send_lmp).<\/p>\n<div>\n<h2>More information<\/h2>\n<p><a href=\"http:\/\/lammps.sandia.gov\" target=\"_blank\" rel=\"noopener\">http:\/\/lammps.sandia.gov<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>LAMMPS (\u00abLarge-scale Atomic\/Molecular Massively Parallel Simulator\u00bb) is a molecular dynamics program from Sandia National Laboratories. LAMMPS makes use of MPI for parallel communication and is a free open-source code, distributed under the terms of the GNU General Public License. LAMMPS was originally developed under a Cooperative Research and Development Agreement (CRADA) between two laboratories from &hellip; <a href=\"https:\/\/www.ehu.eus\/sgi\/biochemistry\/lammps\" class=\"more-link\">Seguir leyendo <span class=\"screen-reader-text\">LAMMPS<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_links_to":"","_links_to_target":""},"categories":[212,214,216],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/posts\/5683"}],"collection":[{"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/comments?post=5683"}],"version-history":[{"count":17,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/posts\/5683\/revisions"}],"predecessor-version":[{"id":8900,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/posts\/5683\/revisions\/8900"}],"wp:attachment":[{"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/media?parent=5683"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/categories?post=5683"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ehu.eus\/sgi\/wp-json\/wp\/v2\/tags?post=5683"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}