Changeset 930


Ignore:
Timestamp:
07/02/19 12:02:06 (5 years ago)
Author:
dubos
Message:

devel/Python : periodize initial perturbation for Baroclinic test case

File:
1 edited

Legend:

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

    r825 r930  
    8383    def ulon(x,y,eta): 
    8484        u = -u0*(sin(pi*y/Ly)**2)*log(eta)*(eta**(-log(eta)/(b*b)))  
    85         u = u + up*exp(-(((x-xc)**2+(y-yc)**2)/lp**2)) 
    86         return  u 
     85        # periodize the envelope of the initial perturbation 
     86        A = exp(-(((x-xc)**2+(y-yc)**2)/lp**2)) 
     87        A = A + exp(-(((x-xc-Lx)**2+(y-yc)**2)/lp**2)) 
     88        A = A + exp(-(((x-xc+Lx)**2+(y-yc)**2)/lp**2)) 
     89        return  u*A 
    8790 
    8891    def tmean(eta) : return T0*eta**(Rd*lap/g) 
Note: See TracChangeset for help on using the changeset viewer.