Plot Scripts
Plot Scripts
This folder contains Python scripts for visualization of data generated by GPUMD
and NEP
.
plt_nep_thermo.py
: Python script to visualize temperature, pressure, kinetic energy, potential energy, lattice parameters, volume, and interaxial angles evolution over simulation time based on data fromthermo.out
.
plt_nep_train_results.py
: Python script to visualize parameters duringNEP
training and comparison ofDFT
andNEP
predictions forenergy
,force
,stress
, etc.

plt_nep_train_test.py
: Python script to visualize the parity plot of*_train.out
and*_test.out
.
plt_nep_prediction_results.py
: Python script to visualize predictions during theNEP
prediction process.
plt_force_errors.py
: Plot the force error evaluation metrics fromforce_train.out
.
plt_descriptors.py
: Plot the high-dimensional descriptors in different training sets. See arXiv:2504.15925 for more details. You can generate thedescriptors.npy
by the scriptscalc_descriptors.py
in thecalculators
, or usegpumdkit.sh -calc des <method> <input.xyz> <output.npy> <element>
.

plt_msd.py
andplt_sdc.py
: Python scripts to visualize the mean-square displacement (MSD) and self diffusion coefficient (SDC) frommsd.out
.


-
plt_rdf.py
: Python script to visualize the RDF fromrdf.out
file. -
python plt_rdf.py [save]
will plot all columns in therdf.out
. -
python plt_rdf.py [column] [save]
will plot the specified column in therdf.out
. -
plt_nep_restart.py
: Python script to visualize the parameters innep.restart
file.

plt_dimer.py
: Python script to plot the dimer interaction. See arXiv:2504.15925 for more details.


thermo.png
, train.png
, train_test.png
, prediction.png
, msd.png
, nep_restart.png
, rdf.png
, dimer.png
: Example output plots generated by the scripts.
Usage:
You can use gpumdkit.sh
for simplified execution:
Replace thermo
, train
, prediction
, train_test
, msd
, rdf
,vac
, restart
, dimer
, des
with the desired script keyword.
The optional save
argument will save the plot as a PNG
file; omitting it will display the plot using plt.show()
.
Example:
To visualize thermo
evolution from thermo.out
:
To save the plot of thermo
evolution from thermo.out
:
Thank you for using GPUMDkit
! If you have any questions or need further assistance, feel free to open an issue on our GitHub repository or contact Zihan YAN (yanzihan@westlake.edu.cn).