Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Main
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ If CalculateEnergy == 1.0:
Total_KE = []
Total_E = []

#Uses the velocity verlet method to update position, velocity and force. Outpouts positions to a .xyz file
#Uses the velocity verlet method to update position, velocity and force. Outputs positions to a .xyz file

SDTemp = []
SDContain = []
time_last_saved = 0
T = dt*5
l = 0
MSD_Time_List = []
MSD_Time = 0


while t < maxTime:
oldForce, PE, KE = totalForce(particles)
Expand Down Expand Up @@ -191,6 +194,8 @@ while t < maxTime:
oldForce = newForce
t = t+dt
l = l+1
MSD_Time = MSD_Time + T
MSD_Time_List.append(MSD_Time)


#Calls MSD_Calculator method from Particle 3D
Expand Down