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

Method setTrialAccel

SRC/domain/node/Node.cpp:807–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805
806
807int
808Node::setTrialAccel(const Vector &newTrialAccel)
809{
810 // check vector arg is of correct size
811 if (newTrialAccel.Size() != numberDOF) {
812 opserr << "WARNING Node::setTrialAccel() - incompatible sizes\n";
813 return -2;
814 }
815
816 // create a copy if no trial exists
817 if (trialAccel == 0) {
818 if (this->createAccel() < 0) {
819 opserr << "FATAL Node::setTrialAccel() - ran out of memory\n";
820 exit(-1);
821 }
822 }
823
824 // use vector assignment otherwise
825 for (int i=0; i<numberDOF; i++)
826 accel[i] = newTrialAccel(i);
827
828 return 0;
829}
830
831int
832Node::incrTrialDisp(const Vector &incrDispl)

Callers 15

updateNodeMethod · 0.45
identifyMethod · 0.45
tryFixMethod · 0.45
gridNodesMethod · 0.45
setCenterNodeMethod · 0.45
setDomainMethod · 0.45
Adapter.cppFile · 0.45
OPS_setNodeAccelFunction · 0.45
setPdotMethod · 0.45
applyConstraintMethod · 0.45
identifyMethod · 0.45
setNodeAccelMethod · 0.45

Calls 3

createAccelMethod · 0.95
exitFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected