N particles with electric charge q are placed on a unit sphere at random. They repel each other and relax toward an equilibrium configuration as their motion damps away.
In the code box below, design an algorithm that computes the potential energy of the equilibrium.
Details & Code:
U(listofPoints)
takes a list of
NumPy
arrays containing the position vectors of each of the
N
charges, and returns the total potential energy
i
=
1
∑
N
j
>
i
∑
N
r
i
j
1
.
1 2 3 4 5 6 7 8 9 10 11 |
|
import numpy
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I used a hill-climbing algorithm to solve. I'm sure the code provided is perfectly fine, but I understand best if I write it myself from scratch. The minimum potential ends up being about 106.05
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 |
|
How did you get the time for all that?
Log in to reply
I think it took me about an hour
I am not sure if this link will work for you all, but here is an article discussing this problem, T Erber and G M Hockney 1991, J. Phys. A: Math. Gen. 24 L1369
They went up to N=65. They pointed out that metastable configurations start to appear above N=16. (N=17 has no metastable solution.)
This is just the N = 1 7 solution to the Thomson problem , and the answer is 1 0 6 . 0 5 0 4 0 4 8 2 9 .
Thanks for the info. Interesting to see that this doesn't appear to be a trivial problem, from the perspective of formal mathematics.
Log in to reply
Mathematically it's not easy, but electrons on a conducting sphere somehow get it right every time. Algorithms to generate the equilibrium configurations are tough to come by too, so we thought we'd open up the problem to the Brilliant community.
Log in to reply
Another fun one is finding the equilibrium position for 20 (or so) masses chained together with springs to form a sort of discrete catenary.
Log in to reply
@Steven Chase – I tried (and failed) to solve the discrete catenary problem last night. Is there a closed-form solution, or do you have to solve it numerically?
Log in to reply
@Aaron Miller – Thanks for your interest
I know of two ways to do it:
1) Use a search algorithm (hill-climbing, etc.)
2) Do a small-time-step physics simulation with some viscosity in the environment (so it doesn't oscillate forever)
I've actually posted a small version of it. Might be fun to do a bigger version too.
https://brilliant.org/problems/how-hard-could-two-springs-be/?ref_id=1399743
@Aaron Miller – Suppose that 2 K − 1 point masses, each of mass m , are joined by 2 K light inextensible rods each of length 1 . The linkages at the masses are smooth. This model of a chain is suspended between two points A , B at the same vertical height and a distance 2 L apart, where 0 < L < K .
The system is symmetric, and the middle mass will be supported by two rods, each at angle θ 1 to the horizontal, each under tension T 1 . These two rods are in turn attached to rods making angles θ 2 to the horizontal, each under tension T 2 . And so on up, until the last two rods (which fix the chain to the points A , B ) are under tension T K and make an angle θ K with the horizontal.
Since there is no horizontal motion, we have T k cos θ k = T k − 1 cos θ k − 1 for all k . The k th pair of rods are supporting 2 k − 1 point masses, and hence 2 T k sin θ k = ( 2 k − 1 ) m g If we write 2 T k cos θ k = m g γ − 1 for all k , we deduce that tan θ k = ( 2 k − 1 ) γ for all k . In addition, we require that L = k = 1 ∑ K cos θ k = k = 1 ∑ K 1 + γ 2 ( 2 k − 1 ) 2 1 which enables us to determine the value of γ , at least numerically.
The case L = 5 , K = 1 0 is shown below, and the positions of the point masses are compared with the catenary for a continuous chain of length 2 K hanging between the points A and B .
A similar model can be used to consider the alternative view where the chain is comprised of uniform bars of length 1 and mass m linked smoothly together...
If the connecting rods were light springs, then we would still have similar equations for the angles θ k , but now the values for the tensions T k would tell us the lengths of the springs (given the spring constant). We would still have the requirement of the horizontal spread from A to B being 2 L to give us a condition to determine the constant γ ...
Log in to reply
@Mark Hennings – Thanks, @Mark Hennings . Nice answer! I should have tried it with rigid rods first, but I jumped straight to springs and found myself in an algebraic quagmire, even for two springs. Look for some catenary problems in the coming weeks. I hope you'll reshare your clear insights.
Problem Loading...
Note Loading...
Set Loading...
Here is how the charges look like after reaching equilibrium. They are plotted against a spherical wire frame that has a separation of 3 0 ∘ for both θ and ϕ .