| 1171 | } |
| 1172 | |
| 1173 | int |
| 1174 | SSPbrickUP::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 | |
| 1194 | int |
| 1195 | SSPbrickUP::setParameter(const char **argv, int argc, Parameter ¶m) |