| 512 | |
| 513 | |
| 514 | int |
| 515 | Truss2D::getResponse(int responseID, Information &eleInfo) |
| 516 | { |
| 517 | double strain; |
| 518 | |
| 519 | switch (responseID) { |
| 520 | case -1: |
| 521 | return -1; |
| 522 | case 1: // global forces |
| 523 | return eleInfo.setVector(this->getResistingForce()); |
| 524 | case 2: |
| 525 | return eleInfo.setVector(this->getRayleighDampingForces()); |
| 526 | case 3: |
| 527 | theMaterial->setTrialStrain(strain); |
| 528 | return eleInfo.setDouble(A * theMaterial->getStress()); |
| 529 | default: |
| 530 | return 0; |
| 531 | } |
| 532 | } |
| 533 | |
| 534 | double |
| 535 | Truss2D::computeCurrentStrain(void) const |
nothing calls this directly
no test coverage detected