def plotDisp(varnames,fname='rel_disp.out'): cols = [] for name in varnames: dispType = name[0] node = int(name[1:]) cols.append( 6*(node-1) + colMap[dispType] ) plotcols.plot(fname,cols,varnames,xname='t',title=fname)
def plotLoad(varnames,fname='load.out'): cols = [] for name in varnames: loadType = name[0] loadDir = name[1] beamSegment = int(name[2:]) cols.append( 6*(beamSegment-1) + colMap[loadType+loadDir] ) plotcols.plot(fname,cols,varnames,xname='t',title=fname)