Physics, Science, Programming, Deep Dives, Thoughts And Theory.
positions, velocities, colors, and masses self.positions=np.zeros((self.n_molecules,self.dim)) self.velocities=np.zeros((self.n_molecules,self.dim)) self.colors=np.zeros(self.n_molecules,dtype="object") self.masses=np.zeros(self.n_molecules) #Iterate over molecules, get their properties and assign