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

Function OPS_ElasticSection

SRC/interpreter/OpenSeesSectionCommands.cpp:144–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144 static void *OPS_ElasticSection(void)
145 {
146 int numData = OPS_GetNumRemainingInputArgs();
147 void* theSec = 0;
148 int ndm = OPS_GetNDM();
149 if(ndm == 2) {
150 if(numData == 4) {
151 theSec = OPS_ElasticSection2d();
152 } else if(numData >=5) {
153 theSec = OPS_ElasticShearSection2d();
154 }
155 } else if(ndm == 3) {
156 if(numData == 7) {
157 theSec = OPS_ElasticSection3d();
158 } else if(numData >= 8) {
159 theSec = OPS_ElasticShearSection3d();
160 }
161 }
162
163 return theSec;
164 }
165
166 static void* OPS_FiberSection()
167 {

Callers

nothing calls this directly

Calls 6

OPS_ElasticSection2dFunction · 0.85
OPS_ElasticSection3dFunction · 0.85
OPS_GetNDMFunction · 0.70

Tested by

no test coverage detected