Compute current strain for 1d material mat dispDiff are the displacements of node 2 minus those of node 1
| 1999 | // dispDiff are the displacements of node 2 minus those |
| 2000 | // of node 1 |
| 2001 | double |
| 2002 | ZeroLength::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 | |
| 2014 | void |
| 2015 | ZeroLength::updateDir(const Vector& x, const Vector& y) |
no outgoing calls
no test coverage detected