Changeset 780


Ignore:
Timestamp:
11/20/18 12:44:31 (5 years ago)
Author:
jisesh
Message:

devel/Python : writing z output and fixed issue with theta values in Baroclinic_3D_ullrich.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/test/py/Baroclinic_3D_ullrich.py

    r774 r780  
    6464    def ulon(x,y,eta): 
    6565        u = -u0*(sin(pi*y/Ly)**2)*log(eta)*(eta**(-log(eta)/(b*b)))  
    66 #        u = u + up*exp(-(((x-xc)**2+(y-yc)**2)/lp**2)) 
     66        u = u + up*exp(-(((x-xc)**2+(y-yc)**2)/lp**2)) 
    6767        return  u 
    6868 
     
    134134 
    135135def diagnose(Phi,S,m,W): 
    136     s=S/m ; s=.5*(s+abs(s)) 
     136    s=S/m 
    137137    for l in range(llm): 
    138138        v[:,l]=(Phi[:,l+1]-Phi[:,l])/(g*m[:,l]) 
     
    201201 
    202202    T  = args.T 
    203     dt = 360. 
     203    dt = 100.#180.#360. 
    204204    dz = flow0[3].max()/(params.g*llm) 
    205205    nt = int(math.ceil(T/dt)) 
     
    265265            context.send_field_primal('theta', gas.s) 
    266266            context.send_field_primal('uz', w) 
     267            context.send_field_primal('z', z) 
    267268 
    268269            print( 'ptop, model top (m) :', unst.getvar('ptop'), Phi.max()/unst.getvar('g')) 
Note: See TracChangeset for help on using the changeset viewer.