| 233 | |
| 234 | |
| 235 | int 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 | |
| 270 | int AlphaOS_TP::formEleTangent(FE_Element *theEle) |
nothing calls this directly
no test coverage detected