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

Method Print

SRC/material/section/FiberSectionWarping3d.cpp:1172–1194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170}
1171
1172void
1173FiberSectionWarping3d::Print(OPS_Stream &s, int flag)
1174{
1175 if (flag == 2) {
1176 for (int i = 0; i < numFibers; i++) {
1177 s << -matData[4*i] << " " << matData[4*i+1] << " " << matData[4*i+2] << " " ;
1178 s << theMaterials[i]->getStress() << " " << theMaterials[i]->getStrain() << endln;
1179 }
1180 } else {
1181 s << "\nFiberSectionWarping3d, tag: " << this->getTag() << endln;
1182 s << "\tSection code: " << code;
1183 s << "\tNumber of Fibers: " << numFibers << endln;
1184 s << "\tCentroid: (" << -yBar << ", " << zBar << ')' << endln;
1185
1186 if (flag == 1) {
1187 for (int i = 0; i < numFibers; i++) {
1188 s << "\nLocation (y, z) = (" << -matData[4*i] << ", " << matData[4*i+1] << ")";
1189 s << "\nArea = " << matData[4*i+2] << endln;
1190 theMaterials[i]->Print(s, flag);
1191 }
1192 }
1193 }
1194}
1195
1196Response*
1197FiberSectionWarping3d::setResponse(const char **argv, int argc, OPS_Stream &output)

Callers

nothing calls this directly

Calls 3

getStressMethod · 0.45
getStrainMethod · 0.45
getTagMethod · 0.45

Tested by

no test coverage detected