| 1618 | } |
| 1619 | |
| 1620 | Matrix |
| 1621 | MixedBeamColumn2d::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 | |
| 1639 | Matrix |
no test coverage detected