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

Function OPS_PML2D

SRC/element/PML/PML2D.cpp:53–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51
52
53void* OPS_PML2D()
54{
55 if (OPS_GetNumRemainingInputArgs() < (5+PML2D_NUM_PROPS)) {
56 opserr << "WARNING insufficient arguments\n";
57 opserr << "Want: element PML2D eleTag? [PML2D_NUM_NODES integer nodeTags] [PML2D_NUM_PROPS material properties]\n";
58 return 0;
59 }
60
61 int idata[5];
62 int num = 5;
63 if (OPS_GetIntInput(&num,idata)<0) {
64 opserr<<"WARNING: invalid integer data\n";
65 return 0;
66 }
67
68 double dData[PML2D_NUM_PROPS]; num = PML2D_NUM_PROPS;
69 // make last two indicies zero
70 dData[PML2D_NUM_PROPS-2] = 0.0;
71 dData[PML2D_NUM_PROPS-1] = 0.0;
72
73 if (OPS_GetDoubleInput(&num,dData) < 0) {
74 opserr<<"WARNING: invalid double data\n";
75 return 0;
76 }
77
78 return new PML2D(idata[0],&idata[1],dData);
79}
80
81//static data
82Matrix PML2D::tangent;

Callers 3

OPS_PMLFunction · 0.85
TclCommand_addElementFunction · 0.85

Calls 3

OPS_GetIntInputFunction · 0.50
OPS_GetDoubleInputFunction · 0.50

Tested by

no test coverage detected