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

Method commitSensitivity

SRC/element/zeroLength/ZeroLengthVG_HG.cpp:1419–1437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1417}
1418
1419int
1420ZeroLengthVG_HG::commitSensitivity(int gradIndex, int numGrads)
1421{
1422 // Get nodal displacement sensitivity
1423 Vector diff(numDOF/2);
1424 for (int i = 0; i < numDOF/2; i++) {
1425 diff(i) = theNodes[1]->getDispSensitivity(i+1,gradIndex) - theNodes[0]->getDispSensitivity(i+1,gradIndex);
1426 }
1427
1428 double depsdh;
1429 int ret = 0;
1430 for (int mat=0; mat<numMaterials1d; mat++) {
1431 // compute strain and rate; set as current trial for material
1432 depsdh = this->computeCurrentStrain1d(mat,diff);
1433 ret += theMaterial1d[mat]->commitSensitivity(depsdh, gradIndex, numGrads);
1434 }
1435
1436 return ret;
1437}
1438
1439
1440

Callers

nothing calls this directly

Calls 2

getDispSensitivityMethod · 0.45

Tested by

no test coverage detected