Peano 4
Loading...
Searching...
No Matches
plots-time-integration-test Namespace Reference

Variables

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

Variable Documentation

◆ bottom

plots-time-integration-test.bottom

Definition at line 82 of file plots-time-integration-test.py.

◆ c

plots-time-integration-test.c

Definition at line 78 of file plots-time-integration-test.py.

◆ direction

plots-time-integration-test.direction

Definition at line 82 of file plots-time-integration-test.py.

◆ E_dif

tuple plots-time-integration-test.E_dif = (E_tot - E_ini) / E_ini

Definition at line 64 of file plots-time-integration-test.py.

◆ E_dif_all

plots-time-integration-test.E_dif_all = np.zeros( len(files) )

Definition at line 36 of file plots-time-integration-test.py.

◆ E_ini

float plots-time-integration-test.E_ini = 1.11362

Definition at line 29 of file plots-time-integration-test.py.

◆ E_max

plots-time-integration-test.E_max = E_dif_all.max()

Definition at line 99 of file plots-time-integration-test.py.

◆ E_mean

plots-time-integration-test.E_mean = np.mean(E_dif_all)

Definition at line 100 of file plots-time-integration-test.py.

◆ E_min

plots-time-integration-test.E_min = E_dif_all.min()

Definition at line 98 of file plots-time-integration-test.py.

◆ E_tolerance

float plots-time-integration-test.E_tolerance = 0.05

Definition at line 96 of file plots-time-integration-test.py.

◆ E_tot

plots-time-integration-test.E_tot = partData.energyTot

Definition at line 62 of file plots-time-integration-test.py.

◆ family

plots-time-integration-test.family

Definition at line 17 of file plots-time-integration-test.py.

◆ fig

plots-time-integration-test.fig = plt.figure( figsize=(6, 4) )

Definition at line 76 of file plots-time-integration-test.py.

◆ files

plots-time-integration-test.files = glob.glob(snapshot_dir + "particles-*.vtu")

Definition at line 24 of file plots-time-integration-test.py.

◆ font

dict plots-time-integration-test.font = {'size':12}

Definition at line 15 of file plots-time-integration-test.py.

◆ left

plots-time-integration-test.left

Definition at line 82 of file plots-time-integration-test.py.

◆ ls

plots-time-integration-test.ls

Definition at line 83 of file plots-time-integration-test.py.

◆ lw

plots-time-integration-test.lw

Definition at line 78 of file plots-time-integration-test.py.

◆ partData

plots-time-integration-test.partData = reader.load()

Definition at line 51 of file plots-time-integration-test.py.

◆ pos

plots-time-integration-test.pos = partData.x

Definition at line 57 of file plots-time-integration-test.py.

◆ reader

plots-time-integration-test.reader = ParticleVTUReader(vtufile=file)

Definition at line 50 of file plots-time-integration-test.py.

◆ right

plots-time-integration-test.right

Definition at line 82 of file plots-time-integration-test.py.

◆ snapshot_dir

str plots-time-integration-test.snapshot_dir = ''

Definition at line 23 of file plots-time-integration-test.py.

◆ snapshot_rate

int plots-time-integration-test.snapshot_rate = 10

Definition at line 31 of file plots-time-integration-test.py.

◆ start

plots-time-integration-test.start

Definition at line 40 of file plots-time-integration-test.py.

◆ SUN_X

float plots-time-integration-test.SUN_X = 0.5

Definition at line 32 of file plots-time-integration-test.py.

◆ SUN_Y

float plots-time-integration-test.SUN_Y = 0.55

Definition at line 33 of file plots-time-integration-test.py.

◆ t_all

plots-time-integration-test.t_all = np.zeros( len(files) )

Definition at line 37 of file plots-time-integration-test.py.

◆ time

int plots-time-integration-test.time = N_snapshot * snapshot_rate * time_step_sim

Definition at line 43 of file plots-time-integration-test.py.

◆ time_step_sim

int plots-time-integration-test.time_step_sim = 1e-3

Definition at line 30 of file plots-time-integration-test.py.

◆ top

plots-time-integration-test.top

Definition at line 82 of file plots-time-integration-test.py.

◆ True

plots-time-integration-test.True

Definition at line 82 of file plots-time-integration-test.py.

◆ usetex

plots-time-integration-test.usetex

Definition at line 18 of file plots-time-integration-test.py.

◆ x

plots-time-integration-test.x = pos[:,0]

Definition at line 58 of file plots-time-integration-test.py.

◆ y

plots-time-integration-test.y = pos[:,1]

Definition at line 59 of file plots-time-integration-test.py.

◆ zorder

plots-time-integration-test.zorder

Definition at line 78 of file plots-time-integration-test.py.