Skip to content

Commit

Permalink
Update rglong.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeZeroNull authored Sep 4, 2024
1 parent b62140b commit 731777d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rglong.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,20 @@ def RgLong(filename):
mass.append(12.0107)
elif line[-1] == 'O':
mass.append(15.9994)
elif line[-1] == 'O1-':
mass.append(15.9994)
elif line[-1] == 'N':
mass.append(14.0067)
elif line[-1] == 'N1+':
mass.append(14.0067)
elif line[-1] == 'S':
mass.append(32.065)
elif line[-1] == 'H':
mass.append(1.00794)
except:

pass


# Determine Center of Mass Coordinates and Total Mass
cmx,cmy,cmz,tmass=(0.0,0.0,0.0,0.0)
for (i, j, k), m in zip(coord, mass):
Expand Down

0 comments on commit 731777d

Please sign in to comment.