72 lines
2.2 KiB
Plaintext
72 lines
2.2 KiB
Plaintext
"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c
|
|
|
|
:link(lws,http://lammps.sandia.gov)
|
|
:link(ld,Manual.html)
|
|
:link(lc,Commands_all.html)
|
|
|
|
:line
|
|
|
|
server command :h3
|
|
|
|
[Syntax:]
|
|
|
|
server protocol :pre
|
|
|
|
protocol = {md} or {mc} :ul
|
|
|
|
[Examples:]
|
|
|
|
server md :pre
|
|
|
|
[Description:]
|
|
|
|
This command starts LAMMPS running in "server" mode, where it receives
|
|
messages from a separate "client" code and responds by sending a reply
|
|
message back to the client. The specified {protocol} determines the
|
|
format and content of messages LAMMPS expects to receive and how it
|
|
responds.
|
|
|
|
The "Howto client/server"_Howto_client_server.html doc page gives an
|
|
overview of client/server coupling of LAMMPS with another code where
|
|
one code is the "client" and sends request messages to a "server"
|
|
code. The server responds to each request with a reply message. This
|
|
enables the two codes to work in tandem to perform a simulation.
|
|
|
|
When this command is invoked, LAMMPS will run in server mode in an
|
|
endless loop, waiting for messages from the client code. The client
|
|
signals when it is done sending messages to LAMMPS, at which point the
|
|
loop will exit, and the remainder of the LAMMPS script will be
|
|
processed.
|
|
|
|
The {protocol} argument defines the format and content of messages
|
|
that will be exchanged between the two codes. The current options
|
|
are:
|
|
|
|
"md"_server_md.html = run dynamics with another code
|
|
"mc"_server_mc.html = perform Monte Carlo moves with another code :ul
|
|
|
|
For protocol {md}, LAMMPS can be either a client (via the "fix
|
|
client/md"_fix_client_md.html command) or server. See the "server
|
|
md"_server_md.html doc page for details on the protocol.
|
|
|
|
For protocol {mc}, LAMMPS can be the server. See the "server
|
|
mc"_server_mc.html doc page for details on the protocol.
|
|
|
|
:line
|
|
|
|
[Restrictions:]
|
|
|
|
This command is part of the MESSAGE package. It is only enabled if
|
|
LAMMPS was built with that package. See the "Build
|
|
package"_Build_package.html doc page for more info.
|
|
|
|
A script that uses this command must also use the
|
|
"message"_message.html command to setup the messaging protocol with
|
|
the other client code.
|
|
|
|
[Related commands:]
|
|
|
|
"message"_message.html, "fix client/md"_fix_client_md.html
|
|
|
|
[Default:] none
|