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

Method enforceSPs

SRC/analysis/handler/TransformationConstraintHandler.cpp:459–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459int
460TransformationConstraintHandler::enforceSPs(void)
461{
462 for (int i=1; i<=numConstrainedNodes; i++) {
463 // upward cast - safe as i put it in this location
464 TransformationDOF_Group *theDof =
465 (TransformationDOF_Group *)theDOFs[numDOF-i];
466 theDof->enforceSPs(1);
467 }
468 for (int k=1; k<=numConstrainedNodes; k++) {
469 // upward cast - safe as i put it in this location
470 TransformationDOF_Group *theDof =
471 (TransformationDOF_Group *)theDOFs[numDOF-k];
472 theDof->enforceSPs(0);
473 }
474
475 for (int j=0; j<numFE; j++) {
476 FE_Element *theEle = theFEs[j];
477 theEle->updateElement();
478 }
479
480 return 0;
481}
482
483int
484TransformationConstraintHandler::doneNumberingDOF(void)

Callers 2

applyLoadMethod · 0.95
applyLoadMethod · 0.45

Calls 1

updateElementMethod · 0.45

Tested by

no test coverage detected