1 |
subroutine aaam_bud (iam,nlon,nlev,rsec, |
module aaam_bud_m |
2 |
i rea,rg,ome, |
|
3 |
i plat,plon,phis, |
implicit none |
4 |
i dragu,liftu,phyu, |
|
5 |
i dragv,liftv,phyv, |
contains |
6 |
i p, u, v, |
|
7 |
o aam, torsfc) |
subroutine aaam_bud(rea, rg, ome, plat, plon, phis, dragu, liftu, phyu, & |
8 |
c |
dragv, liftv, phyv, p, u, v, aam, torsfc) |
9 |
use dimens_m |
|
10 |
use dimphy |
! Author: F. Lott (LMD/CNRS). Date: 2003/10/20. Object: Compute |
11 |
implicit none |
! different terms of the axial AAAM Budget and mountain torque. |
12 |
c====================================================================== |
! Only valid for regular rectangular grids. Should be called after |
13 |
c Auteur(s): F.Lott (LMD/CNRS) date: 20031020 |
! "lift_noro". |
14 |
c Object: Compute different terms of the axial AAAM Budget. |
|
15 |
C No outputs, every AAM quantities are written on the IAM |
USE dimens_m, ONLY : iim, jjm |
16 |
C File. |
use nr_util, only: assert_eq, assert, pi |
17 |
c |
|
18 |
c Modif : I.Musat (LMD/CNRS) date : 20041020 |
real, intent(in):: rea ! Earth radius |
19 |
c Outputs : axial components of wind AAM "aam" and total surface torque "torsfc", |
real, intent(in):: rg ! gravity constant |
20 |
c but no write in the iam file. |
real, intent(in):: ome ! Earth rotation rate |
21 |
c |
|
22 |
C WARNING: Only valid for regular rectangular grids. |
REAL, intent(in):: plat(:), plon(:) |
23 |
C REMARK: CALL DANS PHYSIQ AFTER lift_noro: |
! (nlon) latitude and longitude in degrees |
24 |
C CALL aaam_bud (27,klon,klev,rjourvrai,gmtime, |
|
25 |
C C ra,rg,romega, |
real, intent(in):: phis(:) ! (nlon) Geopotential at the ground |
26 |
C C rlat,rlon,pphis, |
REAL, intent(in):: dragu(:) ! (nlon) orodrag stress (zonal) |
27 |
C C zustrdr,zustrli,zustrph, |
REAL, intent(in):: liftu(:) ! (nlon) orolift stress (zonal) |
28 |
C C zvstrdr,zvstrli,zvstrph, |
REAL, intent(in):: phyu(:) ! (nlon) Stress total de la physique (zonal) |
29 |
C C paprs,u,v) |
REAL, intent(in):: dragv(:) ! (nlon) orodrag stress (Meridional) |
30 |
C |
REAL, intent(in):: liftv(:) ! (nlon) orolift stress (Meridional) |
31 |
C====================================================================== |
REAL, intent(in):: phyv(:) ! (nlon) Stress total de la physique (Meridional) |
32 |
c Explicit Arguments: |
|
33 |
c ================== |
REAL, intent(in):: p(:, :) |
34 |
c iam-----input-I-File number where AAMs and torques are written |
! (nlon, nlev + 1) pressure (Pa) at model half levels |
35 |
c It is a formatted file that has been opened |
|
36 |
c in physiq.F |
real, intent(in):: u(:, :), v(:, :) ! (nlon, nlev) horizontal wind (m/s) |
37 |
c nlon----input-I-Total number of horizontal points that get into physics |
REAL, intent(out):: aam ! axial component of wind AAM |
38 |
c nlev----input-I-Number of vertical levels |
REAL, intent(out):: torsfc ! axial component of total surface torque |
39 |
c rsec----input-R-Seconde de la journee |
|
40 |
c rea-----input-R-Earth radius |
! Local Variables: |
41 |
c rg------input-R-gravity constant |
|
42 |
c ome-----input-R-Earth rotation rate |
INTEGER nlev ! number of vertical levels |
43 |
c plat ---input-R-Latitude en degres |
INTEGER i, j, k, l |
44 |
c plon ---input-R-Longitude en degres |
REAL hadley, hadday |
45 |
c phis ---input-R-Geopotential at the ground |
REAL dlat, dlon ! latitude and longitude increments (radians) |
46 |
c dragu---input-R-orodrag stress (zonal) |
|
47 |
c liftu---input-R-orolift stress (zonal) |
REAL raam(3) ! wind AAM (components 1 & 2: equatorial; component 3: axial) |
48 |
c phyu----input-R-Stress total de la physique (zonal) |
REAL oaam(3) ! mass AAM (components 1 & 2: equatorial; component 3: axial) |
49 |
c dragv---input-R-orodrag stress (Meridional) |
REAL tmou(3) ! resolved mountain torque (3 components) |
50 |
c liftv---input-R-orolift stress (Meridional) |
REAL tsso(3) ! parameterised moutain drag torque (3 components) |
51 |
c phyv----input-R-Stress total de la physique (Meridional) |
REAL tbls(3) ! parameterised boundary layer torque (3 components) |
52 |
c p-------input-R-Pressure (Pa) at model half levels |
integer iax |
53 |
c u-------input-R-Horizontal wind (m/s) |
|
54 |
c v-------input-R-Meridional wind (m/s) |
REAL ZS(801, 401) ! topographic height |
55 |
c aam-----output-R-Axial Wind AAM (=raam(3)) |
REAL PS(801, 401) ! surface pressure |
56 |
c torsfc--output-R-Total surface torque (=tmou(3)+tsso(3)+tbls(3)) |
REAL UB(801, 401), VB(801, 401) ! barotropic wind, zonal and meridional |
57 |
c |
REAL SSOU(801, 401), SSOV(801, 401) |
58 |
c Implicit Arguments: |
REAL BLSU(801, 401), BLSV(801, 401) |
59 |
c =================== |
REAL ZLON(801), ZLAT(401) ! longitude and latitude in radians |
60 |
c |
|
61 |
c iim--common-I: Number of longitude intervals |
!------------------------------------------------------------------- |
62 |
c jjm--common-I: Number of latitude intervals |
|
63 |
c klon-common-I: Number of points seen by the physics |
call assert(size(plat) == (/size(plon), size(phis), size(dragu), & |
64 |
c iim*(jjm-1)+2 for instance |
size(liftu), size(phyu), size(dragv), size(liftv), size(phyv), & |
65 |
c klev-common-I: Number of vertical layers |
size(p, 1), size(u, 1), size(v, 1)/), "aaam_bud nlon") |
66 |
c====================================================================== |
nlev = assert_eq(size(p, 2) - 1, size(u, 2), size(v, 2), "aaam_bud nlev") |
67 |
c Local Variables: |
|
68 |
c ================ |
if (iim + 1 > 801 .or. jjm + 1 > 401) then |
69 |
c dlat-----R: Latitude increment (Radians) |
print *, ' Problème de dimension dans aaam_bud' |
70 |
c dlon-----R: Longitude increment (Radians) |
stop 1 |
71 |
c raam ---R: Wind AAM (3 Components, 1 & 2 Equatoriales; 3 Axiale) |
endif |
72 |
c oaam ---R: Mass AAM (3 Components, 1 & 2 Equatoriales; 3 Axiale) |
|
73 |
c tmou-----R: Resolved Mountain torque (3 components) |
hadley = 1e18 |
74 |
c tsso-----R: Parameterised Moutain drag torque (3 components) |
hadday = 1e18 * 24. * 3600. |
75 |
c tbls-----R: Parameterised Boundary layer torque (3 components) |
dlat = pi / jjm |
76 |
c |
dlon = 2 * pi / real(iim) |
77 |
c LOCAL ARRAY: |
|
78 |
c =========== |
oaam = 0. |
79 |
c zs ---R: Topographic height |
raam = 0. |
80 |
c ps ---R: Surface Pressure |
tmou = 0. |
81 |
c ub ---R: Barotropic wind zonal |
tsso = 0. |
82 |
c vb ---R: Barotropic wind meridional |
tbls = 0. |
83 |
c zlat ---R: Latitude in radians |
|
84 |
c zlon ---R: Longitude in radians |
! Mountain height, pressure and barotropic wind: |
85 |
c====================================================================== |
|
86 |
|
! North pole values (j = 1): |
87 |
c |
|
88 |
c ARGUMENTS |
ub(1, 1) = 0. |
89 |
c |
vb(1, 1) = 0. |
90 |
INTEGER iam,nlon,nlev |
do k = 1, nlev |
91 |
real, intent(in):: rsec |
ub(1, 1) = ub(1, 1) + u(1, k) * (p(1, k) - p(1, k + 1)) / rg |
92 |
real rea |
vb(1, 1) = vb(1, 1) + v(1, k) * (p(1, k) - p(1, k + 1)) / rg |
93 |
real, intent(in):: rg |
enddo |
94 |
real ome |
|
95 |
REAL, intent(in):: plat(nlon),plon(nlon) |
zlat(1) = plat(1) * pi / 180. |
96 |
real phis(nlon) |
|
97 |
REAL dragu(nlon),liftu(nlon),phyu(nlon) |
do i = 1, iim + 1 |
98 |
REAL dragv(nlon),liftv(nlon),phyv(nlon) |
zs(i, 1) = phis(1) / rg |
99 |
REAL, intent(in):: p(nlon,nlev+1) |
ps(i, 1) = p(1, 1) |
100 |
real u(nlon,nlev), v(nlon,nlev) |
ub(i, 1) = ub(1, 1) |
101 |
c |
vb(i, 1) = vb(1, 1) |
102 |
c Variables locales: |
ssou(i, 1) = dragu(1) + liftu(1) |
103 |
c |
ssov(i, 1) = dragv(1) + liftv(1) |
104 |
INTEGER i,j,k,l |
blsu(i, 1) = phyu(1) - dragu(1) - liftu(1) |
105 |
REAL xpi,hadley,hadday |
blsv(i, 1) = phyv(1) - dragv(1) - liftv(1) |
106 |
REAL dlat,dlon |
enddo |
107 |
REAL raam(3),oaam(3),tmou(3),tsso(3),tbls(3) |
|
108 |
integer iax |
l = 1 |
109 |
cIM ajout aam, torsfc |
do j = 2, jjm |
110 |
c aam = composante axiale du Wind AAM raam |
! Values at Greenwich (Periodicity) |
111 |
c torsfc = composante axiale de (tmou+tsso+tbls) |
|
112 |
REAL aam, torsfc |
zs(iim + 1, j) = phis(l + 1) / rg |
113 |
|
ps(iim + 1, j) = p(l + 1, 1) |
114 |
REAL ZS(801,401),PS(801,401) |
ssou(iim + 1, j) = dragu(l + 1) + liftu(l + 1) |
115 |
REAL UB(801,401),VB(801,401) |
ssov(iim + 1, j) = dragv(l + 1) + liftv(l + 1) |
116 |
REAL SSOU(801,401),SSOV(801,401) |
blsu(iim + 1, j) = phyu(l + 1) - dragu(l + 1) - liftu(l + 1) |
117 |
REAL BLSU(801,401),BLSV(801,401) |
blsv(iim + 1, j) = phyv(l + 1) - dragv(l + 1) - liftv(l + 1) |
118 |
REAL ZLON(801),ZLAT(401) |
zlon(iim + 1) = - plon(l + 1) * pi / 180. |
119 |
C |
zlat(j) = plat(l + 1) * pi / 180. |
120 |
C PUT AAM QUANTITIES AT ZERO: |
|
121 |
C |
ub(iim + 1, j) = 0. |
122 |
if(iim+1.gt.801.or.jjm+1.gt.401)then |
vb(iim + 1, j) = 0. |
123 |
print *,' Pb de dimension dans aaam_bud' |
do k = 1, nlev |
124 |
stop |
ub(iim + 1, j) = ub(iim + 1, j) & |
125 |
endif |
+ u(l + 1, k) * (p(l + 1, k) - p(l + 1, k + 1)) / rg |
126 |
|
vb(iim + 1, j) = vb(iim + 1, j) & |
127 |
xpi=acos(-1.) |
+ v(l + 1, k) * (p(l + 1, k) - p(l + 1, k + 1)) / rg |
128 |
hadley=1.e18 |
enddo |
129 |
hadday=1.e18*24.*3600. |
|
130 |
dlat=xpi/float(jjm) |
do i = 1, iim |
131 |
dlon=2.*xpi/float(iim) |
l = l + 1 |
132 |
|
zs(i, j) = phis(l) / rg |
133 |
do iax=1,3 |
ps(i, j) = p(l, 1) |
134 |
oaam(iax)=0. |
ssou(i, j) = dragu(l) + liftu(l) |
135 |
raam(iax)=0. |
ssov(i, j) = dragv(l) + liftv(l) |
136 |
tmou(iax)=0. |
blsu(i, j) = phyu(l) - dragu(l) - liftu(l) |
137 |
tsso(iax)=0. |
blsv(i, j) = phyv(l) - dragv(l) - liftv(l) |
138 |
tbls(iax)=0. |
zlon(i) = plon(l) * pi / 180. |
139 |
enddo |
|
140 |
|
ub(i, j) = 0. |
141 |
C MOUNTAIN HEIGHT, PRESSURE AND BAROTROPIC WIND: |
vb(i, j) = 0. |
142 |
|
do k = 1, nlev |
143 |
C North pole values (j=1): |
ub(i, j) = ub(i, j) + u(l, k) * (p(l, k) - p(l, k + 1)) / rg |
144 |
|
vb(i, j) = vb(i, j) + v(l, k) * (p(l, k) - p(l, k + 1)) / rg |
145 |
l=1 |
enddo |
146 |
|
enddo |
147 |
ub(1,1)=0. |
enddo |
148 |
vb(1,1)=0. |
|
149 |
do k=1,nlev |
! South Pole |
150 |
ub(1,1)=ub(1,1)+u(l,k)*(p(l,k)-p(l,k+1))/rg |
|
151 |
vb(1,1)=vb(1,1)+v(l,k)*(p(l,k)-p(l,k+1))/rg |
l = l + 1 |
152 |
enddo |
ub(1, jjm + 1) = 0. |
153 |
|
vb(1, jjm + 1) = 0. |
154 |
zlat(1)=plat(l)*xpi/180. |
do k = 1, nlev |
155 |
|
ub(1, jjm + 1) = ub(1, jjm + 1) + u(l, k) * (p(l, k) - p(l, k + 1)) / rg |
156 |
do i=1,iim+1 |
vb(1, jjm + 1) = vb(1, jjm + 1) + v(l, k) * (p(l, k) - p(l, k + 1)) / rg |
157 |
|
enddo |
158 |
zs(i,1)=phis(l)/rg |
zlat(jjm + 1) = plat(l) * pi / 180. |
159 |
ps(i,1)=p(l,1) |
|
160 |
ub(i,1)=ub(1,1) |
do i = 1, iim + 1 |
161 |
vb(i,1)=vb(1,1) |
zs(i, jjm + 1) = phis(l) / rg |
162 |
ssou(i,1)=dragu(l)+liftu(l) |
ps(i, jjm + 1) = p(l, 1) |
163 |
ssov(i,1)=dragv(l)+liftv(l) |
ssou(i, jjm + 1) = dragu(l) + liftu(l) |
164 |
blsu(i,1)=phyu(l)-dragu(l)-liftu(l) |
ssov(i, jjm + 1) = dragv(l) + liftv(l) |
165 |
blsv(i,1)=phyv(l)-dragv(l)-liftv(l) |
blsu(i, jjm + 1) = phyu(l) - dragu(l) - liftu(l) |
166 |
|
blsv(i, jjm + 1) = phyv(l) - dragv(l) - liftv(l) |
167 |
enddo |
ub(i, jjm + 1) = ub(1, jjm + 1) |
168 |
|
vb(i, jjm + 1) = vb(1, jjm + 1) |
169 |
|
enddo |
170 |
do j = 2,jjm |
|
171 |
|
! Moment angulaire |
172 |
C Values at Greenwich (Periodicity) |
|
173 |
|
DO j = 1, jjm |
174 |
zs(iim+1,j)=phis(l+1)/rg |
DO i = 1, iim |
175 |
ps(iim+1,j)=p(l+1,1) |
raam(1) = raam(1) - rea**3 * dlon * dlat * 0.5 * (cos(zlon(i )) & |
176 |
ssou(iim+1,j)=dragu(l+1)+liftu(l+1) |
* sin(zlat(j )) * cos(zlat(j )) * ub(i , j ) + cos(zlon(i )) & |
177 |
ssov(iim+1,j)=dragv(l+1)+liftv(l+1) |
* sin(zlat(j + 1)) * cos(zlat(j + 1)) * ub(i , j + 1)) & |
178 |
blsu(iim+1,j)=phyu(l+1)-dragu(l+1)-liftu(l+1) |
+ rea**3 * dlon * dlat * 0.5 * (sin(zlon(i )) * cos(zlat(j )) & |
179 |
blsv(iim+1,j)=phyv(l+1)-dragv(l+1)-liftv(l+1) |
* vb(i , j ) + sin(zlon(i )) * cos(zlat(j + 1)) * vb(i , j + 1)) |
180 |
zlon(iim+1)=-plon(l+1)*xpi/180. |
|
181 |
zlat(j)=plat(l+1)*xpi/180. |
oaam(1) = oaam(1) - ome * rea**4 * dlon * dlat / rg * 0.5 & |
182 |
|
* (cos(zlon(i )) * cos(zlat(j ))**2 * sin(zlat(j )) & |
183 |
ub(iim+1,j)=0. |
* ps(i , j ) + cos(zlon(i )) * cos(zlat(j + 1))**2 & |
184 |
vb(iim+1,j)=0. |
* sin(zlat(j + 1)) * ps(i , j + 1)) |
185 |
do k=1,nlev |
|
186 |
ub(iim+1,j)=ub(iim+1,j)+u(l+1,k)*(p(l+1,k)-p(l+1,k+1))/rg |
raam(2) = raam(2) - rea**3 * dlon * dlat * 0.5 * (sin(zlon(i )) & |
187 |
vb(iim+1,j)=vb(iim+1,j)+v(l+1,k)*(p(l+1,k)-p(l+1,k+1))/rg |
* sin(zlat(j )) * cos(zlat(j )) * ub(i , j ) + sin(zlon(i )) & |
188 |
enddo |
* sin(zlat(j + 1)) * cos(zlat(j + 1)) * ub(i , j + 1)) & |
189 |
|
- rea**3 * dlon * dlat * 0.5 * (cos(zlon(i )) * cos(zlat(j )) & |
190 |
|
* vb(i , j ) + cos(zlon(i )) * cos(zlat(j + 1)) * vb(i , j + 1)) |
191 |
do i=1,iim |
|
192 |
|
oaam(2) = oaam(2) - ome * rea**4 * dlon * dlat / rg * 0.5 & |
193 |
l=l+1 |
* (sin(zlon(i )) * cos(zlat(j ))**2 * sin(zlat(j )) & |
194 |
zs(i,j)=phis(l)/rg |
* ps(i , j ) + sin(zlon(i )) * cos(zlat(j + 1))**2 & |
195 |
ps(i,j)=p(l,1) |
* sin(zlat(j + 1)) * ps(i , j + 1)) |
196 |
ssou(i,j)=dragu(l)+liftu(l) |
|
197 |
ssov(i,j)=dragv(l)+liftv(l) |
raam(3) = raam(3) + rea**3 * dlon * dlat * 0.5 * (cos(zlat(j))**2 & |
198 |
blsu(i,j)=phyu(l)-dragu(l)-liftu(l) |
* ub(i, j) + cos(zlat(j + 1))**2 * ub(i, j + 1)) |
199 |
blsv(i,j)=phyv(l)-dragv(l)-liftv(l) |
|
200 |
zlon(i)=plon(l)*xpi/180. |
oaam(3) = oaam(3) + ome * rea**4 * dlon * dlat / rg * 0.5 & |
201 |
|
* (cos(zlat(j))**3 * ps(i, j) + cos(zlat(j + 1))**3 & |
202 |
ub(i,j)=0. |
* ps(i, j + 1)) |
203 |
vb(i,j)=0. |
ENDDO |
204 |
do k=1,nlev |
ENDDO |
205 |
ub(i,j)=ub(i,j)+u(l,k)*(p(l,k)-p(l,k+1))/rg |
|
206 |
vb(i,j)=vb(i,j)+v(l,k)*(p(l,k)-p(l,k+1))/rg |
! Couple des montagnes : |
207 |
enddo |
|
208 |
|
DO j = 1, jjm |
209 |
enddo |
DO i = 1, iim |
210 |
|
tmou(1) = tmou(1) - rea**2 * dlon * 0.5 * sin(zlon(i)) & |
211 |
enddo |
* (zs(i, j) - zs(i, j + 1)) & |
212 |
|
* (cos(zlat(j + 1)) * ps(i, j + 1) + cos(zlat(j)) * ps(i, j)) |
213 |
|
tmou(2) = tmou(2) + rea**2 * dlon * 0.5 * cos(zlon(i)) & |
214 |
C South Pole |
* (zs(i, j) - zs(i, j + 1)) & |
215 |
|
* (cos(zlat(j + 1)) * ps(i, j + 1) + cos(zlat(j)) * ps(i, j)) |
216 |
l=l+1 |
ENDDO |
217 |
ub(1,jjm+1)=0. |
ENDDO |
218 |
vb(1,jjm+1)=0. |
|
219 |
do k=1,nlev |
DO j = 2, jjm |
220 |
ub(1,jjm+1)=ub(1,jjm+1)+u(l,k)*(p(l,k)-p(l,k+1))/rg |
DO i = 1, iim |
221 |
vb(1,jjm+1)=vb(1,jjm+1)+v(l,k)*(p(l,k)-p(l,k+1))/rg |
tmou(1) = tmou(1) + rea**2 * dlat * 0.5 * sin(zlat(j)) & |
222 |
enddo |
* (zs(i + 1, j) - zs(i, j)) & |
223 |
zlat(jjm+1)=plat(l)*xpi/180. |
* (cos(zlon(i + 1)) * ps(i + 1, j) + cos(zlon(i)) * ps(i, j)) |
224 |
|
tmou(2) = tmou(2) + rea**2 * dlat * 0.5 * sin(zlat(j)) & |
225 |
do i=1,iim+1 |
* (zs(i + 1, j) - zs(i, j)) & |
226 |
zs(i,jjm+1)=phis(l)/rg |
* (sin(zlon(i + 1)) * ps(i + 1, j) + sin(zlon(i)) * ps(i, j)) |
227 |
ps(i,jjm+1)=p(l,1) |
tmou(3) = tmou(3) - rea**2 * dlat * 0.5* cos(zlat(j)) & |
228 |
ssou(i,jjm+1)=dragu(l)+liftu(l) |
* (zs(i + 1, j) - zs(i, j)) * (ps(i + 1, j) + ps(i, j)) |
229 |
ssov(i,jjm+1)=dragv(l)+liftv(l) |
ENDDO |
230 |
blsu(i,jjm+1)=phyu(l)-dragu(l)-liftu(l) |
ENDDO |
231 |
blsv(i,jjm+1)=phyv(l)-dragv(l)-liftv(l) |
|
232 |
ub(i,jjm+1)=ub(1,jjm+1) |
! Couples des differentes friction au sol : |
233 |
vb(i,jjm+1)=vb(1,jjm+1) |
|
234 |
enddo |
DO j = 2, jjm |
235 |
|
DO i = 1, iim |
236 |
C |
tsso(1) = tsso(1) - rea**3 * cos(zlat(j)) * dlon * dlat* & |
237 |
C MOMENT ANGULAIRE |
ssou(i, j) * sin(zlat(j)) * cos(zlon(i)) & |
238 |
C |
+ rea**3 * cos(zlat(j)) * dlon * dlat* & |
239 |
DO j=1,jjm |
ssov(i, j) * sin(zlon(i)) |
240 |
DO i=1,iim |
|
241 |
|
tsso(2) = tsso(2) - rea**3 * cos(zlat(j)) * dlon * dlat* & |
242 |
raam(1)=raam(1)-rea**3*dlon*dlat*0.5* |
ssou(i, j) * sin(zlat(j)) * sin(zlon(i)) & |
243 |
c (cos(zlon(i ))*sin(zlat(j ))*cos(zlat(j ))*ub(i ,j ) |
- rea**3 * cos(zlat(j)) * dlon * dlat* & |
244 |
c +cos(zlon(i ))*sin(zlat(j+1))*cos(zlat(j+1))*ub(i ,j+1)) |
ssov(i, j) * cos(zlon(i)) |
245 |
c +rea**3*dlon*dlat*0.5* |
|
246 |
c (sin(zlon(i ))*cos(zlat(j ))*vb(i ,j ) |
tsso(3) = tsso(3) + rea**3 * cos(zlat(j)) * dlon * dlat* & |
247 |
c +sin(zlon(i ))*cos(zlat(j+1))*vb(i ,j+1)) |
ssou(i, j) * cos(zlat(j)) |
248 |
|
|
249 |
oaam(1)=oaam(1)-ome*rea**4*dlon*dlat/rg*0.5* |
tbls(1) = tbls(1) - rea**3 * cos(zlat(j)) * dlon * dlat* & |
250 |
c (cos(zlon(i ))*cos(zlat(j ))**2*sin(zlat(j ))*ps(i ,j ) |
blsu(i, j) * sin(zlat(j)) * cos(zlon(i)) & |
251 |
c +cos(zlon(i ))*cos(zlat(j+1))**2*sin(zlat(j+1))*ps(i ,j+1)) |
+ rea**3 * cos(zlat(j)) * dlon * dlat* & |
252 |
|
blsv(i, j) * sin(zlon(i)) |
253 |
raam(2)=raam(2)-rea**3*dlon*dlat*0.5* |
|
254 |
c (sin(zlon(i ))*sin(zlat(j ))*cos(zlat(j ))*ub(i ,j ) |
tbls(2) = tbls(2) - rea**3 * cos(zlat(j)) * dlon * dlat* & |
255 |
c +sin(zlon(i ))*sin(zlat(j+1))*cos(zlat(j+1))*ub(i ,j+1)) |
blsu(i, j) * sin(zlat(j)) * sin(zlon(i)) & |
256 |
c -rea**3*dlon*dlat*0.5* |
- rea**3 * cos(zlat(j)) * dlon * dlat* & |
257 |
c (cos(zlon(i ))*cos(zlat(j ))*vb(i ,j ) |
blsv(i, j) * cos(zlon(i)) |
258 |
c +cos(zlon(i ))*cos(zlat(j+1))*vb(i ,j+1)) |
|
259 |
|
tbls(3) = tbls(3) + rea**3 * cos(zlat(j)) * dlon * dlat* & |
260 |
oaam(2)=oaam(2)-ome*rea**4*dlon*dlat/rg*0.5* |
blsu(i, j) * cos(zlat(j)) |
261 |
c (sin(zlon(i ))*cos(zlat(j ))**2*sin(zlat(j ))*ps(i ,j ) |
ENDDO |
262 |
c +sin(zlon(i ))*cos(zlat(j+1))**2*sin(zlat(j+1))*ps(i ,j+1)) |
ENDDO |
263 |
|
|
264 |
raam(3)=raam(3)+rea**3*dlon*dlat*0.5* |
aam = raam(3) |
265 |
c (cos(zlat(j))**2*ub(i,j)+cos(zlat(j+1))**2*ub(i,j+1)) |
torsfc = tmou(3) + tsso(3) + tbls(3) |
266 |
|
|
267 |
oaam(3)=oaam(3)+ome*rea**4*dlon*dlat/rg*0.5* |
END subroutine aaam_bud |
268 |
c (cos(zlat(j))**3*ps(i,j)+cos(zlat(j+1))**3*ps(i,j+1)) |
|
269 |
|
end module aaam_bud_m |
|
ENDDO |
|
|
ENDDO |
|
|
|
|
|
C |
|
|
C COUPLE DES MONTAGNES: |
|
|
C |
|
|
|
|
|
DO j=1,jjm |
|
|
DO i=1,iim |
|
|
tmou(1)=tmou(1)-rea**2*dlon*0.5*sin(zlon(i)) |
|
|
c *(zs(i,j)-zs(i,j+1)) |
|
|
c *(cos(zlat(j+1))*ps(i,j+1)+cos(zlat(j))*ps(i,j)) |
|
|
tmou(2)=tmou(2)+rea**2*dlon*0.5*cos(zlon(i)) |
|
|
c *(zs(i,j)-zs(i,j+1)) |
|
|
c *(cos(zlat(j+1))*ps(i,j+1)+cos(zlat(j))*ps(i,j)) |
|
|
ENDDO |
|
|
ENDDO |
|
|
|
|
|
DO j=2,jjm |
|
|
DO i=1,iim |
|
|
tmou(1)=tmou(1)+rea**2*dlat*0.5*sin(zlat(j)) |
|
|
c *(zs(i+1,j)-zs(i,j)) |
|
|
c *(cos(zlon(i+1))*ps(i+1,j)+cos(zlon(i))*ps(i,j)) |
|
|
tmou(2)=tmou(2)+rea**2*dlat*0.5*sin(zlat(j)) |
|
|
c *(zs(i+1,j)-zs(i,j)) |
|
|
c *(sin(zlon(i+1))*ps(i+1,j)+sin(zlon(i))*ps(i,j)) |
|
|
tmou(3)=tmou(3)-rea**2*dlat*0.5* |
|
|
c cos(zlat(j))*(zs(i+1,j)-zs(i,j))*(ps(i+1,j)+ps(i,j)) |
|
|
ENDDO |
|
|
ENDDO |
|
|
|
|
|
C |
|
|
C COUPLES DES DIFFERENTES FRICTION AU SOL: |
|
|
C |
|
|
l=1 |
|
|
DO j=2,jjm |
|
|
DO i=1,iim |
|
|
l=l+1 |
|
|
tsso(1)=tsso(1)-rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c ssou(i,j) *sin(zlat(j))*cos(zlon(i)) |
|
|
c +rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c ssov(i,j) *sin(zlon(i)) |
|
|
|
|
|
tsso(2)=tsso(2)-rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c ssou(i,j) *sin(zlat(j))*sin(zlon(i)) |
|
|
c -rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c ssov(i,j) *cos(zlon(i)) |
|
|
|
|
|
tsso(3)=tsso(3)+rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c ssou(i,j) *cos(zlat(j)) |
|
|
|
|
|
tbls(1)=tbls(1)-rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c blsu(i,j) *sin(zlat(j))*cos(zlon(i)) |
|
|
c +rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c blsv(i,j) *sin(zlon(i)) |
|
|
|
|
|
tbls(2)=tbls(2)-rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c blsu(i,j) *sin(zlat(j))*sin(zlon(i)) |
|
|
c -rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c blsv(i,j) *cos(zlon(i)) |
|
|
|
|
|
tbls(3)=tbls(3)+rea**3*cos(zlat(j))*dlon*dlat* |
|
|
c blsu(i,j) *cos(zlat(j)) |
|
|
|
|
|
ENDDO |
|
|
ENDDO |
|
|
|
|
|
|
|
|
100 format(F12.5,15(1x,F12.5)) |
|
|
|
|
|
aam=raam(3) |
|
|
torsfc= tmou(3)+tsso(3)+tbls(3) |
|
|
c |
|
|
RETURN |
|
|
END |
|