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

Method getResponse

SRC/element/UWelements/SSPquad.cpp:851–870  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

849}
850
851int
852SSPquad::getResponse(int responseID, Information &eleInfo)
853{
854 if (responseID == 1234432101) {
855 // return the stress vector
856 Vector stress(3);
857 stress = theMaterial->getStress();
858 eleInfo.setVector(stress);
859 return 0;
860 } else if (responseID == 1234432102) {
861 // return the strain vector
862 Vector strain(3);
863 strain = theMaterial->getStrain();
864 eleInfo.setVector(strain);
865 return 0;
866 } else {
867 // default is to call getResponse in the material
868 return theMaterial->getResponse(responseID, eleInfo);
869 }
870}
871
872int
873SSPquad::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