| 1124 | } |
| 1125 | |
| 1126 | void MixedBeamColumn2d::Print(OPS_Stream &s, int flag) { |
| 1127 | |
| 1128 | if (flag == 1) { |
| 1129 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn2d "; |
| 1130 | s << "\tConnected Nodes: " << connectedExternalNodes ; |
| 1131 | s << "\tNumber of Sections: " << numSections; |
| 1132 | s << "\tMass density: " << rho; |
| 1133 | for (int i = 0; i < numSections; i++) |
| 1134 | s << "\nSection "<<i<<" :" << *sections[i]; |
| 1135 | |
| 1136 | } else if (flag == 33) { |
| 1137 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn2d "; |
| 1138 | double xi[MAX_NUM_SECTIONS]; // location of sections or gauss points or integration points |
| 1139 | beamIntegr->getSectionLocations(numSections, initialLength, xi); |
| 1140 | double wt[MAX_NUM_SECTIONS]; // weights of sections or gauss points of integration points |
| 1141 | beamIntegr->getSectionWeights(numSections, initialLength, wt); |
| 1142 | s << "\n section xi wt"; |
| 1143 | for (int i = 0; i < numSections; i++) |
| 1144 | s << "\n"<<i<<" "<<xi[i]<<" "<<wt[i]; |
| 1145 | |
| 1146 | } else if (flag == OPS_PRINT_PRINTMODEL_JSON) { |
| 1147 | s << "\t\t\t{"; |
| 1148 | s << "\"name\": " << this->getTag() << ", "; |
| 1149 | s << "\"type\": \"MixedBeamColumn2d\", "; |
| 1150 | s << "\"nodes\": [" << connectedExternalNodes(0) << ", " << connectedExternalNodes(1) << "], "; |
| 1151 | s << "\"sections\": ["; |
| 1152 | for (int i = 0; i < numSections - 1; i++) |
| 1153 | s << "\"" << sections[i]->getTag() << "\", "; |
| 1154 | s << "\"" << sections[numSections - 1]->getTag() << "\"], "; |
| 1155 | s << "\"integration\": "; |
| 1156 | beamIntegr->Print(s, flag); |
| 1157 | s << ", \"massperlength\": " << rho << ", "; |
| 1158 | s << "\"crdTransformation\": \"" << crdTransf->getTag() << "\""; |
| 1159 | if (!doRayleigh) |
| 1160 | s << ", \"doRayleigh\": false"; |
| 1161 | if (geomLinear) |
| 1162 | s << ", \"geomLinear\": true"; |
| 1163 | s << "}"; |
| 1164 | |
| 1165 | } else { |
| 1166 | s << "\nElement: " << this->getTag() << " Type: MixedBeamColumn2d "; |
| 1167 | s << "\tConnected Nodes: " << connectedExternalNodes ; |
| 1168 | s << "\tNumber of Sections: " << numSections; |
| 1169 | s << "\tMass density: " << rho << endln; |
| 1170 | } |
| 1171 | } |
| 1172 | |
| 1173 | OPS_Stream &operator<<(OPS_Stream &s, MixedBeamColumn2d &E) { |
| 1174 | E.Print(s); |
no test coverage detected