Example 1
Example 1
no
zero,K,2,2
c,1
assemble element stiffness matrices k=k1+k2
for,2
gbeam,k
asmb,K,k
next
0,4,1,2
0,0,1,2
4,8,1,1
1,2,0,0
read,Qk,2,1,1
-20,40
read,Qf,2,1,1
0,0
for,2
read,fea,4,1,1
asmb,Qf,fea
next
18,12,18,-12
0,0,1,2
0,0,0,0
1,2,0,0
write,Qf
sub,Qk,Qf,Qkk
solve,K,Qkk
ren,Qkk,Du
write,Du
for,2
gbeam,k
dsmb,Du,d,4
mul,k,d,p
read,qf,4,1,1
add,p,qf,q
write,q
next
0,4,1,2
0,0,1,2
0,0,0,0
18,12,18,-12
4,8,1,1
1,2,0,0
0,0,0,0
0,0,0,0
stop