ISAAR.MSolve.FEM/Elements/ContinuumElement3D.cs
/// <summary>
/// The shape function matrix is 2-by-2n, where n = is the number of shape functions. Row 0 corresponds to dof X, while
/// row 1 to dof Y, etc.
/// </summary>
The shape function matrix is 2-by-2n, where n = is the number of shape functions. Row 0 corresponds to dof X, while
row 1 to dof Y, etc.
The shape function matrix is 2 - by - 2n where n = is the number of shape functions . Row 0 corresponds to dof X while row 1 to dof Y etc .
private Matrix BuildShapeFunctionMatrix(double[] shapeFunctions)
        {
            var shapeFunctionMatrix = Matrix.CreateZero(3, 3 * shapeFunctions.Length);
            for (int i = 0; i < shapeFunctions.Length; i++)
            {
                shapeFunctionMatrix[0, 3 * i] = shapeFunctions[i];
                shapeFunctionMatrix[1, 2 * i + 1] = shapeFunctions[i];
                shapeFunctionMatrix[2, 3 * i + 2] = shapeFunctions[i];
            }
            return shapeFunctionMatrix;
        }
private Matrix BuildShapeFunctionMatrix ( double [ ] shapeFunctions ) { var shapeFunctionMatrix = Matrix . CreateZero ( 3 , 3 * shapeFunctions . Length ) ; for ( int i = 0 ; i < shapeFunctions . Length ; i ++ ) { shapeFunctionMatrix [ 0 , 3 * i ] = shapeFunctions [ i ] ; shapeFunctionMatrix [ 1 , 2 * i + 1 ] = shapeFunctions [ i ] ; shapeFunctionMatrix [ 2 , 3 * i + 2 ] = shapeFunctions [ i ] ; } return shapeFunctionMatrix ; }
The shape function matrix is 2-by-2n, where n = is the number of shape functions.
The shape function matrix is 2 - by - 2n where n = is the number of shape functions .
shapeFunctions
double[]