Diffusion & Deposition Command Note

1. set site value

Syntax:

set label style args keyword values ...
  • label = site or iN or dN 

The label determines which per-site quantity is set. iN and dN mean the Nth integer or floating-point quantity,
with 1 <= N <= Nmax. Nmax is defined by the application.
 

  • style = value ... 

value arg = nvalue,  nvalue = value to set sites to

For style value, the per-site quantity is set to the specified nvalue, which should be either an integer or
floating-point numeric value, depending on what kind of per-site quantity is being set.

  • keyword = fraction or region or loop or if

The optional keywords enable selection of sites whose label quantity will be reset to a new value. The keyword fraction means that only a fraction of the sites will be reset, where 0 < frac <= 1.0. For each site a random number R is generated and the reset only occurs if R < frac.

2. stats command

Syntax:

stats delta keyword values ...
  • delta = time increment between statistical output (seconds)

Print statistics to the screen and log file every so many seconds during a simulation. A value of 0.0 for delta
means only print stats at the beginning and end of the run, in which case no optional keywords can be used.
The quantities printed are elapsed CPU time followed by those provided by the application, followed by those
provided by any diagnostics you have defined. Typically the application reports only the number of events or sweeps executed, followed by the simulation time, but other application-specific quantities may also be reported. Quantities such as the total energy of the system can be included in the output by creating diagnostics via the diag_style command.

3. dump text command

Syntax:

dump dump-ID style delta filename field1 field2 ...
  • dump-ID = user-assigned name for the dump
  • style = text or sites or vtk or image
  • delta = time increment between dumps (seconds)
  • filename = name of file to dump snapshots to
  • fields = list of arguments for a particular style

The text, sites, and vtk styles dump a snapshot of site values to one or more files at time intervals of delta during a
simulation.

The text style dump file is in the format of a LAMMPS dump file which can thus be read-in by the Pizza.py
toolkit, converted to other formats, or used for visualization.

For the text format, each snapshot begins with lines like these:
ITEM: TIMESTEP TIME
100 3.23945
The first field "100" denotes which snapshot it is, numbered as 0,1,2,etc. Snapshot 0 is thus typically for the state
of the system before the first run command. The second field "3.23945" is the simualtion time when the snapshot
is generated.
 


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值