ISAAR.MSolve.FEM/Elements/ContinuumElement2D.cs
/// <summary>
/// The returned structure is a list with as many entries as the number of nodes of this element. Each entry contains 
/// a list with the dofs of the corresponding node. E.g. For node idx = 3, dof idx = 2 the IDof is result[3][2].
/// </summary>
/// <returns></returns>
The returned structure is a list with as many entries as the number of nodes of this element. Each entry contains
a list with the dofs of the corresponding node.
The returned structure is a list with as many entries as the number of nodes of this element . Each entry contains a list with the dofs of the corresponding node .
public IReadOnlyList<IReadOnlyList<IDofType>> GetNodalDofs()
        {
            var allDofs = new IDofType[Nodes.Count][];
            for (int i = 0; i < Nodes.Count; ++i)
            {
                var nodalDofs = new IDofType[2];
                nodalDofs[0] = StructuralDof.TranslationX;
                nodalDofs[1] = StructuralDof.TranslationY;
                allDofs[i] = nodalDofs;
            }
            return allDofs;
        }
public IReadOnlyList < IReadOnlyList < IDofType > > GetNodalDofs ( ) { var allDofs = new IDofType [ Nodes . Count ] [ ] ; for ( int i = 0 ; i < Nodes . Count ; ++ i ) { var nodalDofs = new IDofType [ 2 ] ; nodalDofs [ 0 ] = StructuralDof . TranslationX ; nodalDofs [ 1 ] = StructuralDof . TranslationY ; allDofs [ i ] = nodalDofs ; } return allDofs ; }
The returned structure is a list with as many entries as the number of nodes of this element.
The returned structure is a list with as many entries as the number of nodes of this element .
None