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

Method commitSensitivity

SRC/element/zeroLength/ZeroLength.cpp:1736–1754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1734}
1735
1736int
1737ZeroLength::commitSensitivity(int gradIndex, int numGrads)
1738{
1739 // Get nodal displacement sensitivity
1740 Vector diff(numDOF/2);
1741 for (int i = 0; i < numDOF/2; i++) {
1742 diff(i) = theNodes[1]->getDispSensitivity(i+1,gradIndex) - theNodes[0]->getDispSensitivity(i+1,gradIndex);
1743 }
1744
1745 double depsdh;
1746 int ret = 0;
1747 for (int mat=0; mat<numMaterials1d; mat++) {
1748 // compute strain and rate; set as current trial for material
1749 depsdh = this->computeCurrentStrain1d(mat,diff);
1750 ret += theMaterial1d[mat]->commitSensitivity(depsdh, gradIndex, numGrads);
1751 }
1752
1753 return ret;
1754}
1755
1756const Matrix &
1757ZeroLength::getTangentStiffSensitivity(int gradIndex)

Callers

nothing calls this directly

Calls 2

getDispSensitivityMethod · 0.45

Tested by

no test coverage detected