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

Method addM_ForceSensitivity

DEVELOPER/core/DOF_Group.cpp:890–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

888}
889
890void
891DOF_Group::addM_ForceSensitivity(const Vector &Udotdot, double fact)
892{
893 if (myNode == 0) {
894 opserr << "DOF_Group::addM_Force() - no Node associated";
895 opserr << " subclass should not call this method \n";
896 return;
897 }
898
899 Vector accel(numDOF);
900 // get accel for the unconstrained dof
901 for (int i=0; i<numDOF; i++) {
902 int loc = myID(i);
903 if (loc >= 0)
904 accel(i) = Udotdot(loc);
905 else accel(i) = 0.0;
906 }
907
908 if (unbalance->addMatrixVector(1.0, myNode->getMassSensitivity(), accel, fact) < 0) {
909 opserr << "DOF_Group::addM_Force() ";
910 opserr << " invoking addMatrixVector() on the unbalance failed\n";
911 }
912 else {
913
914 }
915}
916
917void
918DOF_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