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

Method computeCurrentStrain1d

SRC/element/zeroLength/ZeroLengthVG_HG.cpp:1612–1623  ·  view source on GitHub ↗

Compute current strain for 1d material mat dispDiff are the displacements of node 2 minus those of node 1

Source from the content-addressed store, hash-verified

1610// dispDiff are the displacements of node 2 minus those
1611// of node 1
1612double
1613ZeroLengthVG_HG::computeCurrentStrain1d( int mat,
1614 const Vector& dispDiff ) const
1615{
1616 double strain = 0.0;
1617
1618 for (int i=0; i<numDOF/2; i++){
1619 strain += -dispDiff(i) * (*t1d)(mat,i);
1620 }
1621
1622 return strain;
1623}
1624
1625void
1626ZeroLengthVG_HG::updateDir(const Vector& x, const Vector& y)

Callers 2

updateMethod · 0.95
commitSensitivityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected