81 double unitCellSize = this->
giveNode(5)->giveCoordinate(1);
83 IntArray switches1, switches2, switches3, switches4;
90 for (
int i = 1; i <= 4; i++ ) {
91 w.
at(i) = this->
giveNode(i)->giveCoordinate(3);
100 k1.
at(1, 1) = unitCellSize * switches1.
at(1);
101 k1.
at(1, 3) = -w.
at(1) * unitCellSize * switches1.
at(1);
102 k1.
at(3, 2) = unitCellSize * switches1.
at(1);
104 k2.
at(1, 1) = unitCellSize * switches2.
at(1);
105 k2.
at(1, 3) = -w.
at(2) * unitCellSize * switches2.
at(1);
106 k2.
at(3, 2) = unitCellSize * switches2.
at(1);
108 k3.
at(1, 1) = unitCellSize * switches3.
at(1);
109 k3.
at(1, 3) = -w.
at(3) * unitCellSize * switches3.
at(1);
110 k3.
at(3, 2) = unitCellSize * switches3.
at(1);
112 k4.
at(1, 1) = unitCellSize * switches4.
at(1);
113 k4.
at(1, 3) = -w.
at(4) * unitCellSize * switches4.
at(1);
114 k4.
at(3, 2) = unitCellSize * switches4.
at(1);
120 answer.
assemble(k1, { 1, 2, 3 }, { 13, 14, 15 });
121 answer.
assemble(k2, { 4, 5, 6 }, { 13, 14, 15 });
122 answer.
assemble(k3, { 7, 8, 9 }, { 13, 14, 15 });
123 answer.
assemble(k4, { 10, 11, 12 }, { 13, 14, 15 });