/[MITgcm]/MITgcm/pkg/aim_v23/phy_lscond.F
ViewVC logotype

Contents of /MITgcm/pkg/aim_v23/phy_lscond.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Tue Mar 28 04:26:21 2006 UTC (18 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62c, checkpoint59, checkpoint58f_post, checkpoint58d_post, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58t_post, checkpoint58m_post, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint58w_post, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint58r_post, checkpoint58n_post, checkpoint65o, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint58k_post, checkpoint62b, checkpoint58v_post, checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint61f, checkpoint58g_post, checkpoint58x_post, checkpoint61n, checkpoint58h_post, checkpoint58j_post, checkpoint61q, checkpoint61z, checkpoint61e, checkpoint58i_post, checkpoint58u_post, checkpoint58s_post, checkpoint61g, checkpoint61d, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61x, checkpoint61y, HEAD
Changes since 1.2: +17 -8 lines
Scale LSC tendencies by hFac (get homogenous scaling across all AIM tendencies)
 and fix diabatic tendency diagnostics (DIABT,DIABQ) with p*

1 C $Header: /u/gcmpack/MITgcm/pkg/aim_v23/phy_lscond.F,v 1.2 2006/01/26 01:14:11 jmc Exp $
2 C $Name: $
3
4 #include "AIM_OPTIONS.h"
5
6 SUBROUTINE LSCOND (PSA,dpFac,QA,QSAT,
7 O PRECLS,DTLSC,DQLSC,
8 I kGrd,bi,bj,myThid)
9 C--
10 C-- SUBROUTINE LSCOND (PSA,QA,QSAT,
11 C-- * PRECLS,DTLSC,DQLSC)
12 C--
13 C-- Purpose: Compute large-scale precipitation and
14 C-- associated tendencies of temperature and moisture
15 C-- Input: PSA = norm. surface pressure [p/p0] (2-dim)
16 C dpFac = cell delta_P fraction (3-dim)
17 C-- QA = specific humidity [g/kg] (3-dim)
18 C-- QSAT = saturation spec. hum. [g/kg] (3-dim)
19 C-- Output: PRECLS = large-scale precipitation [g/(m^2 s)] (2-dim)
20 C-- DTLSC = temperature tendency from l.s. cond (3-dim)
21 C-- DQLSC = hum. tendency [g/(kg s)] from l.s. cond (3-dim)
22 C Input: kGrd = Ground level index (2-dim)
23 C bi,bj = tile index
24 C myThid = Thread number for this instance of the routine
25 C--
26
27 IMPLICIT NONE
28
29 C Resolution parameters
30
31 C-- size for MITgcm & Physics package :
32 #include "AIM_SIZE.h"
33
34 #include "EEPARAMS.h"
35
36 C Physical constants + functions of sigma and latitude
37
38 #include "com_physcon.h"
39
40 C Large-scale condensation constants
41
42 #include "com_lsccon.h"
43
44 C-- Routine arguments:
45 _RL PSA(NGP), dpFac(NGP,NLEV), QA(NGP,NLEV), QSAT(NGP,NLEV)
46 _RL PRECLS(NGP), DTLSC(NGP,NLEV), DQLSC(NGP,NLEV)
47 INTEGER kGrd(NGP)
48 INTEGER bi,bj,myThid
49
50 #ifdef ALLOW_AIM
51
52 C-- Local variables:
53 INTEGER J, K
54 _RL PSA2(NGP)
55
56 C- jmc: declare all local variables:
57 _RL RTLSC, TFACT, PRG
58 _RL SIG2, RHREF, DQMAX, PFACT
59 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
60
61 C-- 1. Initialization
62
63 c_FM QSMAX = 50.
64
65 RTLSC = 1./(TRLSC*3600.)
66 TFACT = ALHC/CP
67 PRG = P0/GG
68
69 DO J=1,NGP
70 DTLSC(J,1) = 0.
71 DQLSC(J,1) = 0.
72 PRECLS(J) = 0.
73 PSA2(J) = PSA(J)*PSA(J)
74 ENDDO
75
76 C-- 2. Tendencies of temperature and moisture
77 C NB. A maximum heating rate is imposed to avoid
78 C grid-point-storm instability
79
80 DO K=2,NLEV
81 SIG2=SIG(K)*SIG(K)
82 c_FM RHREF = RHLSC+DRHLSC*(SIG2-1.)
83 c_FM DQMAX = (1.1-RHREF)*QSMAX*SIG2*RTLSC
84 DO J=1,NGP
85 RHREF = RHLSC+DRHLSC*(SIG2/PSA2(J) - 1. _d 0)
86 DQMAX = (1.1 _d 0-RHREF)*QSMAX*SIG2*RTLSC
87 DQLSC(J,K) = MIN(0. _d 0,(RHREF*QSAT(J,K)-QA(J,K)))*RTLSC
88 c_FM DTLSC(J,K) = TFACT*MIN(-DQLSC(J,K),DQMAX*PSA2(J))
89 c DTLSC(J,K) = TFACT*MIN(-DQLSC(J,K),DQMAX)
90 C-jmc: the threshold on latent heat (above) breaks the energy conservation;
91 C to fix this, apply the threshold directly to the condensation
92 DQLSC(J,K) = MAX(-DQMAX, DQLSC(J,K) )
93 DTLSC(J,K) = -TFACT*DQLSC(J,K)
94 ENDDO
95 ENDDO
96
97 C-- Scale LSC tendencies by dpFac (=Partial-Cell factor) (=> Mass Weighted)
98 C to get homogenous units & scaling across all physics tendencies.
99 DO K=2,NLEV
100 DO J=1,NGP
101 DQLSC(J,K) = DQLSC(J,K)*dpFac(J,K)
102 DTLSC(J,K) = DTLSC(J,K)*dpFac(J,K)
103 ENDDO
104 ENDDO
105
106 C-- 3. Large-scale precipitation
107
108 DO J=1,NGP
109 DO K=2,kGrd(J)
110 PFACT = DSIG(K)*PRG
111 PRECLS(J) = PRECLS(J)-PFACT*DQLSC(J,K)
112 ENDDO
113 ENDDO
114
115 c_FM DO J=1,NGP
116 c_FM PRECLS(J) = PRECLS(J)*PSA(J)
117 c_FM ENDDO
118
119 C--
120 #endif /* ALLOW_AIM */
121
122 RETURN
123 END

  ViewVC Help
Powered by ViewVC 1.1.22