1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-09-19 19:01:17 +00:00

Fix packing fraction

This commit is contained in:
Mo8it 2022-04-06 17:22:19 +02:00
parent ea420224f9
commit 87ba0a6cf4

View file

@ -88,7 +88,7 @@ function gen_sim_consts(
n_particles = grid_n^2 n_particles = grid_n^2
if half_box_len == 0.0 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 elseif packing_fraction != DEFAULT_PACKING_FRACTION
error("You can not specify half_box_len and packing_fraction at the same time!") error("You can not specify half_box_len and packing_fraction at the same time!")
else else