-
Notifications
You must be signed in to change notification settings - Fork 0
/
read_opts.py
48 lines (46 loc) · 1.08 KB
/
read_opts.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import numpy as np
#######################################
#### reading options from text file ###
a0, \
injection_time,\
a_seed,\
seed_time,\
seed_delay,\
w_seed,\
seed_profile,\
n_e,\
gamma_ext,\
v_x,\
v_y,\
beam_top,\
origin_x,\
beam_right,\
origin_y,\
num_part,\
simulation_time,\
steps,\
top,\
left,\
right,\
bottom,\
snapshots_interval,\
diag_phs,\
diag_fld,\
diag_dens,\
num_node,\
seed_width,\
e_static,\
neutral,\
out_folder = np.loadtxt('./input.txt',dtype='str')
notification = False
user_email = ["ewok@dark_side.ndr"]
a0,injection_time, a_seed,seed_time,seed_delay,w_seed,\
seed_profile,n_e,gamma_ext,v_x,v_y,beam_top,\
origin_x,beam_right,origin_y,num_part,simulation_time,steps,\
top,left,right,bottom,snapshots_interval,diag_phs,\
diag_fld,diag_dens,num_node,seed_width,e_static,neutral = np.array([\
a0,injection_time,a_seed,seed_time,seed_delay,w_seed,\
seed_profile,n_e,gamma_ext,v_x,v_y,beam_top,\
origin_x,beam_right,origin_y,num_part,simulation_time,steps,\
top,left,right,bottom,snapshots_interval,diag_phs,\
diag_fld,diag_dens,num_node,seed_width,e_static,neutral],dtype='d')