| 1287 | |
| 1288 | |
| 1289 | int TwoNodeLink::getResponse(int responseID, Information &eleInfo) |
| 1290 | { |
| 1291 | Vector defoAndForce(numDIR*2); |
| 1292 | Vector &theVec = *(eleInfo.theVector); |
| 1293 | ID &theID = *(eleInfo.theID); |
| 1294 | |
| 1295 | switch (responseID) { |
| 1296 | case 1: // global forces |
| 1297 | return eleInfo.setVector(this->getResistingForce()); |
| 1298 | |
| 1299 | case 2: // local forces |
| 1300 | theVector->Zero(); |
| 1301 | // determine resisting forces in local system |
| 1302 | theVector->addMatrixTransposeVector(0.0, Tlb, qb, 1.0); |
| 1303 | // add P-Delta effects to local forces |
| 1304 | if (Mratio.Size() == 4) |
| 1305 | this->addPDeltaForces(*theVector, qb); |
| 1306 | |
| 1307 | return eleInfo.setVector(*theVector); |
| 1308 | |
| 1309 | case 3: // basic forces |
| 1310 | return eleInfo.setVector(qb); |
| 1311 | |
| 1312 | case 4: // local displacements |
| 1313 | return eleInfo.setVector(ul); |
| 1314 | |
| 1315 | case 5: // basic displacements |
| 1316 | return eleInfo.setVector(ub); |
| 1317 | |
| 1318 | case 6: // basic deformations and basic forces |
| 1319 | defoAndForce.Zero(); |
| 1320 | defoAndForce.Assemble(ub,0); |
| 1321 | defoAndForce.Assemble(qb,numDIR); |
| 1322 | |
| 1323 | return eleInfo.setVector(defoAndForce); |
| 1324 | |
| 1325 | case 20: |
| 1326 | theVec(0) = trans(0,0); |
| 1327 | theVec(1) = trans(0,1); |
| 1328 | theVec(2) = trans(0,2); |
| 1329 | return 0; |
| 1330 | case 21: |
| 1331 | theVec(0) = trans(1,0); |
| 1332 | theVec(1) = trans(1,1); |
| 1333 | theVec(2) = trans(1,2); |
| 1334 | return 0; |
| 1335 | case 22: |
| 1336 | theVec(0) = trans(2,0); |
| 1337 | theVec(1) = trans(2,1); |
| 1338 | theVec(2) = trans(2,2); |
| 1339 | return 0; |
| 1340 | |
| 1341 | case 23: |
| 1342 | for (int i = 0; i < numDIR; i++) |
| 1343 | theID(i) = theMaterials[i]->getTag(); |
| 1344 | return 0; |
| 1345 | case 24: |
| 1346 | for (int i = 0; i < numDIR; i++) |
nothing calls this directly
no test coverage detected