| 1734 | } |
| 1735 | |
| 1736 | int |
| 1737 | ZeroLength::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 | |
| 1756 | const Matrix & |
| 1757 | ZeroLength::getTangentStiffSensitivity(int gradIndex) |
nothing calls this directly
no test coverage detected