Skip to main content
. 2015 Nov 30;143(20):204106. doi: 10.1063/1.4936132

ALGORITHM 1.

Type-2 mGNM multiscale Kirchhoff matrix.

Input: Γii, i = 1, 2, …, N ⊳ Diagonal terms are calculated from mFRI.
for j←2, N do ⊳ For the first row and first line of multiscale Kirchhoff matrix.
Γ1j=Γ11N1 ⊳ We equally distribute the diagonal terms into non-diagonal parts.
Γj1 = Γ1j ⊳ Use the symmetry property.
end for
for i←2, N − 1 do
sum = 0
for k←1, i − 1do
k1 = k
k2 = k + 1
sum = sum + Γk1k2 ⊳ Summarize over terms already determined from previous iterations.
end for
forji + 1, N
Γij=ΓiisumNi ⊳ We equally distribute the diagonal terms into non-diagonal parts.
Γji = Γij ⊳ Use the symmetry property.
end for
end for