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

Function shapeFun

SRC/element/CEqElement/ASDEmbeddedNodeElement.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 namespace tri {
65
66 double shapeFun(double x, double y, int i) {
67 if (i == 0)
68 return 1.0 - x - y;
69 else if (i == 1)
70 return x;
71 else if (i == 2)
72 return y;
73 return 0.0;
74 }
75
76 void shapeFunDer(Matrix& dN) {
77 dN(0, 0) = -1.0; dN(0, 1) = -1.0;

Callers 2

globalCoordFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected