| 1250 | } |
| 1251 | |
| 1252 | void |
| 1253 | RockingBC::Print(OPS_Stream &s, int flag) |
| 1254 | { |
| 1255 | // to update forces! |
| 1256 | this->getResistingForce(); |
| 1257 | |
| 1258 | if (flag == -1) { |
| 1259 | int eleTag = this->getTag(); |
| 1260 | s << "RockingBC\t" << eleTag << "\t"; |
| 1261 | s << 0 << "\t" << 0 << "\t" << connectedExternalNodes(0) << "\t" << connectedExternalNodes(1) ; |
| 1262 | s << "0\t0.0000000\n"; |
| 1263 | } else { |
| 1264 | this->getResistingForce(); |
| 1265 | s << "\nRockingBC: " << this->getTag() << endln; |
| 1266 | s << "\tConnected Nodes: " << connectedExternalNodes ; |
| 1267 | //s << "\tCoordTransf: " << this->getTag() << endln; |
| 1268 | double P = Fe(3); |
| 1269 | double M1 = Fe(5); |
| 1270 | double M2 = Fe(2); |
| 1271 | double L = this->getInitialLength(); |
| 1272 | double V = (M1+M2)/L; |
| 1273 | s << "\tEnd 1 Forces (P V M): " << -P |
| 1274 | << " " << V << " " << M2 << endln; |
| 1275 | s << "\tEnd 2 Forces (P V M): " << P |
| 1276 | << " " << -V << " " << M1 << endln; |
| 1277 | } |
| 1278 | } |
| 1279 | |
| 1280 | Response* |
| 1281 | RockingBC::setResponse(const char **argv, int argc, OPS_Stream &output) |
nothing calls this directly
no test coverage detected