formEleTangent

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

Moderators: silvia, selimgunay, Moderators

Post Reply
tangzhen
Posts: 30
Joined: Thu May 30, 2013 4:58 am
Location: HIT

formEleTangent

Post by tangzhen »

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;
}
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: formEleTangent

Post by fmk »

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.
Post Reply