Changeset 678 for codes/icosagcm/devel


Ignore:
Timestamp:
02/08/18 15:35:25 (6 years ago)
Author:
dubos
Message:

devel/unstructured : fixed scaling factors in DCMIP31

File:
1 edited

Legend:

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

    r676 r678  
    1313 
    1414Cpd, Rd, g = 1004.5, 287., 9.81 
     15u0, dT, Xfactor =  20., 1., 125. 
     16radius = 6.37122e6/Xfactor 
    1517N, Teq, peq = 0.01, 300., 1e5   # background  
    16 lonc, d2 = 2.*math.pi/3., 25e6  # perturbation 
    1718N2, g2 = N*N, g*g 
    1819N2_g2, g2_N2 = N2/g2, g2/N2 
    1920G, kappa = g2/(N2*Cpd), Rd/Cpd 
     21lonc, d2 = 2.*math.pi/3., (625e3/Xfactor)**2  # perturbation 
    2022 
    2123def psTs(lat) :  
     
    8385#------------------------ main program ------------------------- 
    8486 
    85 ztop, u0, dT, Xfactor =  1e4, 20., 1., 125. 
    86 radius, grid, llm = 6.37122e6/Xfactor, 10242, 20 
    87 T, Nslice, courant = 360., 10, 3.0 
     87ztop, grid, llm = 1e4, 10242, 20 
     88T, Nslice, courant = 45000./Xfactor, 10, 3.0 
    8889 
    8990junk, ptop = T0_p0(0.,0.,g*ztop) 
     
    133134 
    134135    mesh.plot_i(w[:,llm/2]) 
    135     plt.title('vertical velocity at t=%d'%(it*T)) 
     136    plt.title('Vertical velocity at t=%d'%(it*T)) 
    136137    plt.savefig('fig_NH_3D_DCMIP31/w%02d.png'%it) 
     138    plt.close() 
     139    mesh.plot_i(z[:,llm/2]) 
     140    plt.title('Altitude at t=%d'%(it*T)) 
     141    plt.savefig('fig_NH_3D_DCMIP31/z%02d.png'%it) 
    137142    plt.close() 
    138143 
Note: See TracChangeset for help on using the changeset viewer.