In [1]:
import sys, os
#sys.path.insert(0,'/user/PyPPM/')
from ppmpy import ppm
In [2]:
YProfile_dir = '/data/ppm_rpod2/YProfiles/'
os.listdir(YProfile_dir)
Out[2]:
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 [16]:
# figure out where we want to put the convective boundary
ifig=10;close(ifig);figure(ifig)
d2.plot('Y','A',shape='-',fname=120)
In [18]:
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 [22]:
# find the top of the convection zone
ifig=50;close(ifig);figure(ifig)
d10.plot('Y','A',shape='--',fname=120)
In [25]:
ifig=12;close(ifig);figure(ifig)
d10.vprofs(120,ifig=12)
xlim(3,9)
Out[25]:
In [27]:
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[27]:
In [28]:
d2.Richardson_plot?