mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +00:00
Fix packing fraction
This commit is contained in:
parent
ea420224f9
commit
87ba0a6cf4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue