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

Function OPS_ElasticSection

SRC/material/section/ElasticSection2d.cpp:73–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71extern void* OPS_ElasticShearSection3d(void);
72
73void *OPS_ElasticSection(void)
74{
75 int numData = OPS_GetNumRemainingInputArgs();
76 void* theSec = 0;
77 int ndm = OPS_GetNDM();
78 if(ndm == 2) {
79 if(numData == 4) {
80 theSec = OPS_ElasticSection2d();
81 } else if(numData >=5) {
82 theSec = OPS_ElasticShearSection2d();
83 }
84 } else if(ndm == 3) {
85 if(numData == 7) {
86 theSec = OPS_ElasticSection3d();
87 } else if(numData >= 8) {
88 theSec = OPS_ElasticShearSection3d();
89 }
90 }
91
92 return theSec;
93}
94
95ElasticSection2d::ElasticSection2d(void)
96:SectionForceDeformation(0, SEC_TAG_Elastic2d),

Callers 1

Calls 6

OPS_ElasticSection2dFunction · 0.85
OPS_ElasticSection3dFunction · 0.85
OPS_GetNDMFunction · 0.50

Tested by

no test coverage detected