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

Function OPS_ShellMITC4

SRC/element/shell/ShellMITC4.cpp:60–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58static int numShellMITC4 = 0;
59
60void *
61OPS_ShellMITC4(void)
62{
63 if (numShellMITC4 == 0) {
64// opserr << "Using ShellMITC4 - Developed by: Leopoldo Tesser, Diego A. Talledo, V�ronique Le Corvec\n";
65 numShellMITC4++;
66 }
67
68 Element *theElement = 0;
69
70 int numArgs = OPS_GetNumRemainingInputArgs();
71
72 if (numArgs < 6) {
73 opserr << "Want: element ShellMITC4 $tag $iNode $jNoe $kNode $lNode $secTag<-updateBasis>";
74 return 0;
75 }
76
77 int iData[6];
78 int numData = 6;
79 if (OPS_GetInt(&numData, iData) != 0) {
80 opserr << "WARNING invalid integer tag: element ShellMITC4 \n";
81 return 0;
82 }
83 bool updateBasis = false;
84
85 int dampingTag = 0;
86 Damping *theDamping = 0;
87
88 while(OPS_GetNumRemainingInputArgs() > 0) {
89 const char* type = OPS_GetString();
90 if(strcmp(type,"-updateBasis") == 0)
91 updateBasis = true;
92 else if(strcmp(type,"-damp") == 0) {
93 if(OPS_GetNumRemainingInputArgs() > 0) {
94 numData = 1;
95 if(OPS_GetIntInput(&numData,&dampingTag) < 0) return 0;
96 theDamping = OPS_getDamping(dampingTag);
97 if(theDamping == 0) {
98 opserr<<"damping not found\n";
99 return 0;
100 }
101 }
102 }
103 }
104
105 SectionForceDeformation *theSection = OPS_getSectionForceDeformation(iData[5]);
106
107 if (theSection == 0) {
108 opserr << "ERROR: element ShellMITC4 " << iData[0] << "section " << iData[5] << " not found\n";
109 return 0;
110 }
111
112 theElement = new ShellMITC4(iData[0], iData[1], iData[2], iData[3],
113 iData[4], *theSection, updateBasis, theDamping);
114
115 return theElement;
116}
117

Callers 2

setEleArgsMethod · 0.85

Calls 9

OPS_getDampingFunction · 0.85
OPS_GetStringFunction · 0.50
OPS_GetIntInputFunction · 0.50
infoFunction · 0.50
SizeMethod · 0.45
resizeMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected