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

Method addM_ForceSensitivity

SRC/analysis/dof_grp/DOF_Group.cpp:924–949  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922}
923
924void
925DOF_Group::addM_ForceSensitivity(const Vector &Udotdot, double fact)
926{
927 if (myNode == 0) {
928 opserr << "DOF_Group::addM_Force() - no Node associated";
929 opserr << " subclass should not call this method \n";
930 return;
931 }
932
933 Vector accel(numDOF);
934 // get accel for the unconstrained dof
935 for (int i=0; i<numDOF; i++) {
936 int loc = myID(i);
937 if (loc >= 0)
938 accel(i) = Udotdot(loc);
939 else accel(i) = 0.0;
940 }
941
942 if (unbalance->addMatrixVector(1.0, myNode->getMassSensitivity(), accel, fact) < 0) {
943 opserr << "DOF_Group::addM_Force() ";
944 opserr << " invoking addMatrixVector() on the unbalance failed\n";
945 }
946 else {
947
948 }
949}
950
951void
952DOF_Group::addD_Force(const Vector &Udot, double fact)

Callers

nothing calls this directly

Calls 2

addMatrixVectorMethod · 0.45
getMassSensitivityMethod · 0.45

Tested by

no test coverage detected