创新 | WHAT’S NEW?
In MPCv4 (MEAM Parameter Calibration, ver.4), LAMMPS+MEAM is executed as a library inside the MATLAB workspace, not as an external process. MATLAB gateway functions (mexfunctions) execute LAMMPS library functions listed in src/library.h of the LAMMPS distribution. MATLAB functions carry out user-selected calculations for single elements, binaries, and ternaries.
In previous versions, LAMMPS+MEAM is separate process executed from a Python script to calculate energies, etc, and the Python script is invoked by MATLAB. Click here for an earlier version of MPC.
许可 | LICENSE
The MPCv4 license is File:License BSD 3 MSU.PDF
The source codes are here.
For questions, comments, and suggestions regarding MPC, send e-mail to Haitham El Kadiri or Mark F Horstemeyer. The MATLAB scripts for the LAMMPS calculations and the gateway functions were written by Christopher D Barrett. The user interface was built by Ricolindo L Carino.
出版 | PUBLICATIONS
MPC is mentioned in Chapter 6 of Applications from Engineering with MATLAB Concepts - Case Studies in Using MATLAB to Build Model Calibration Tools for Multiscale Modeling
总览 | OVERVIEW
MEAM Parameter Calibration (MPC) is a graphical MATLAB application for interactive editing of MEAM library and parameter files for single elements or alloys, and for semi-automated calibration of MEAM parameters to fit DFT and/or experimental data. Intended as a teaching tool, the MPC is designed to run on personal computers (Windows 7 64-bit, MacOS X Yosemite) without MATLAB. Video tutorials for use of the MPC tool can be found here, here, and here.
特色 | FEATURES
■ LAMMPS+MEAM is executed as a library inside the MATLAB workspace, not as an external process.
■ Basic operations
- Load MEAM library file
- Select an element, or more if working with an alloy, from the MEAM library
- Specify primary, secondary 1, secondary 2 structures for an element or alloy component
- Load MEAM parameter file
- Edit library entries, parameter file entries
■ Operations on single elements
- Run one or more LAMMPS calculations for a single element
- Primary EV curve
- Secondary EV curve
- Secondary 2 EV curve
- Elastic Constants Calculation
- Vacancy Energy Calculation
- Interstitial Energy Calculations
- Surface Energy Calculations
- Generalized Stacking Fault Energy (GSFE) Calculations
- Generalized Interfacial (Twin) Fault Energy (GTFE) Calculations
- Plot results of single element calculations
■ Operations on binaries
- Specify one or more binary structures
- Run one or more LAMMPS calculations for one of more binaries
- Binary EV Curves
- Binary Elastic Constants Calculations
- Substitution Energy
- Interstitial Substitution Energy
- Plot results of binary calculations
■ Operations on ternaries
- Run binding energy calculation for a ternary
- Plot results of ternary calculations
- Parametric study - investigate the effect of a single parameter on the results of LAMMPS calculations for a selected element, binary, or ternary
■ Calibration
- Specify calibration target data for each LAMMPS calculation enumerated above
- Select library file entries associated with elements as calibration parameters
- Select parameter file entries associated with elements, binaries and ternaries as calibration parameters
- Attempt to automatically fit the selected calibration parameters so that the results of the LAMMPS calculations will approach the calibration targets within specified tolerances
- Recall/redisplay results of attempted fits
■ Output operations
- Write MEAM library file, MEAM parameter file, MPCv4 restart file
- Write plot data to file
- Write file templates of calibration target data for single element, binary, ternary
- Write LAMMPS output log to file (log.lammps), or ‘none’
安装 | SETUP on personal computers without MATLAB
■ Windows 7, 64-bit
- Download File:
MPCv4 Win7 MATLAB R2016b Installer web.zip
. Unzip to a temporary folder. - Run
MPCv4_Win7_MATLAB_R2016b_Installer_web.exe
in the temporary folder. - Specify
C:\MPCv4
as the installation destination. As part of the installation process, the appropriate MATLAB Compiler Runtime will be downloaded automatically if it is not yet installed on the local system. Be prepared to wait for a long download time. - Run
C:\MPCv4\application\MPCv4_Win7.exe
as the administrator
切记要以管理员身份运行, 否则由于权限不够, 无法进行数据读写。一定要安装在C:\MPCv4
, 其他地方, 哪怕是电脑默认的安装位置C:\Program Files\MPCv4
都不可以!这应该是编程的时候就决定了的. - As a first time test of MPCv4, click menu item
File | Load restart file
, then select the fileAl-MPCv4-restart.mat
. The display should be similar to the figure above.
■ MacOS X (Yosemite) on Intel 64
- Download File:
MPCv4 OSX Installer web.zip
. Unzip to a temporary folder. - Run
MPCv4_OSX_Installer_web
in the temporary folder. - Specify
/Users/your_home_dir/MPCv4
as the installation destination. As part of the installation process, the appropriate MATLAB Compiler Runtime will be downloaded automatically if it is not yet installed on the local system. Be prepared to wait for a long download time. Take note of the installation directory for the MATLAB Runtime (for example,/Applications/MATLAB/MATLAB_Runtime/v85/
) as it will be needed two steps below. - Open a command line window. Change directory to
/Users/your_home_dir/MPCv4/application
. ./run_MPCv4_OSX.sh /Applications/MATLAB/MATLAB_Runtime/v85
- As a first time test of MPCv4, click menu item
File | Load restart file
, then select the fileAl-MPCv4-restart.mat
. The display should be similar to the figure above.