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

Method getResponse

DEVELOPER/element/cpp/Truss2D.cpp:514–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512
513
514int
515Truss2D::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
534double
535Truss2D::computeCurrentStrain(void) const

Callers

nothing calls this directly

Calls 5

getResistingForceMethod · 0.80
setVectorMethod · 0.45
setTrialStrainMethod · 0.45
setDoubleMethod · 0.45
getStressMethod · 0.45

Tested by

no test coverage detected