elasticbeamcolumn element

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
lolitapr
Posts: 28
Joined: Fri Mar 20, 2009 9:50 am
Location: BUFFALO

elasticbeamcolumn element

Post by lolitapr »

Dear all,

I am looking at the source code of the elasticbeamcolumn element. When you dont specify rho and specify the nodal mass, how does it calculates the mass matrix?


const Matrix &
ElasticBeam2d::getMass(void)
{
K.Zero();

if (rho > 0.0) {
double L = theCoordTransf->getInitialLength();
double m = 0.5*rho*L;

K(0,0) = m;
K(1,1) = m;

K(3,3) = m;
K(4,4) = m;
}

return K;


Thanks
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

if rho is not specified the resulting mass matrix is 0.0!
Post Reply