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

Method getFp

SRC/element/PFEMElement/PFEMElement2DBubble.cpp:824–849  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

822}
823
824void
825PFEMElement2DBubble::getFp(Vector& fp) const
826{
827 Matrix Gbub(2,3);
828 getGbub(Gbub);
829 double Mbub = getMbub();
830
831 Matrix Kbub(2,2);
832 getKbub(Kbub);
833
834 if (ops_Dt > 0) {
835 Kbub(0,0) += Mbub/ops_Dt;
836 Kbub(1,1) += Mbub/ops_Dt;
837 }
838
839 Matrix invKbub(2,2);
840 Kbub.Invert(invKbub);
841
842 Vector Fbub(2);
843 getFbub(Fbub);
844
845 // bubble force
846 fp.resize(3);
847 fp.Zero();
848 fp.addMatrixTransposeVector(0.0, Gbub, invKbub*Fbub, -1.0);
849}
850
851int
852PFEMElement2DBubble::setParameter(const char **argv, int argc,

Callers

nothing calls this directly

Calls 4

InvertMethod · 0.45
resizeMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected