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

Method formUnbalance

SRC/analysis/integrator/AlphaOS_TP.cpp:235–267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected