Jump to: navigation, search



(This is an old version of the MPC. The updated version is here.)

MEAM Parameter Calibration (MPC) is a graphical MATLAB application for:

  1. interactive editing of MEAM library and parameter files,
  2. running LAMMPS with an input file containing the commands 'pair_style meam' and 'pair_coeff * * LIBRARY_FILE ELEMENTS PARAMETER_FILE ATOM_TYPES', and
  3. automatic calibration of user-specified MEAM parameters.



  1. The local machine must be a PC running 64-bit Windows.
  2. Download and install the MATLAB Compiler Runtime for R2012a (7.17) 64-bit from The installation process will take a while. You may need administrative privileges on the PC to do this.
  3. Copy MPC_pkg.exe (sent through e-mail), to say, C:\MPC_files. Make sure there are no spaces in the name of the target directory.
  4. Run MPC_pkg.exe to extract the MPC files.
  5. Run MPC.exe. The MPC application window (like the above figure, but without the numbers and plots) will appear after a few seconds.

Help locations

Information regarding the 'pair_style meam' command in LAMMPS may be found at The parameter names and labels in the MPC GUI came from there.

Hover the mouse pointer over a GUI item to display a tip regarding that item.

For general usage information, right-click on an empty space just outside the plot area, then "Help topics".

For help on fitting, right-click "Parameters to fit" then "Help on fitting".

Interface with LAMMPS

The MPC distribution package comes with a self-contained LAMMPS environment for Windows. To configure MPC so that it will interface with LAMMPS:

  1. Right-click "Config" then "Select LAMMPS EXEcutable"
  2. Right-click "Config" then "Select LAMMPS INPut file"
  3. If the INPut file "readfile"s the atom positions, right-click "Config" then "Select LAMMPS atom POSitions file"
  4. Right-click "Config" then "Select LAMMPS working DIRectory"

Before the last step, there will be a message regarding MPC configuration not being complete. This is message is correct. The interface with LAMMPS will be complete when the 'Run LAMMPS' button under 'Config' is enabled.

Testing the MPC+LAMMPS configuration

  1. On the drop-down menu beside "Dataset", select the "scratch" dataset.
  2. Right-click "Library entry" to load a MEAM library file.
  3. On the drop-down menu beside "Library entry", select an element of interest.
  4. Right-click selected element then "Add as MEAM element".
  5. (Repeat steps 3 & 4 for other elements of interest, if any.)
  6. Re-select each element of interest, right-click, then "Add to LAMMPS atom types" in the desired order.
  7. Right-click "Parameter" to load a MEAM parameter file.
  8. Click "Run LAMMPS" to test your configuration.

If a plot appears, your configuration is correct; otherwise, your selections in steps 4, 5 and 6 may be incompatible with the input file.

Parameter Calibration

Import datasets

  1. Choose a material from the periodic table. An energy vs. volume curve will display using default parameter values from the default MEAM library in a Rose equation.
  2. Right-click "Dataset" (top left corner) then select "Load E vs. a" dataset.
  3. Right-click on the file name of the loaded dataset (appears in the box next to "dataset") then "Set as calibration target".
  4. Re-select "scratch" dataset.

Isolate Parameters to Calibrate

  1. For each property to be used in fitting:
    1. Right-click on the property name in the left hand panel and select "Add to Parameters to fit list". A new dialog box will appear with an input for the property's initial value as well as space to define a range (maximum and minimum) for optimization.
    2. Specify a maximum and minimum that define the property's range as well as an initial value. NOTE: alpha and bulk are functions of each other. If they are used in fitting, only add one or the other the the Parameters to fit, do not add both. For example: if bulk has been added to the Parameters to fit, alpha will be calculated from bulk, alat and esub.
    3. Notice each time a parameter is added to theParameters to fit list, it appears within the list displayed at the bottom of the GUI.
  2. For each addtional parameter to used in the calibration:
    1. Right click on the parameter name in the lower left hand panel and select "Add to Parameters to fit list".A dialog box will appear with spaces for an intial value, as well as alloy element identifiers: I and J. If working with a pure material set I=J=1.

Add New Parameters (optional)

  1. If the parameter is not active (i.e. "not defined"), first right-click the parameter then "Add ...". For example, if "# Cmax not defined", right-click it, then "Add Cmax". After specifying a value in the resulting dialog box, right-click it again, then "Add to Parameters to fit list".

Generate an Energy vs. Volume Curve for "Scratch" Values

  1. Make any changes to the property values (top left) within the "scratch" data necessary. If this is the intial run calibration, likely the default property values are good.
  2. Click on "Run LAMMPS" to generate an Energy vs. Volume Curve. A dialog box will appear prompting you for a name and a desciption for the LAMMPS run. After entering a name and description, click "ok". LAMMPS will now execute. When the calculation is complete a new energy vs. volume curve will be displayed in the plot. If no parameters were changed from their default values, the new curve should lie directly over the Rose curve.
  3. Re-select "Scratch" dataset

Calibrate Using Chosen Parameters

  1. Click "Optimize"
  2. Wait until optimization completes (time to completion depends on amount of parameters chosen, ranges chosen, and computational power).

Manual Calibration (optional)

  1. Choose the scratch dataset, and manually vary parameters to your discretion.
  2. After a parameter is edited, click on "run LAMMPS" to see a new curve using the edited values.

Next time you run MPC ...

MPC stores the information on all invocations of LAMMPS in the working directory. A previous LAMMPS run may be loaded to initialize the MPC configuration after startup.

  1. Right-click "Dataset" then "Load a previous LAMMPS run as a dataset"
  2. Navigate to the directory of a previous LAMMPS run, then select "MPC-Run-LAMMPS.cfg"
  3. If the plot for the previous run appears, then the configuration for that run was successfully loaded.
  4. Right-click the tag for the run (on the drop-down menu beside "Dataset"), then "Copy parameters for this LAMMPS run to scratch"

MPC on Linux

MPC also runs on Linux with MATLAB. The following steps were tested on HPC2's Bazooka server. A Linux desktop in CAVS may also work.

  1. Copy the source codes (MPC.m, MPC.fig) from /cavs/cmd/data1/users/rlc/MPC_sandbox, to say, <some_dir>/MPC_files.
  2. Open a command line terminal, change directory to <some_dir>/MPC_files.
  3. On the terminal, enter the command "swsetup lammps", then "swsetup matlab" (without the quotes)
  4. On the terminal, enter the command "matlab" (without the quotes)
  5. On the MATLAB command window, enter "MPC" (without the quotes)

When specifying the LAMMPS executable, navigate to /usr/local/lammps/x86_64/lmp_serial.

If your MEAM files came from Windows, convert these using "dos2unix" so that MPC on Linux can read them.,

Personal tools

Material Models