| 922 | } |
| 923 | |
| 924 | void |
| 925 | DOF_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 | |
| 951 | void |
| 952 | DOF_Group::addD_Force(const Vector &Udot, double fact) |
nothing calls this directly
no test coverage detected