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

Method incrNodeVel

DEVELOPER/core/DOF_Group.cpp:681–701  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679// values in udot, components identified by myID;
680
681void
682DOF_Group::incrNodeVel(const Vector &udot)
683{
684
685 if (myNode == 0) {
686 opserr << "DOF_Group::incrNodeVel: 0 Node Pointer\n";
687 exit(-1);
688 }
689
690 Vector &vel = *unbalance;
691 int i;
692
693 // get vel for my dof out of vector udot
694 for (i=0; i<numDOF; i++) {
695 int loc = myID(i);
696 if (loc >= 0)
697 vel(i) = udot(loc); // -1 for dof labelled 1 through ndof
698 else vel(i) = 0.0;
699 }
700 myNode->incrTrialVel(vel);
701}
702
703
704

Callers 1

incrVelMethod · 0.45

Calls 2

exitFunction · 0.85
incrTrialVelMethod · 0.45

Tested by

no test coverage detected