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

Method determineTangent

SRC/analysis/fe_ele/lagrange/LagrangeMP_FE.cpp:323–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321}
322
323void
324LagrangeMP_FE::determineTangent(void)
325{
326 const Matrix &constraint = theMP->getConstraint();
327 int noRows = constraint.noRows();
328 int noCols = constraint.noCols();
329 int n = noRows+noCols;
330
331 tang->Zero();
332
333 for (int j=0; j<noRows; j++) {
334 (*tang)(n+j, j) = -alpha;
335 (*tang)(j, n+j) = -alpha;
336 }
337
338 for (int i=0; i<noRows; i++)
339 for (int j=0; j<noCols; j++) {
340 double val = constraint(i,j) * alpha;
341 (*tang)(n+i, j+noRows) = val;
342 (*tang)(noRows+j, n+i) = val;
343 }
344}
345
346
347

Callers 2

LagrangeMP_FEMethod · 0.95
LagrangeMP_FE.cppFile · 0.45

Calls 3

noRowsMethod · 0.45
noColsMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected