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

Method setResponse

SRC/material/section/SectionForceDeformation.cpp:637–875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

635}
636
637Response*
638SectionForceDeformation::setResponse(const char **argv, int argc,
639 OPS_Stream &output)
640{
641 const ID &type = this->getType();
642 int typeSize = this->getOrder();
643
644 Response *theResponse =0;
645
646 output.tag("SectionOutput");
647 output.attr("secType", this->getClassType());
648 output.attr("secTag", this->getTag());
649
650 // deformations
651 if (strcmp(argv[0],"deformations") == 0 || strcmp(argv[0],"deformation") == 0) {
652 for (int i=0; i<typeSize; i++) {
653 int code = type(i);
654 switch (code){
655 case SECTION_RESPONSE_MZ:
656 output.tag("ResponseType","kappaZ");
657 break;
658 case SECTION_RESPONSE_P:
659 output.tag("ResponseType","eps");
660 break;
661 case SECTION_RESPONSE_VY:
662 output.tag("ResponseType","gammaY");
663 break;
664 case SECTION_RESPONSE_MY:
665 output.tag("ResponseType","kappaY");
666 break;
667 case SECTION_RESPONSE_VZ:
668 output.tag("ResponseType","gammaZ");
669 break;
670 case SECTION_RESPONSE_T:
671 output.tag("ResponseType","theta");
672 break;
673 case SECTION_RESPONSE_FXX:
674 output.tag("ResponseType", "epsXX");
675 break;
676 case SECTION_RESPONSE_FYY:
677 output.tag("ResponseType", "epsYY");
678 break;
679 case SECTION_RESPONSE_FXY:
680 output.tag("ResponseType", "epsXY");
681 break;
682 case SECTION_RESPONSE_MXX:
683 output.tag("ResponseType", "kappaXX");
684 break;
685 case SECTION_RESPONSE_MYY:
686 output.tag("ResponseType", "kappaYY");
687 break;
688 case SECTION_RESPONSE_MXY:
689 output.tag("ResponseType", "kappaXY");
690 break;
691 case SECTION_RESPONSE_VXZ:
692 output.tag("ResponseType", "gammaXZ");
693 break;
694 case SECTION_RESPONSE_VYZ:

Callers 5

OPS_sectionLocationFunction · 0.45
OPS_sectionWeightFunction · 0.45
OPS_sectionResponseTypeFunction · 0.45
OPS_sectionTagFunction · 0.45
OPS_sectionDisplacementFunction · 0.45

Calls 10

typeEnum · 0.50
VectorClass · 0.50
getTypeMethod · 0.45
getOrderMethod · 0.45
tagMethod · 0.45
attrMethod · 0.45
getClassTypeMethod · 0.45
getTagMethod · 0.45
getSectionTangentMethod · 0.45
endTagMethod · 0.45

Tested by

no test coverage detected