Changeset 4675


Ignore:
Timestamp:
Sep 5, 2023, 2:29:43 PM (16 months ago)
Author:
evignon
Message:

correction option numerique 1 pour ATKE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/atke_exchange_coeff_mod.F90

    r4663 r4675  
    240240        DO igrid=1,ngrid
    241241           qq=max(sqrt(2.*tke(igrid,ilay)),1.e-10)
    242            delta=1.+4.*dtime/cepsilon/l_exchange(igrid,ilay)/(2.**(3/2)) * &
    243                 (qq+dtime*l_exchange(igrid,ilay)/sqrt(2.)*Sm(igrid,ilay)*shear2(igrid,ilay) &
    244                 *(1.-Ri(igrid,ilay)/Prandtl(igrid,ilay)))
    245            qq=(-1. + sqrt(delta))/dtime*cepsilon*sqrt(2.)*l_exchange(igrid,ilay)
     242           delta=(2.*sqrt(2.)*cepsilon*l_exchange(igrid,ilay)/dtime)**2. &
     243                 +4.*(2.*sqrt(2.)*cepsilon*l_exchange(igrid,ilay)/dtime*qq + &
     244                 2.*l_exchange(igrid,ilay)*l_exchange(igrid,ilay)*cepsilon*Sm(igrid,ilay) &
     245                 *shear2(igrid,ilay) * (1. - Ri(igrid,ilay) / Prandtl(igrid,ilay)))
     246           qq=(-2.*sqrt(2.)*cepsilon*l_exchange(igrid,ilay)/dtime + sqrt(delta))/2.
     247           qq=max(0.,qq)
    246248           tke(igrid,ilay)=0.5*(qq**2)
    247249        ENDDO
Note: See TracChangeset for help on using the changeset viewer.