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

Method formUnbalance

SRC/analysis/integrator/HHTHSFixedNumIter_TP.cpp:240–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240int HHTHSFixedNumIter_TP::formUnbalance()
241{
242 // get a pointer to the LinearSOE and the AnalysisModel
243 LinearSOE *theLinSOE = this->getLinearSOE();
244 AnalysisModel *theModel = this->getAnalysisModel();
245 if (theLinSOE == 0 || theModel == 0) {
246 opserr << "WARNING HHTHSFixedNumIter_TP::formUnbalance() - ";
247 opserr << "no LinearSOE or AnalysisModel has been set\n";
248 return -1;
249 }
250
251 theLinSOE->setB(*Put);
252
253 // do modal damping
254 const Vector *modalValues = theModel->getModalDampingFactors();
255 if (modalValues != 0) {
256 this->addModalDampingForce(modalValues);
257 }
258
259 if (this->formElementResidual() < 0) {
260 opserr << "WARNING HHTHSFixedNumIter_TP::formUnbalance() ";
261 opserr << " - this->formElementResidual failed\n";
262 return -2;
263 }
264
265 if (this->formNodalUnbalance() < 0) {
266 opserr << "WARNING HHTHSFixedNumIter_TP::formUnbalance() ";
267 opserr << " - this->formNodalUnbalance failed\n";
268 return -3;
269 }
270
271 return 0;
272}
273
274
275int HHTHSFixedNumIter_TP::formEleTangent(FE_Element *theEle)

Callers

nothing calls this directly

Calls 7

getLinearSOEMethod · 0.45
getAnalysisModelMethod · 0.45
setBMethod · 0.45
addModalDampingForceMethod · 0.45
formElementResidualMethod · 0.45
formNodalUnbalanceMethod · 0.45

Tested by

no test coverage detected