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

Method getResponse

SRC/element/UWelements/SSPquadUP.cpp:990–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988}
989
990int
991SSPquadUP::getResponse(int responseID, Information &eleInfo)
992{
993 if (responseID == 1234432100) {
994 // return the stress vector
995 Vector stress(3);
996 stress = theMaterial->getStress();
997 eleInfo.setVector(stress);
998 return 0;
999 } else if (responseID == 1234432101) {
1000 // return the strain vector
1001 Vector strain(3);
1002 strain = theMaterial->getStrain();
1003 eleInfo.setVector(strain);
1004 return 0;
1005 } else {
1006 // default is to call getResponse in the material
1007 return theMaterial->getResponse(responseID, eleInfo);
1008 }
1009}
1010
1011int
1012SSPquadUP::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