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

Method addD_Force

SRC/analysis/fe_ele/transformation/TransformationFE.cpp:913–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911
912
913void
914TransformationFE::addD_Force(const Vector &disp, double fact)
915{
916 if (fact == 0.0)
917 return;
918
919 static Vector response;
920 response.setData(dataBuffer, numOriginalDOF);
921
922 for (int i=0; i<numTransformedDOF; i++) {
923 int loc = (*modID)(i);
924 if (loc >= 0)
925 (*modResidual)(i) = disp(loc);
926 else
927 (*modResidual)(i) = 0.0;
928 }
929 transformResponse(*modResidual, response);
930 this->addLocalD_Force(response, fact);
931}
932
933void
934TransformationFE::addM_Force(const Vector &disp, double fact)

Callers

nothing calls this directly

Calls 2

setDataMethod · 0.45
addLocalD_ForceMethod · 0.45

Tested by

no test coverage detected