Computing Assembled Stiffness Matrix - Code Flashcards
1
Q
for in = 1:nnode;
nodei = ?
A
lnods(ielem, in);
2
Q
for il = 1:ndofn;
ie = ?
ig = ?
A
(in - 1) * ndofn +il;
(nodei - 1) * ndofn + il;
3
Q
for jn = 1:nnode;
nodej = ?
A
nodej = lnods(ielem, jn);
4
Q
for jl = 1:ndofn;
je = ?
jg = ?
gstif(ig, jg) = ?
A
je = (jn - 1) * ndofn + jl;
jg = (nodej - 1) * ndofn + jl;
gstif(ig, jg) = gstif(ig, jg) + estif(ie, je);