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

Method applyLoad

DEVELOPER/core/NodalLoad.cpp:122–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122void
123NodalLoad::applyLoad(double loadFactor)
124{
125 if (myNodePtr == 0) {
126 Domain *theDomain=this->getDomain();
127 if ((theDomain == 0) ||
128 (myNodePtr = theDomain->getNode(myNode)) == 0) {
129 opserr << "WARNING NodalLoad::applyLoad() - No associated Node node " ;
130 opserr << " for NodalLoad " << *this;
131 return;
132 }
133 }
134
135 // add the load times the loadfactor to nodal unbalanced load
136 if (konstant == false)
137 myNodePtr->addUnbalancedLoad(*load,loadFactor);
138 else
139 myNodePtr->addUnbalancedLoad(*load,1.0);
140
141 // opserr << "loadFactor: " << loadFactor << *myNodePtr;
142}
143
144void
145NodalLoad::applyLoadSensitivity(double loadFactor)

Callers

nothing calls this directly

Calls 3

getDomainMethod · 0.45
getNodeMethod · 0.45
addUnbalancedLoadMethod · 0.45

Tested by

no test coverage detected