Thank you for creating the high-level PeriodicSystems interface, it has simplified my simulation code.
My simulations typically start without particles and more get added at random times. This makes it tricky to use with PeriodicSystems because currently, it errors if I make a system without particles, see below.
Currently, I am constructing the PeriodicSystem with a few junk particles, and separately keeping track of if it is valid or not. It would simplify my code if PeriodicSystem could properly handle the case of no particles.
using StaticArrays
using CellListMap.PeriodicSystems
Vec2D = SVector{2,Float64}
system = PeriodicSystem(;
positions=Vec2D[],
cutoff=0.1,
unitcell=[1.0, 1.0],
output=0.0,
)
Thank you for creating the high-level
PeriodicSystems
interface, it has simplified my simulation code.My simulations typically start without particles and more get added at random times. This makes it tricky to use with
PeriodicSystems
because currently, it errors if I make a system without particles, see below.Currently, I am constructing the
PeriodicSystem
with a few junk particles, and separately keeping track of if it is valid or not. It would simplify my code ifPeriodicSystem
could properly handle the case of no particles.