Ignore:
Timestamp:
02/08/19 18:53:34 (5 years ago)
Author:
jisesh
Message:

devel/Python : polar projection + Williamson test case 2 on LAM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/devel/Python/dynamico/LAM.py

    r794 r807  
    1717            if ci > c1 : m[i]=0. 
    1818        return m 
     19    def relax_RSW(self, llm, step, flow): 
     20        beta_i, beta_e = self.beta_i, self.beta_e 
     21        m,u=flow 
     22        step.mass[:]        = beta_i*step.mass[:]        + (1.-beta_i)*m[:] 
     23        step.theta_rhodz[:] = beta_i*step.theta_rhodz[:] + (1.-beta_i)*m[:] 
     24        step.u[:]           = beta_e*step.u[:]           + (1.-beta_e)*u[:] 
     25    def relax_hydro(self, llm, step, flow): 
     26        beta_i, beta_e = self.beta_i, self.beta_e 
     27        m,S,u=flow 
     28        for l in range(llm): 
     29            step.mass[:,l]        = beta_i*step.mass[:,l]        + (1.-beta_i)*m[:,l] 
     30            step.theta_rhodz[:,l] = beta_i*step.theta_rhodz[:,l] + (1.-beta_i)*S[:,l] 
     31            step.u[:,l]           = beta_e*step.u[:,l]           + (1.-beta_e)*u[:,l] 
    1932    def relax(self, llm, step, flow): 
    2033        beta_i, beta_e = self.beta_i, self.beta_e 
Note: See TracChangeset for help on using the changeset viewer.