strength2 = strength pos2 = complex(0,0) rElement = f.Vortex(pos2,strength2,1,False) return rElement if __name__ == '__main__': print('Assignment 3') strength = 4 pFlowArray = [] pFlowArray.append(f.Vortex(complex(-1.25,0),strength,1,False)) length = 1 sim = Simulator() timelimit = 5 time = 0 while (time < timelimit): pFlowArray.append(getImage(pFlowArray[0])) pFlowArray.append(getImage2(pFlowArray[0])) sim.parse_from_file(pFlowArray) sim.runSingle() time = time +0.01 pFlowArray = [] pFlowArray.extend(sim.get_elements()[0:length]) data,colors = sim.getFinal() plotter = p.ParticlePlotter((-2,2),(-2,2)) plotter.update(data,colors) filename = "temp" plotter.run(filename,True,False,False) #plotter.run(filename,False,True,False)