"LAMMPS WWW Site"_lws - "LAMMPS Documentation"_ld - "LAMMPS Commands"_lc :c :link(lws,http://lammps.sandia.gov) :link(ld,Manual.html) :link(lc,Section_commands.html#comm) :line pair_style table command :h3 pair_style table/gpu command :h3 pair_style table/omp command :h3 [Syntax:] pair_style table style N :pre style = {lookup} or {linear} or {spline} or {bitmap} = method of interpolation N = use N values in {lookup}, {linear}, {spline} tables N = use 2^N values in {bitmap} tables :ul [Examples:] pair_style table linear 1000 pair_style table bitmap 12 pair_coeff * 3 morse.table ENTRY1 pair_coeff * 3 morse.table ENTRY1 7.0 :pre [Description:] Style {table} creates interpolation tables of length {N} from pair potential and force values listed in a file(s) as a function of distance. The files are read by the "pair_coeff"_pair_coeff.html command. The interpolation tables are created by fitting cubic splines to the file values and interpolating energy and force values at each of {N} distances. During a simulation, these tables are used to interpolate energy and force values as needed. The interpolation is done in one of 4 styles: {lookup}, {linear}, {spline}, or {bitmap}. For the {lookup} style, the distance between 2 atoms is used to find the nearest table entry, which is the energy or force. For the {linear} style, the pair distance is used to find 2 surrounding table values from which an energy or force is computed by linear interpolation. For the {spline} style, a cubic spline coefficients are computed and stored at each of the {N} values in the table. The pair distance is used to find the appropriate set of coefficients which are used to evaluate a cubic polynomial which computes the energy or force. For the {bitmap} style, the N means to create interpolation tables that are 2^N in length.