A simple package for simulating soft matter things. At the moment, the package can simulate simple systems of interacting passive Brownian or systems of active particles (active Brownian and run-and-tumble). There are plans for adding additional interactions, integrators, and more. Also, hopefully the code can be further optimized in the future. The goal is to create a package written in Julia that is easily customizable and readable (at the cost of some performance probably).
This is mostly just a fun/educational and (hopefully) long-term project!
Lennard-Jones | Two-temperature Mixture | Poly-dispersed Mixture |
---|---|---|
![]() |
![]() |
![]() |
Run-and-tumble Particles | Active Brownian Particles |
---|---|
![]() |
![]() |
Run-and-tumble Particles with Funnels | Active Brownian Particles with Funnels |
---|---|
![]() |
![]() |
Simulations can be found in this repository.
To download, open Julia command line, press ]
, and use add
(v1.5) pkg> add https://github.com/michaelwang314/SoftSquishyMatter.jl
or do
julia> using Pkg
julia> Pkg.add("https://github.com/michaelwang314/SoftSquishyMatter.jl")
You may also need to add Plots.jl. I guess I should register this at some point so it's easier to add the package.
Just add the line
using SoftSquishyMatter
There are several example simulations (those shown above) in the Example folder.