How I do this thing on Python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How I do this thing on Python?

I want to simulate a molecular Dynamics, but I dont know How to do this thing, I need create a box with particles and this particles need to be in random position, using a equation of interaction, at the end that particles will show a hexagonal Pattern, because the distance will be the same. help.

30th Sep 2018, 1:18 PM
Isaac Muniz
Isaac Muniz - avatar
6 Answers
30th Sep 2018, 1:38 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
From there you can make the equation you talked about.
30th Sep 2018, 1:39 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
you could explain? I'm complete beginer on programing
30th Sep 2018, 1:42 PM
Isaac Muniz
Isaac Muniz - avatar
0
may*
30th Sep 2018, 1:42 PM
Isaac Muniz
Isaac Muniz - avatar
0
In that code I just created a Box class which is initialized with 100 particles by default. Each particle is initialized with a random position x and y. But I've done enough already. The rest is with you.
30th Sep 2018, 1:46 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
thanks, I understand now ✌️
30th Sep 2018, 1:48 PM
Isaac Muniz
Isaac Muniz - avatar