| 1252 | |
| 1253 | |
| 1254 | void MixedBeamColumn3d::Print(OPS_Stream &s, int flag) { |
| 1255 | |
| 1256 | if (flag == 1) { |
| 1257 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn3d "; |
| 1258 | s << "\tConnected Nodes: " << connectedExternalNodes ; |
| 1259 | s << "\tNumber of Sections: " << numSections; |
| 1260 | s << "\tMass density: " << rho; |
| 1261 | for (int i = 0; i < numSections; i++) |
| 1262 | s << "\nSection "<<i<<" :" << *sections[i]; |
| 1263 | |
| 1264 | } else if (flag == 33) { |
| 1265 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn3d "; |
| 1266 | double xi[MAX_NUM_SECTIONS]; // location of sections or gauss points or integration points |
| 1267 | beamIntegr->getSectionLocations(numSections, initialLength, xi); |
| 1268 | double wt[MAX_NUM_SECTIONS]; // weights of sections or gauss points of integration points |
| 1269 | beamIntegr->getSectionWeights(numSections, initialLength, wt); |
| 1270 | s << "\n section xi wt"; |
| 1271 | for (int i = 0; i < numSections; i++) |
| 1272 | s << "\n"<<i<<" "<<xi[i]<<" "<<wt[i]; |
| 1273 | |
| 1274 | } else if (flag == OPS_PRINT_PRINTMODEL_JSON) { |
| 1275 | s << "\t\t\t{"; |
| 1276 | s << "\"name\": " << this->getTag() << ", "; |
| 1277 | s << "\"type\": \"mixedBeamColumn2d\", "; |
| 1278 | s << "\"nodes\": [" << connectedExternalNodes(0) << ", " << connectedExternalNodes(1) << "], "; |
| 1279 | s << "\"sections\": ["; |
| 1280 | for (int i = 0; i < numSections - 1; i++) |
| 1281 | s << "\"" << sections[i]->getTag() << "\", "; |
| 1282 | s << "\"" << sections[numSections - 1]->getTag() << "\"], "; |
| 1283 | s << "\"integration\": "; |
| 1284 | beamIntegr->Print(s, flag); |
| 1285 | s << ", \"massperlength\": " << rho << ", "; |
| 1286 | s << "\"crdTransformation\": \"" << crdTransf->getTag() << "\""; |
| 1287 | if (!doRayleigh) |
| 1288 | s << ", \"doRayleigh\": false"; |
| 1289 | if (geomLinear) |
| 1290 | s << ", \"geomLinear\": true"; |
| 1291 | s << "}"; |
| 1292 | |
| 1293 | } else { |
| 1294 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn3d "; |
| 1295 | s << "\tConnected Nodes: " << connectedExternalNodes ; |
| 1296 | s << "\tNumber of Sections: " << numSections; |
| 1297 | s << "\tMass density: " << rho << endln; |
| 1298 | } |
| 1299 | |
| 1300 | } |
| 1301 | |
| 1302 | |
| 1303 | OPS_Stream &operator<<(OPS_Stream &s, MixedBeamColumn3d &E) { |
no test coverage detected