In [1]:
    
import sys
#sys.path.insert(0,'/user/scratch14.4/PyPPM')
import os
from ppmpy import ppm
    
In [4]:
    
YProfile_dir = '/data/ASDR/CSA/rpod2/PPM/YProfiles/'
os.listdir(YProfile_dir)
    
    Out[4]:
In [10]:
    
project_dir = os.listdir(YProfile_dir)[6]
print project_dir
    
    
In [11]:
    
#reload(ppm)
ppm.set_YProf_path(os.path.join(YProfile_dir,project_dir))
    
In [12]:
    
print ppm.ppm_path
print ppm.cases
    
    
In [13]:
    
ppm.set_nice_params()
    
In [14]:
    
d2=ppm.yprofile('D2') # O-shell 1536^3 case
    
    
In [17]:
    
# figure out where we want to put the convective boundary
ifig=10;close(ifig);figure(ifig)
d2.plot('Y','A',shape='--',fname=120)
    
    
 
 
In [19]:
    
rtop=8.15
ifig=11;close(ifig);figure(ifig)
d2.Richardson_plot(ifig=ifig,fname1=0, fname2= 120, R_top = rtop)
    
    
 
 
    
    
 
 
In [20]:
    
d10=ppm.yprofile('D10') # O-shell 50x heat, 768^3 case
    
    
In [21]:
    
# find the top of the convection zone
ifig=50;close(ifig);figure(ifig)
d10.plot('Y','A',fname=120)
    
    
 
 
In [22]:
    
ifig=12;close(ifig);figure(ifig)
d10.vprofs(120,ifig=12)
    
    
 
 
In [23]:
    
rtop=8.88
ifig=51;close(ifig);figure(ifig)
d10.Richardson_plot(ifig=ifig,fname1=0, fname2= 120, R_top = rtop,ylim_max=2.4)
legend(loc=3)
    
    
 
 
    
    
 
 
    Out[23]:
In [24]:
    
d2.Richardson_plot?