| 264 | } |
| 265 | |
| 266 | int |
| 267 | AC3D8HexWithSensitivity::update() |
| 268 | { |
| 269 | int i; |
| 270 | double r = 0.0; |
| 271 | double s = 0.0; |
| 272 | |
| 273 | Vector epsilon(3); |
| 274 | Matrix sstrain(3,1); |
| 275 | |
| 276 | Matrix trial_disp = this->getTotalDisp(); |
| 277 | |
| 278 | //opserr<<"trial_disp"<<trial_disp<<endln; |
| 279 | this->computeDiff(); |
| 280 | |
| 281 | for(i = 0; i < numGP; i++) { |
| 282 | const Matrix &dhGlobal = *L[i]; |
| 283 | |
| 284 | sstrain.addMatrixProduct(0.0, dhGlobal, trial_disp, 1.0); |
| 285 | epsilon(0) = sstrain(0,0); |
| 286 | epsilon(1) = sstrain(1,0); |
| 287 | epsilon(2) = sstrain(2,0); |
| 288 | |
| 289 | theMaterial[i]->setTrialStrain(epsilon); |
| 290 | |
| 291 | // printf("Integration point: %d\n", i+1); |
| 292 | // printf("epsilon is <%g,%g,%g>\n", epsilon(0), epsilon(1), epsilon(2)); |
| 293 | } |
| 294 | |
| 295 | return 0; |
| 296 | } |
| 297 | |
| 298 | int |
| 299 | AC3D8HexWithSensitivity::commitState () |
nothing calls this directly
no test coverage detected