Skip to content

Latest commit

 

History

180 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimulationAnalysis.jl

Docs

SimulationAnalysis.jl is a Julia package for analyzing data from particle-based simulations. It provides a collection of tools for computing various physical quantities and performing common analysis tasks.

Features

  • Load simulation data from some limited formats.
  • Calculate mean squared displacement.
  • Compute radial distribution functions.
  • Analyze structure factors and intermediate scattering functions.
  • Perform clustering analysis.

Installation

The package can be installed from the Julia package manager. From the Julia REPL, type ] to enter Pkg mode, and then run:

pkg> add "https://github.com/IlianPihlajamaa/SimulationAnalysis.jl"

Usage

Here is a basic example of how to use the package to load a simulation and calculate a radial distribution function:

using SimulationAnalysis

# Load simulation data
file = joinpath("test", "data", "test_trajectory.h5")
simulation = SimulationAnalysis.read_simulation_Berthier(file; time_origins=10)

# Set parameters for g(r) calculation
Nbins = 100
rmax = 5.0

# Calculate the radial distribution function
r, g_r = SimulationAnalysis.find_radial_distribution_function(simulation, Nbins, rmax)

using Plots
# Plot the g(r)
plot(r, g_r,
    xlabel="r",
    ylabel="g(r)",
    title="Radial Distribution Function",
    legend=false,
    lw=2
)

gr

For more detailed information and a complete list of features, please see the documentation.

About

Code base for analysis of particle based simulations

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages