LoginSignup
0
0

More than 3 years have passed since last update.

LAMMPS コマンドのメモ(自分用)

Last updated at Posted at 2020-10-12

概要

LAMMPS用のコマンドをまとめておきます。完全に自分用ですが、誰かの役に立つかもしれないので一応公開しておきます。
https://lammps.sandia.gov/doc/Manual.html ←基本はここから、自分の役に立ったことについて日本語でメモをしていきます。
間違いなどありましたら、ご指摘いただけると非常に助かります。

リスタートファイルを作りたい

restartとwrite_restartは違うので注意

write_restart

write_restart filename.rst

コマンドが実行された時点での状態を保存する。runの後とかにおいておくと良い。
基本的に計算後の状態の保存に使う。

restart

restart N filename1.rst filename2.rst

Nステップごとにfilename1.rstとfilename2.rstが交互に更新されていく。
計算中の状態の保存に使える。

リスタートファイルからデータファイルを作りたい

例えば、hoge.rstからhoge.dataを作りたいときコマンドラインで以下を打ち込む。(わざわざ.inを作らないで良い)

lmp_serial -r2data hoge.rst hoge.data
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0