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

Method getResponse

SRC/element/UWelements/SSPbrickUP.cpp:1173–1192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1171}
1172
1173int
1174SSPbrickUP::getResponse(int responseID, Information &eleInfo)
1175{
1176 // no special recorders for this element, call the method in the material class
1177 if (responseID == 1) {
1178 // get stress from the material
1179 const Vector &mStress = theMaterial->getStress();
1180 return eleInfo.setVector(mStress);
1181 } else if (responseID == 2) {
1182 // get strain from the material
1183
1184 const Vector &mStrain = theMaterial->getStrain();
1185 return eleInfo.setVector(mStrain);
1186 } else if (responseID == 3) {
1187 return eleInfo.setMatrix(this->getMass());
1188 } else {
1189 // no special recorders for this element, call the method in the material class
1190 return theMaterial->getResponse(responseID, eleInfo);
1191 }
1192}
1193
1194int
1195SSPbrickUP::setParameter(const char **argv, int argc, Parameter &param)

Callers

nothing calls this directly

Calls 4

getStressMethod · 0.45
setVectorMethod · 0.45
getStrainMethod · 0.45
setMatrixMethod · 0.45

Tested by

no test coverage detected