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

Method addM_ForceSensitivity

SRC/analysis/fe_ele/FE_Element.cpp:979–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979void
980FE_Element::addM_ForceSensitivity(int gradNumber, const Vector &vect, double fact)
981{
982 // Get the components we need out of the vector
983 // and place in a temporary vector
984 Vector tmp(numDOF);
985 for (int i=0; i<numDOF; i++) {
986 int loc = myID(i);
987 if (loc >= 0) {
988 tmp(i) = vect(loc);
989 }
990 else {
991 tmp(i) = 0.0;
992 }
993 }
994 if (theResidual->addMatrixVector(1.0, myEle->getMassSensitivity(gradNumber),tmp,fact) < 0) {
995 opserr << "WARNING FE_Element::addM_ForceSensitivity() - ";
996 opserr << "- addMatrixVector returned error\n";
997 }
998}
999
1000void
1001FE_Element::addD_ForceSensitivity(int gradNumber, const Vector &vect, double fact)

Callers 8

formEleResidualMethod · 0.45
formNodUnbalanceMethod · 0.45
formEleResidualMethod · 0.45
formNodUnbalanceMethod · 0.45
formEleResidualMethod · 0.45
formNodUnbalanceMethod · 0.45
formEleResidualMethod · 0.45
formNodUnbalanceMethod · 0.45

Calls 2

addMatrixVectorMethod · 0.45
getMassSensitivityMethod · 0.45

Tested by

no test coverage detected