OGS
ProcessLib::LinearBMatrix::detail Namespace Reference

Functions

template<int NPOINTS, typename DNDX_Type , typename BMatrixType >
void fillBMatrix2DCartesianPart (DNDX_Type const &dNdx, BMatrixType &B)
 

Function Documentation

◆ fillBMatrix2DCartesianPart()

template<int NPOINTS, typename DNDX_Type , typename BMatrixType >
void ProcessLib::LinearBMatrix::detail::fillBMatrix2DCartesianPart ( DNDX_Type const & dNdx,
BMatrixType & B )

Definition at line 24 of file LinearBMatrix.h.

25{
26 for (int i = 0; i < NPOINTS; ++i)
27 {
28 B(1, NPOINTS + i) = dNdx(1, i);
29 B(3, i) = dNdx(1, i) / std::sqrt(2);
30 B(3, NPOINTS + i) = dNdx(0, i) / std::sqrt(2);
31 B(0, i) = dNdx(0, i);
32 }
33}