Ejemplo n.º 1
0
from Make_movie import Gen_movie

Movie = Gen_movie()
M = 30
fd_name = 'cos_PD_F2_UW1'
index = 0
data_type = 'dat'
size_sufx = 'size'

Movie.set_basic(M, fd_name, data_type, size_sufx, index)

x_name = 'R1_x'
t_out_name = 'R1_t_out'
u_exa_name = 'R2_u_exact'
u_num_name = 'R2_u_track'

mov_name = 'demo'
fps = 10
fine_fac = 4
Movie.set_movie_para(mov_name, fps, fine_fac)

Movie.set_var(x_name, t_out_name, u_num_name, u_exa_name)
Movie.read_raw_data()
Movie.gen_movie()
from Make_movie import Gen_movie


Movie=Gen_movie()
M=50
fd_name='laplace_N_128'
index=0
data_type='dat'
size_sufx='size'

Movie.set_basic(M,fd_name,data_type,size_sufx,index)

x_name='R1_x'
ind_track_name='R1_ind_track'
itr_dif_name='R1_itr_dif'
fx_name='R3_T_track'

mov_name='demo'
fps=10
fine_fac=4
Movie.set_movie_para(mov_name,fps,fine_fac)

Movie.set_var(x_name,ind_track_name,itr_dif_name,fx_name)
Movie.read_raw_data()
Movie.gen_movie()
from Make_movie import Gen_movie
import matplotlib.pyplot as plt
import numpy as np

Plot = Gen_movie()
M = 30
fd_name = 'sin_PD_F1_UW1'
index = 0
data_type = 'dat'
size_sufx = 'size'
main_fd_name = 'sin_PD_F1_scan'

Plot.set_basic(M, fd_name, data_type, size_sufx, index)
main_fd_ctrl = 1
Plot.set_main_fd_ctrl(main_fd_ctrl, main_fd_name)

x_name = 'R1_x'
t_out_name = 'R1_t_out'
u_exa_name = 'R2_u_exact'
u_num_name = 'R1_uf'

mov_name = 'demo'
fps = 10
fine_fac = 4
Plot.set_movie_para(mov_name, fps, fine_fac)

Plot.set_var(x_name, t_out_name, u_num_name, u_exa_name)
# Plot.read_raw_data()
# Plot.gen_movie()
scheme_str = ['LF', 'LW', 'MD', 'UW1']
fd_name_base_o = 'sin_PD_F1'
from Make_movie import Gen_movie
import matplotlib.pyplot as plt
import numpy as np

Plot=Gen_movie()
M=30
fd_name='shock_DN_F1_UW1'
index=0
data_type='dat'
size_sufx='size'
main_fd_name='shock_DN_F1_scan_T_1'

Plot.set_basic(M,fd_name,data_type,size_sufx,index)
main_fd_ctrl=1
Plot.set_main_fd_ctrl(main_fd_ctrl,main_fd_name)

x_name='R1_x'
t_out_name='R1_t_out'
u_exa_name='R2_u_exact'
u_num_name='R1_uf'

mov_name='demo'
fps=10
fine_fac=4
Plot.set_movie_para(mov_name,fps,fine_fac)

Plot.set_var(x_name,t_out_name,u_num_name,u_exa_name)
# Plot.read_raw_data()
# Plot.gen_movie()
scheme_str=['LF','LW','MD','UW1']
fd_name_base_o='shock_DN_F1'
Ejemplo n.º 5
0
from Make_movie import Gen_movie
import matplotlib.pyplot as plt
import numpy as np

Plot = Gen_movie()
M = 30
fd_name = ''
index = 0
data_type = 'dat'
size_sufx = 'size'
main_fd_name = 'scan_F_LW'

Plot.set_basic(M, fd_name, data_type, size_sufx, index)
main_fd_ctrl = 1
Plot.set_main_fd_ctrl(main_fd_ctrl, main_fd_name)

x_name = 'R1_x'
t_out_name = 'R1_t_out'
u_exa_name = 'R2_u_exact'
u_num_name = 'R2_u_track'

Plot.set_var(x_name, t_out_name, u_num_name, u_exa_name)
scheme_lst = ['Rm', 'LW', 'Roe', 'REF']
for i in xrange(len(scheme_lst)):
    main_fd_name = 'scan_F_' + scheme_lst[i]
    Plot.set_main_fd_ctrl(main_fd_ctrl, main_fd_name)
    scheme_str = scheme_lst[i]
    Plot.plot_cmp_safe_fac(scheme_str)

plt.show()