MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getDirID

Method getDirID

SRC/element/twoNodeLink/TwoNodeLinkSection.cpp:1345–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345int TwoNodeLinkSection::getDirID(int sectionCode)
1346{
1347 int dirID = -1;
1348
1349 switch (sectionCode) {
1350 case SECTION_RESPONSE_P:
1351 dirID = 0;
1352 break;
1353 case SECTION_RESPONSE_VY:
1354 dirID = 1;
1355 break;
1356 case SECTION_RESPONSE_VZ:
1357 dirID = 2;
1358 break;
1359 case SECTION_RESPONSE_T:
1360 dirID = 3;
1361 break;
1362 case SECTION_RESPONSE_MY:
1363 dirID = 4;
1364 break;
1365 case SECTION_RESPONSE_MZ:
1366 dirID = numDIM == 2 ? 2 : 5;
1367 break;
1368 default:
1369 break;
1370 }
1371 return dirID;
1372}
1373
1374void TwoNodeLinkSection::addPDeltaForces(Vector &pLocal, const Vector& qBasic)
1375{

Callers 3

setTranLocalBasicMethod · 0.95
addPDeltaForcesMethod · 0.95
addPDeltaStiffMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected