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

Function OPS_PDeltaCrdTransf3d

SRC/coordTransformation/PDeltaCrdTransf3d.cpp:49–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47Matrix PDeltaCrdTransf3d::kg(12,12);
48
49void* OPS_PDeltaCrdTransf3d()
50{
51 if(OPS_GetNumRemainingInputArgs() < 4) {
52 opserr<<"insufficient arguments for PDeltaCrdTransf3d\n";
53 return 0;
54 }
55
56 // get tag
57 int tag;
58 int numData = 1;
59 if(OPS_GetIntInput(&numData,&tag) < 0) return 0;
60
61 // get vector
62 Vector vec(3);
63 double* vptr = &vec(0);
64 numData = 3;
65 if(OPS_GetDoubleInput(&numData,vptr) < 0) return 0;
66
67 // get option
68 Vector jntOffsetI(3), jntOffsetJ(3);
69 double *iptr=&jntOffsetI(0), *jptr=&jntOffsetJ(0);
70 while(OPS_GetNumRemainingInputArgs() > 6) {
71 std::string type = OPS_GetString();
72 if(type == "-jntOffset") {
73 if(OPS_GetDoubleInput(&numData,iptr) < 0) return 0;
74 if(OPS_GetDoubleInput(&numData,jptr) < 0) return 0;
75 }
76 }
77
78 return new PDeltaCrdTransf3d(tag,vec,jntOffsetI,jntOffsetJ);
79}
80
81
82// constructor:

Callers 1

OPS_PDeltaCrdTransfFunction · 0.85

Calls 4

OPS_GetIntInputFunction · 0.50
OPS_GetDoubleInputFunction · 0.50
OPS_GetStringFunction · 0.50

Tested by

no test coverage detected