| 640 | } |
| 641 | |
| 642 | void |
| 643 | TimoshenkoSection3d::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 | |
| 670 | Response* |
| 671 | TimoshenkoSection3d::setResponse(const char **argv, int argc, |