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

Method setResponse

SRC/element/dispBeamColumnInt/FiberSection2dInt.cpp:3329–3738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3327
3328
3329Response*
3330FiberSection2dInt::setResponse(const char **argv, int argc, OPS_Stream &output)
3331{
3332 const ID &type = this->getType();
3333 int typeSize = this->getOrder();
3334
3335 Response *theResponse =0;
3336
3337 output.tag("SectionOutput");
3338 output.attr("secType", this->getClassType());
3339 output.attr("secTag", this->getTag());
3340
3341 // deformations
3342 if (strcmp(argv[0],"deformations") == 0 || strcmp(argv[0],"deformation") == 0) {
3343 for (int i=0; i<typeSize; i++) {
3344 int code = type(i);
3345 switch (code){
3346 case SECTION_RESPONSE_MZ:
3347 output.tag("ResponseType","kappaZ");
3348 break;
3349 case SECTION_RESPONSE_P:
3350 output.tag("ResponseType","eps");
3351 break;
3352 case SECTION_RESPONSE_VY:
3353 output.tag("ResponseType","gammaY");
3354 break;
3355 case SECTION_RESPONSE_MY:
3356 output.tag("ResponseType","kappaY");
3357 break;
3358 case SECTION_RESPONSE_VZ:
3359 output.tag("ResponseType","gammaZ");
3360 break;
3361 case SECTION_RESPONSE_T:
3362 output.tag("ResponseType","theta");
3363 break;
3364 default:
3365 output.tag("ResponseType","Unknown");
3366 }
3367 }
3368 theResponse = new MaterialResponse(this, 1, this->getSectionDeformation());
3369 return theResponse;
3370
3371 // forces
3372 } else if (strcmp(argv[0],"forces") == 0 || strcmp(argv[0],"force") == 0) {
3373 for (int i=0; i<typeSize; i++) {
3374 int code = type(i);
3375 switch (code){
3376 case SECTION_RESPONSE_MZ:
3377 output.tag("ResponseType","Mz");
3378 break;
3379 case SECTION_RESPONSE_P:
3380 output.tag("ResponseType","P");
3381 break;
3382 case SECTION_RESPONSE_VY:
3383 output.tag("ResponseType","Vy");
3384 break;
3385 case SECTION_RESPONSE_MY:
3386 output.tag("ResponseType","My");

Callers

nothing calls this directly

Calls 10

getOrderMethod · 0.95
typeEnum · 0.50
VectorClass · 0.50
getTypeMethod · 0.45
tagMethod · 0.45
attrMethod · 0.45
getClassTypeMethod · 0.45
getTagMethod · 0.45
getAlphaMethod · 0.45
getIterMethod · 0.45

Tested by

no test coverage detected