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

Method getResponse

SRC/element/UWelements/SSPbrick.cpp:997–1013  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

995}
996
997int
998SSPbrick::getResponse(int responseID, Information &eleInfo)
999{
1000 if (responseID == 1234432100) {
1001 // get stress from the material
1002 const Vector &mStress = theMaterial->getStress();
1003 return eleInfo.setVector(mStress);
1004 } else if (responseID == 1234432101) {
1005 // get strain from the material
1006
1007 const Vector &mStrain = theMaterial->getStrain();
1008 return eleInfo.setVector(mStrain);
1009 } else {
1010 // no special recorders for this element, call the method in the material class
1011 return theMaterial->getResponse(responseID, eleInfo);
1012 }
1013}
1014
1015int
1016SSPbrick::setParameter(const char **argv, int argc, Parameter &param)

Callers

nothing calls this directly

Calls 3

getStressMethod · 0.45
setVectorMethod · 0.45
getStrainMethod · 0.45

Tested by

no test coverage detected