/PlotExTinyMD.jl

Primary LanguageJuliaMIT LicenseMIT

PlotExTinyMD

Build Status Build Status Coverage

PlotExTinyMD is a Julia package used to plot the result of ExTinyMD.jl using GLMakie.jl.

Getting Started

Install the packaged by

pkg> add ExTinyMD

pkg> add https://github.com/ArrogantGao/PlotExTinyMD.jl

Two functions are provided

function video_trajection(trajectory, box)

is used to generate a video of the MD process, and

function figure_trajection(trajectory, box, step)

is used to generate a figure of result of step step.

This package also provide drawer for trajectory file of LAMMPS, here is an example

julia> using PlotExTinyMD

julia> filename = "example/example.lammpstrj"

julia> trajectory, box, timestep, num_atoms = load_lammpstrj(filename);

julia> video_trajection(trajectory, box)
true

Example

The script example/draw.jl will run a simple MD process and plot the result, run the script by

julia draw.jl

Here is the figure result with step = 100 figure You can try to generate the video yourself.