@@ -14,25 +14,6 @@ Length = 3
1414d = 3
1515temperature = 2.0
1616density = 1.2
17- box = @SVector fill (typeof (temperature)((N / density)^ (1 / d)), d)
18- position_1 = [box .* @SVector rand (rng, d) for i in 1 : Int (N // Length), m in 1 : M]
19- position = []
20- for r in position_1
21- push! (position, r)
22- push! (position, r .+ @SVector [0.1 , 0.1 , 0.1 ])
23- push! (position, r .- @SVector [0.1 , 0.1 , 0.1 ])
24- end
25- position = Vector {SVector{3,Float64}} (position)
26- molecule = Vector {Int} ()
27- species = Vector {Int} ()
28- for i in 1 : Int (N // Length)
29- push! (species, 1 )
30- push! (species, 2 )
31- push! (species, 3 )
32- push! (molecule, i)
33- push! (molecule, i)
34- push! (molecule, i)
35- end
3617
3718function create_bond_matrix (N:: Int )
3819 # Create a vector to store the SVectors, each containing a pair of integers
@@ -45,12 +26,10 @@ function create_bond_matrix(N::Int)
4526 end
4627 return matrix
4728end
48-
29+ chains = load_chains ( " test/molecule.xyz " , args = Dict ( " temperature " => [temperature], " model " => [ " Trimer " ], " list_type " => " LinkedList " , " bonds " => create_bond_matrix (N)))
4930
5031model_matrix = Trimer ()
51- bonds = create_bond_matrix (N)
52- chains = [System (position, species, molecule, density, temperature, model_matrix, bonds; list_type= LinkedList) for _ in 1 : M]
53- # # Define moves and combine them into a pool
32+
5433pswap = 0.2
5534displacement_policy = SimpleGaussian ()
5635displacement_parameters = ComponentArray (σ= 0.05 )
0 commit comments