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

Method getNodeDisp

DEVELOPER/core/Domain.cpp:3450–3466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3448
3449
3450double
3451Domain::getNodeDisp(int nodeTag, int dof, int &errorFlag)
3452{
3453 double result = 0.0;
3454 errorFlag = 0;
3455 Node *theNode = this->getNode(nodeTag);
3456 if (theNode == 0) {
3457 errorFlag = -1;
3458 return 0.0;
3459 }
3460 const Vector &disp = theNode->getTrialDisp();
3461 if (dof < disp.Size() && dof >= 0) {
3462 result = disp(dof);
3463 }
3464
3465 return result;
3466}
3467
3468int
3469Domain::setMass(const Matrix &mass, int nodeTag)

Callers

nothing calls this directly

Calls 2

getNodeMethod · 0.95
SizeMethod · 0.45

Tested by

no test coverage detected