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

Method Print

SRC/element/RockingBC/RockingBC.cpp:1252–1278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252void
1253RockingBC::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
1280Response*
1281RockingBC::setResponse(const char **argv, int argc, OPS_Stream &output)

Callers

nothing calls this directly

Calls 3

getInitialLengthMethod · 0.95
getResistingForceMethod · 0.80
getTagMethod · 0.45

Tested by

no test coverage detected