PLUTO
orszag_tang.py
Go to the documentation of this file.
1 import os
2 import sys
3 from numpy import *
4 from matplotlib.pyplot import *
5 import pyPLUTO as pp
6 
7 plutodir = os.environ['PLUTO_DIR']
8 wdir = plutodir+'/Test_Problems/MHD/Orszag_Tang/'
9 nlinf = pp.nlast_info(w_dir=wdir)
10 
11 D = pp.pload(nlinf['nlast'],w_dir=wdir) # Loading the data into a pload object D.
12 I = pp.Image()
13 I.pldisplay(D, D.rho,x1=D.x1,x2=D.x2,label1='x',label2='y',title=r'Density $\rho$ [Orszag Tang test]',cbar=(True,'vertical'))
14 savefig('orszag_tang_1.png') # Only to be saved as either .png or .jpg
15 show()