From 4beb0e8597060852dc82a2e2da43eaa5926d24a2 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 12 Nov 2021 09:28:08 +0100 Subject: Work. --- soft_spheres.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/soft_spheres.cpp b/soft_spheres.cpp index 7944aa0..148812f 100644 --- a/soft_spheres.cpp +++ b/soft_spheres.cpp @@ -24,7 +24,7 @@ int main(int argc, char* argv[]) { unsigned N = 1200; double R = 0.025; double ε = 0.005; - unsigned steps = 1e6; + unsigned steps = 1e4; double β = 0.5; initializeAnimation(argc, argv); @@ -45,5 +45,19 @@ int main(int argc, char* argv[]) { draw(m); } + for (unsigned i = 0; i < steps; i++) { + for (unsigned j = 0; j < N; j++) { + m.randomMove(β, ε, r); + } + + unsigned k = m.randomClusterSwap(β, r); + if (k != 0 && k != N) { + std::cout << k << std::endl; + } + + if (i % 3 == 0) + draw(m); + } + return 0; } -- cgit v1.2.3