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

Method computeCurrentStrain1d

SRC/element/zeroLength/ZeroLength.cpp:2001–2012  ·  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

1999// dispDiff are the displacements of node 2 minus those
2000// of node 1
2001double
2002ZeroLength::computeCurrentStrain1d( int mat,
2003 const Vector& dispDiff ) const
2004{
2005 double strain = 0.0;
2006
2007 for (int i=0; i<numDOF/2; i++){
2008 strain += -dispDiff(i) * (*t1d)(mat,i);
2009 }
2010
2011 return strain;
2012}
2013
2014void
2015ZeroLength::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