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

Method Print

SRC/material/section/TimoshenkoSection3d.cpp:642–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void
643TimoshenkoSection3d::Print(OPS_Stream &s, int flag)
644{
645 if (flag == 2) {
646 int loc = 0;
647 for (int i = 0; i < numFibers; i++) {
648 s << -matData[loc] << " " << matData[loc+1] << " " << matData[loc+2] << " " ;
649 s << theMaterials[i]->getStress() << " " << theMaterials[i]->getStrain() << endln;
650 loc += 3;
651 }
652 } else {
653 s << "\nTimoshenkoSection3d, tag: " << this->getTag() << endln;
654 s << "\tSection code: " << code;
655 s << "\tNumber of Fibers: " << numFibers << endln;
656 s << "\tCentroid: (" << -yBar << ", " << zBar << ')' << endln;
657
658 if (flag == 1) {
659 int loc = 0;
660 for (int i = 0; i < numFibers; i++) {
661 s << "\nLocation (y, z) = (" << -matData[loc] << ", " << matData[loc+1] << ")";
662 s << "\nArea = " << matData[loc+2] << endln;
663 loc+= 3;
664 theMaterials[i]->Print(s, flag);
665 }
666 }
667 }
668}
669
670Response*
671TimoshenkoSection3d::setResponse(const char **argv, int argc,

Callers

nothing calls this directly

Calls 3

getStressMethod · 0.45
getStrainMethod · 0.45
getTagMethod · 0.45

Tested by

no test coverage detected