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

Method getNd1

SRC/element/mixedBeamColumn/MixedBeamColumn2d.cpp:1639–1663  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1637
1638
1639Matrix
1640MixedBeamColumn2d::getNd1(int sec, const Vector &v, double L, bool geomLinear){
1641 double xi[MAX_NUM_SECTIONS];
1642 beamIntegr->getSectionLocations(numSections, L, xi);
1643
1644 double x = L * xi[sec];
1645
1646 theSectionNaturalMatrix.Zero();
1647 if (geomLinear) {
1648 theSectionNaturalMatrix(0,0) = 1.0;
1649 theSectionNaturalMatrix(1,1) = -x/L + 1.0;
1650 theSectionNaturalMatrix(1,2) = x/L;
1651 } else {
1652 double A;
1653 A = L * ( x/L - 2*pow(x/L,2) + pow(x/L,3) ) * v[1]
1654 + L * ( -pow(x/L,2) + pow(x/L,3) ) * v[2];
1655
1656 theSectionNaturalMatrix(0,0) = 1.0;
1657 theSectionNaturalMatrix(1,0) = A;
1658 theSectionNaturalMatrix(1,1) = -x/L + 1.0;
1659 theSectionNaturalMatrix(1,2) = x/L;
1660 }
1661
1662 return theSectionNaturalMatrix;
1663}
1664
1665
1666void MixedBeamColumn2d::getSectionTangent(int sec,int type,Matrix &kSection) {

Callers 2

revertToStartMethod · 0.95
updateMethod · 0.95

Calls 2

getSectionLocationsMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected