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

Method getResponse

SRC/element/Element.cpp:482–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482int
483Element::getResponse(int responseID, Information &eleInfo)
484{
485 switch (responseID) {
486 case 111111: // global forces
487 return eleInfo.setVector(this->getResistingForce());
488 case 222222:
489 return eleInfo.setVector(this->getRayleighDampingForces());
490 case 333333:
491 return eleInfo.setVector(this->getResistingForceIncInertia());
492 case 444444:
493 return eleInfo.setVector(this->getResistingForceIncInertia()-this->getRayleighDampingForces()-this->getResistingForce());
494
495 default:
496 return -1;
497 }
498}
499
500int
501Element::getResponseSensitivity(int responseID, int gradIndex,

Callers

nothing calls this directly

Calls 2

getResistingForceMethod · 0.80
setVectorMethod · 0.45

Tested by

no test coverage detected