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

Method determineTangent

SRC/analysis/fe_ele/lagrange/LagrangeEQ_FE.cpp:290–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288}
289
290void
291LagrangeEQ_FE::determineTangent(void)
292{
293 const Vector &constraint = theEQ->getConstraint();
294 int size = constraint.Size();
295
296 tang->Zero();
297
298 (*tang)(size + 1, 0) = -alpha;
299 (*tang)(0, size + 1) = -alpha;
300
301 for (int i = 0; i < size; i++) {
302 double val = constraint(i) * alpha;
303 (*tang)(size + 1, i + 1) = val;
304 (*tang)(i + 1, size + 1) = val;
305 }
306}
307
308
309

Callers 2

LagrangeEQ_FEMethod · 0.95
LagrangeEQ_FE.cppFile · 0.45

Calls 2

SizeMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected