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

Method getNd2

SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp:1620–1636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618}
1619
1620Matrix
1621MixedBeamColumn2d::getNd2(int sec, double P, double L){
1622 double xi[MAX_NUM_SECTIONS];
1623 beamIntegr->getSectionLocations(numSections, L, xi);
1624
1625 double x, A, B;
1626
1627 x = L * xi[sec];
1628 A = L * ( x / L - 2 * pow( x / L, 2 ) + pow( x / L, 3 ) );
1629 B = L * ( -pow( x / L, 2 ) + pow( x / L, 3 ) );
1630
1631 theSectionNaturalMatrix.Zero();
1632 theSectionNaturalMatrix(1,1) = P * A;
1633 theSectionNaturalMatrix(1,2) = P * B;
1634
1635 return theSectionNaturalMatrix;
1636}
1637
1638
1639Matrix

Callers 2

revertToStartMethod · 0.95
updateMethod · 0.95

Calls 2

getSectionLocationsMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected