Read data in log.lammps from LAMMPS to Matlab

8 ビュー (過去 30 日間)
ly
ly 2015 年 8 月 5 日
回答済み: FlintstoneGTI 2019 年 2 月 19 日
I simulate by LAMMPS and have a log.lammps file. Now I want to use data from this file to Matlab. How can I read data to Matlab? The log.lammps (change to .txt) file is attached.

回答 (1 件)

FlintstoneGTI
FlintstoneGTI 2019 年 2 月 19 日
Hey!
I am doing it in such way that i manually delete all the repeated code above and below the thermo output part. So, the repeated code, created atoms, Verlet run etc. and report on time spent and estimated time per day etc.
I then go to Matlab, import data and import the section that I need and make an analysis.
Easier way to do it would be to generate a code where you would first find the begining of thermo output and then import the next xyz timesteps.
Hope it helps!
Regards!

カテゴリ

Help Center および File ExchangeUse COM Objects in MATLAB についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by