Peano
Loading...
Searching...
No Matches
plots-time-integration-test.py File Reference

Go to the source code of this file.

Namespaces

namespace  plots-time-integration-test

Variables

dict plots-time-integration-test.font = {'size':12}
 plots-time-integration-test.family
 plots-time-integration-test.usetex
str plots-time-integration-test.snapshot_dir = ''
 plots-time-integration-test.files = glob.glob(snapshot_dir + "particles-*.vtu")
float plots-time-integration-test.E_ini = 1.11362
int plots-time-integration-test.time_step_sim = 1e-3
int plots-time-integration-test.snapshot_rate = 10
float plots-time-integration-test.SUN_X = 0.5
float plots-time-integration-test.SUN_Y = 0.55
 plots-time-integration-test.E_dif_all = np.zeros( len(files) )
 plots-time-integration-test.t_all = np.zeros( len(files) )
 plots-time-integration-test.start
int plots-time-integration-test.time = N_snapshot * snapshot_rate * time_step_sim
 plots-time-integration-test.reader = ParticleVTUReader(vtufile=file)
 plots-time-integration-test.partData = reader.load()
 plots-time-integration-test.pos = partData.x
 plots-time-integration-test.x = pos[:,0]
 plots-time-integration-test.y = pos[:,1]
 plots-time-integration-test.E_tot = partData.energyTot
tuple plots-time-integration-test.E_dif = (E_tot - E_ini) / E_ini
 plots-time-integration-test.fig = plt.figure( figsize=(6, 4) )
 plots-time-integration-test.c
 plots-time-integration-test.lw
 plots-time-integration-test.zorder
 plots-time-integration-test.direction
 plots-time-integration-test.top
 plots-time-integration-test.True
 plots-time-integration-test.right
 plots-time-integration-test.left
 plots-time-integration-test.bottom
 plots-time-integration-test.ls
float plots-time-integration-test.E_tolerance = 0.05
 plots-time-integration-test.E_min = E_dif_all.min()
 plots-time-integration-test.E_max = E_dif_all.max()
 plots-time-integration-test.E_mean = np.mean(E_dif_all)