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

Method incrNodeAccel

SRC/analysis/dof_grp/DOF_Group.cpp:709–729  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707// values in udotdot, components identified by myID;
708
709void
710DOF_Group::incrNodeAccel(const Vector &udotdot)
711{
712
713 if (myNode == 0) {
714 opserr << "DOF_Group::incrNodeAccel: 0 Node Pointer\n";
715 exit(-1);
716 }
717
718 Vector &accel = *unbalance;
719 int i;
720
721 // get disp for the unconstrained dof
722 for (i=0; i<numDOF; i++) {
723 int loc = myID(i);
724 if (loc >= 0)
725 accel(i) = udotdot(loc);
726 else accel(i) = 0.0;
727 }
728 myNode->incrTrialAccel(accel);
729}
730
731const Vector &
732DOF_Group::getTrialDisp()

Callers 1

incrAccelMethod · 0.45

Calls 2

exitFunction · 0.85
incrTrialAccelMethod · 0.45

Tested by

no test coverage detected