In the code below, what does the " theEle->addMtoTang(c3)" mean ? why doesn't it get the M matrix from the trusselement for example. thanks a lot.
int Newmark::formEleTangent(FE_Element *theEle)
{
if (determiningMass == true)
return 0;
theEle->zeroTangent();
if (statusFlag == CURRENT_TANGENT) {
theEle->addKtToTang(c1);
theEle->addCtoTang(c2);
theEle->addMtoTang(c3);
} else if (statusFlag == INITIAL_TANGENT) {
theEle->addKiToTang(c1);
theEle->addCtoTang(c2);
theEle->addMtoTang(c3);
}
return 0;
}
int Newmark::formNodTangent(DOF_Group *theDof)
{
if (determiningMass == true)
return 0;
theDof->zeroTangent();
theDof->addCtoTang(c2);
theDof->addMtoTang(c3);
return 0;
}
formEleTangent
Moderators: silvia, selimgunay, Moderators
Re: formEleTangent
the integrator is not talking to actual elements .. it is talking to FE_Elements .. they get the different matrices from the elements and add the appropriate matrix and the terms to the matrix they are storing .. it is this combined matrix of the FE_Element that ultimatly get added.