2from cycler
import cycler
5parser = argparse.ArgumentParser(description=
'Plot 1d reconstructions')
6parser.add_argument(
'--step', metavar =
'N', type=int, nargs=1,
7 default=[0], help=
'Step to plot')
8args = parser.parse_args()
11fname =
'reconstruction_{:05d}'.format(args.step[0])
14dat = loadtxt(
'reconstructions_{:05d}.dat'.format(args.step[0]))
20f = 1.0e18 * (m_p / (2.0 * pi * k_B * T)) ** 1.5 * exp(-m_p * dat[:,0] ** 2 / (2.0 * k_B * T))
24rc(
'axes', prop_cycle = cycler(
'color', [
'c',
'm',
'y',
'k']))
25plot(dat[:,0],f ,
'-', lw = 2, label =
'Maxwellian')
26plot(dat[:,0],dat[:,1],
'-', lw = 2, label =
'Volume Average')
27plot(dat[:,0],dat[:,2],
'-', lw = 2, label =
'Reconstruction')
28imax = find(dat[:,1] ==
max(dat[:,1]))
32xlim(vmax-5e5,vmax+5e5)
kaxis, kaxis *2 *dw *sqrt((cS *cS+vA *vA) plot)()
static ARCH_HOSTDEV VecSimple< T > max(VecSimple< T > const &l, VecSimple< T > const &r)