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

Method setTrialVel

SRC/domain/node/Node.cpp:781–804  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781int
782Node::setTrialVel(const Vector &newTrialVel)
783{
784 // check vector arg is of correct size
785 if (newTrialVel.Size() != numberDOF) {
786 opserr << "WARNING Node::setTrialVel() - incompatible sizes\n";
787 return -2;
788 }
789
790 // construct memory and Vectors for trial and committed
791 // accel on first call to this method, getTrialVEl(),
792 // getVEl(), or incrTrialVel()
793 if (trialVel == 0) {
794 if (this->createVel() < 0) {
795 opserr << "FATAL Node::setTrialVel() - ran out of memory\n";
796 exit(-1);
797 }
798 }
799
800 // set the trial quantities
801 for (int i=0; i<numberDOF; i++)
802 vel[i] = newTrialVel(i);
803 return 0;
804}
805
806
807int

Callers 15

discretizeMethod · 0.45
discretizeMethod · 0.45
discretizeMethod · 0.45
updateNodeMethod · 0.45
identifyMethod · 0.45
tryFixMethod · 0.45
gridNodesMethod · 0.45
setCenterNodeMethod · 0.45
setDomainMethod · 0.45
Adapter.cppFile · 0.45
OPS_setNodeVelFunction · 0.45
TclCommand_addNodeFunction · 0.45

Calls 3

createVelMethod · 0.95
exitFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected