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

Method setResponse

SRC/material/nD/FSAM.cpp:2445–2652  ·  view source on GitHub ↗

Set Response

Source from the content-addressed store, hash-verified

2443
2444// Set Response
2445Response* FSAM::setResponse(const char **argv, int argc, OPS_Stream &theOutput)
2446{
2447 Response *theResponse = 0;
2448
2449 if (strcmp(argv[0],"panel_strain") == 0 || strcmp(argv[0],"Panel_strain") == 0) {
2450
2451 theOutput.tag("NdMaterialOutput");
2452 theOutput.attr("matType", this->getClassType());
2453 theOutput.attr("matTag", this->getTag());
2454 theOutput.tag("ResponseType", "eps11");
2455 theOutput.tag("ResponseType", "eps22");
2456 theOutput.tag("ResponseType", "eps12");
2457 theOutput.endTag();
2458
2459 Vector data1(3);
2460 data1.Zero();
2461
2462 theResponse = new MaterialResponse(this, 101, data1);
2463
2464 } else if (strcmp(argv[0],"panel_stress") == 0 || strcmp(argv[0],"Panel_Stress") == 0) {
2465
2466 theOutput.tag("NdMaterialOutput");
2467 theOutput.attr("matType", this->getClassType());
2468 theOutput.attr("matTag", this->getTag());
2469 theOutput.tag("ResponseType", "sigma11");
2470 theOutput.tag("ResponseType", "sigma22");
2471 theOutput.tag("ResponseType", "sigma12");
2472 theOutput.endTag();
2473
2474 Vector data2(3);
2475 data2.Zero();
2476
2477 theResponse = new MaterialResponse(this, 102, data2);
2478
2479 } else if (strcmp(argv[0],"panel_stress_concrete") == 0 || strcmp(argv[0],"Panel_Stress_Concrete") == 0) {
2480
2481 theOutput.tag("NdMaterialOutput");
2482 theOutput.attr("matType", this->getClassType());
2483 theOutput.attr("matTag", this->getTag());
2484 theOutput.tag("ResponseType", "sigma11");
2485 theOutput.tag("ResponseType", "sigma22");
2486 theOutput.tag("ResponseType", "sigma12");
2487 theOutput.endTag();
2488
2489 Vector data3(3);
2490 data3.Zero();
2491
2492 theResponse = new MaterialResponse(this, 103, data3);
2493
2494 } else if (strcmp(argv[0],"panel_stress_steel") == 0 || strcmp(argv[0],"Panel_Stress_Steel") == 0) {
2495
2496 theOutput.tag("NdMaterialOutput");
2497 theOutput.attr("matType", this->getClassType());
2498 theOutput.attr("matTag", this->getTag());
2499 theOutput.tag("ResponseType", "sigma11");
2500 theOutput.tag("ResponseType", "sigma22");
2501 theOutput.tag("ResponseType", "sigma12");
2502 theOutput.endTag();

Callers 2

FSAMMethod · 0.45

Calls 6

tagMethod · 0.45
attrMethod · 0.45
getClassTypeMethod · 0.45
getTagMethod · 0.45
endTagMethod · 0.45
ZeroMethod · 0.45

Tested by 1