def __init__ ( self, elements ): self.dofTypes = elements.getDofTypes() self.dofs = array( range( len(elements.nodes) * len(self.dofTypes) ) ).reshape( ( len(elements.nodes), len(self.dofTypes) ) ) self.nodes = elements.nodes #Create the ID map self.IDmap = itemList() for ind,ID in enumerate(elements.nodes): self.IDmap.add( ID, ind ) self.constrainedDofs = [] self.constrainedVals = [] self.constrainedFac = 1.