[3257] | 1 | ! $Id: transp.F90 5144 2024-07-29 21:01:04Z abarral $ |
---|
[1992] | 2 | |
---|
[5144] | 3 | SUBROUTINE transp(paprs, tsol, t, q, ql, qs, u, v, geom, & |
---|
| 4 | utran_e, vtran_e, utran_q, vtran_q, utran_w, vtran_w) |
---|
[1992] | 5 | |
---|
| 6 | USE dimphy |
---|
[5144] | 7 | USE lmdz_yomcst |
---|
| 8 | |
---|
[1992] | 9 | IMPLICIT NONE |
---|
| 10 | ! ====================================================================== |
---|
| 11 | ! Auteur(s): Z.X.Li (LMD/CNRS) |
---|
| 12 | ! Date: le 25 avril 1994 |
---|
| 13 | ! Objet: Calculer le transport de l'energie et de la vapeur d'eau |
---|
| 14 | ! ====================================================================== |
---|
| 15 | |
---|
[4229] | 16 | !--inputs |
---|
[5144] | 17 | REAL, INTENT(IN) :: paprs(klon, klev + 1), tsol(klon), geom(klon, klev) |
---|
| 18 | REAL, INTENT(IN) :: t(klon, klev), q(klon, klev), ql(klon, klev), qs(klon, klev) |
---|
| 19 | REAL, INTENT(IN) :: u(klon, klev), v(klon, klev) |
---|
[4229] | 20 | !--outputs |
---|
| 21 | REAL, INTENT(OUT) :: utran_e(klon), vtran_e(klon) !--lateral flux of dry static energy (J m-1 s-1) |
---|
| 22 | REAL, INTENT(OUT) :: utran_q(klon), vtran_q(klon) !--lateral flux of water vapour (kg m-1 s-1) |
---|
| 23 | REAL, INTENT(OUT) :: utran_w(klon), vtran_w(klon) !--lateral flux of total water (kg m-1 s-1) |
---|
| 24 | !--local variables |
---|
[1992] | 25 | INTEGER i, l |
---|
[4229] | 26 | REAL e, dm |
---|
[1992] | 27 | ! ------------------------------------------------------------------ |
---|
| 28 | |
---|
[4229] | 29 | !--initialisations |
---|
| 30 | utran_e(:) = 0.0 |
---|
| 31 | utran_q(:) = 0.0 |
---|
| 32 | vtran_e(:) = 0.0 |
---|
| 33 | vtran_q(:) = 0.0 |
---|
| 34 | utran_w(:) = 0.0 |
---|
| 35 | vtran_w(:) = 0.0 |
---|
| 36 | |
---|
| 37 | !--vertical integration of diagnostics |
---|
[1992] | 38 | DO l = 1, klev |
---|
| 39 | DO i = 1, klon |
---|
[5144] | 40 | dm = (paprs(i, l) - paprs(i, l + 1)) / RG !--mass of layer kg m-2 |
---|
[4229] | 41 | !--moist static energy |
---|
[5144] | 42 | ! e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l) |
---|
[4229] | 43 | !--dry static energy |
---|
[5144] | 44 | e = rcpd * t(i, l) + geom(i, l) |
---|
| 45 | utran_e(i) = utran_e(i) + u(i, l) * e * dm |
---|
| 46 | vtran_e(i) = vtran_e(i) + v(i, l) * e * dm |
---|
[4229] | 47 | !--water vapour |
---|
[5144] | 48 | utran_q(i) = utran_q(i) + u(i, l) * q(i, l) * dm |
---|
| 49 | vtran_q(i) = vtran_q(i) + v(i, l) * q(i, l) * dm |
---|
[4229] | 50 | !--total water |
---|
[5144] | 51 | utran_w(i) = utran_w(i) + u(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm |
---|
| 52 | vtran_w(i) = vtran_w(i) + v(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm |
---|
[4229] | 53 | ENDDO |
---|
| 54 | ENDDO |
---|
[1992] | 55 | |
---|
| 56 | END SUBROUTINE transp |
---|