GPUE  v1.0
GPU Gross-Pitaevskii Equation numerical solver for Bose-Einstein condensates
paraview_plot.py
Go to the documentation of this file.
1 #from gen_data import *
2 
3 import paraview.simple as ps
4 
5 # reads in a vtk file
6 test = ps.OpenDataFile("/home/james/projects/GPUE/py/test.vtk")
7 c = ps.Contour(Input=test)
8 c.Isosurfaces=[0.5]
9 c.UpdatePipeline()
10 
11 ps.Show(test)
12 ps.Show(c)
13 ps.Render()
14 ps.WriteImage("/home/james/projects/GPUE/py/check.png")
15 
16 print("done with test script")
Latin Modern latex print('-dpng','-r300', ['./Comp_CBAR_', int2str(iii),'.png'])