From 87ba0a6cf4d844958b2c3f7e415b4e4a272958a8 Mon Sep 17 00:00:00 2001 From: Mo8it Date: Wed, 6 Apr 2022 17:22:19 +0200 Subject: [PATCH] Fix packing fraction --- src/setup.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup.jl b/src/setup.jl index fdb45ac..13fc84a 100644 --- a/src/setup.jl +++ b/src/setup.jl @@ -88,7 +88,7 @@ function gen_sim_consts( n_particles = grid_n^2 if half_box_len == 0.0 - half_box_len = sqrt(n_particles * π / packing_fraction) * σ / 4 + half_box_len = sqrt(n_particles * π / packing_fraction) * σ * 2^(-11 / 6) elseif packing_fraction != DEFAULT_PACKING_FRACTION error("You can not specify half_box_len and packing_fraction at the same time!") else