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

Method update

SRC/element/XMUelements/AC3D8HexWithSensitivity.cpp:266–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266int
267AC3D8HexWithSensitivity::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
298int
299AC3D8HexWithSensitivity::commitState ()

Callers

nothing calls this directly

Calls 4

getTotalDispMethod · 0.95
computeDiffMethod · 0.95
addMatrixProductMethod · 0.45
setTrialStrainMethod · 0.45

Tested by

no test coverage detected