/[MITgcm]/MITgcm/pkg/seaice/seaice_ocean_stress.F
ViewVC logotype

Contents of /MITgcm/pkg/seaice/seaice_ocean_stress.F

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


Revision 1.25 - (show annotations) (download)
Wed Jun 24 08:01:43 2009 UTC (14 years, 11 months ago) by mlosch
Branch: MAIN
Changes since 1.24: +15 -15 lines
 third and step of replacing 3D versions of UICE,VICE,HEFF,AREA by 2D
 versions. Keep your fingers crossed.

1 C $Header: /u/gcmpack/MITgcm/pkg/seaice/seaice_ocean_stress.F,v 1.24 2009/05/29 14:51:21 mlosch Exp $
2 C $Name: $
3
4 #include "SEAICE_OPTIONS.h"
5
6 CStartOfInterface
7 SUBROUTINE SEAICE_OCEAN_STRESS(
8 I myTime, myIter, myThid )
9 C /==========================================================\
10 C | SUBROUTINE SEAICE_OCEAN_STRESS |
11 C | o Calculate ocean surface stresses |
12 C | - C-grid version |
13 C |==========================================================|
14 C \==========================================================/
15 IMPLICIT NONE
16
17 C === Global variables ===
18 #include "SIZE.h"
19 #include "EEPARAMS.h"
20 #include "PARAMS.h"
21 #include "DYNVARS.h"
22 #include "GRID.h"
23 #include "FFIELDS.h"
24 #include "SEAICE.h"
25 #include "SEAICE_PARAMS.h"
26
27 C === Routine arguments ===
28 C myTime - Simulation time
29 C myIter - Simulation timestep number
30 C myThid - Thread no. that called this routine.
31 _RL myTime
32 INTEGER myIter
33 INTEGER myThid
34 CEndOfInterface
35
36 #ifdef SEAICE_CGRID
37 C === Local variables ===
38 C i,j,bi,bj - Loop counters
39
40 INTEGER i, j, bi, bj
41 _RL SINWAT, COSWAT, SINWIN, COSWIN
42 _RL fuIceLoc, fvIceLoc
43 _RL areaW, areaS
44
45 c introduce turning angle (default is zero)
46 SINWAT=SIN(SEAICE_waterTurnAngle*deg2rad)
47 COSWAT=COS(SEAICE_waterTurnAngle*deg2rad)
48 SINWIN=SIN(SEAICE_airTurnAngle*deg2rad)
49 COSWIN=COS(SEAICE_airTurnAngle*deg2rad)
50
51 IF ( useHB87StressCoupling ) THEN
52 C
53 C use an intergral over ice and ocean surface layer to define
54 C surface stresses on ocean following Hibler and Bryan (1987, JPO)
55 C
56 DO bj=myByLo(myThid),myByHi(myThid)
57 DO bi=myBxLo(myThid),myBxHi(myThid)
58 DO J=1,sNy
59 DO I=1,sNx
60 C average wind stress over ice and ocean and apply averaged wind
61 C stress and internal ice stresses to surface layer of ocean
62 areaW = 0.5 * (AREA(I,J,bi,bj) + AREA(I-1,J,bi,bj))
63 & * SEAICEstressFactor
64 areaS = 0.5 * (AREA(I,J,bi,bj) + AREA(I,J-1,bi,bj))
65 & * SEAICEstressFactor
66 fu(I,J,bi,bj)=(ONE-areaW)*fu(I,J,bi,bj)
67 & + areaW*taux(I,J,bi,bj)
68 & + stressDivergenceX(I,J,bi,bj) * SEAICEstressFactor
69 fv(I,J,bi,bj)=(ONE-areaS)*fv(I,J,bi,bj)
70 & + areaS*tauy(I,J,bi,bj)
71 & + stressDivergenceY(I,J,bi,bj) * SEAICEstressFactor
72 ENDDO
73 ENDDO
74 ENDDO
75 ENDDO
76
77 ELSE
78 C else: useHB87StressCoupling=F
79
80 C-- Compute ice-affected wind stress (interpolate to U/V-points)
81 C by averaging wind stress and ice-ocean stress according to
82 C ice cover
83 DO bj=myByLo(myThid),myByHi(myThid)
84 DO bi=myBxLo(myThid),myBxHi(myThid)
85 DO j=1,sNy
86 DO i=1,sNx
87 fuIceLoc=HALF*( DWATN(I,J,bi,bj)+DWATN(I-1,J,bi,bj) )*
88 & COSWAT *
89 & ( UICE(I,J,bi,bj)-uVel(I,J,1,bi,bj) )
90 & - SIGN(SINWAT, _fCori(I,J,bi,bj)) * 0.5 _d 0 *
91 & ( DWATN(I ,J,bi,bj) *
92 & 0.5 _d 0*(vIce(I ,J ,bi,bj)-vVel(I ,J ,1,bi,bj)
93 & +vIce(I ,J+1,bi,bj)-vVel(I ,J+1,1,bi,bj))
94 & + DWATN(I-1,J,bi,bj) *
95 & 0.5 _d 0*(vIce(I-1,J ,bi,bj)-vVel(I-1,J ,1,bi,bj)
96 & +vIce(I-1,J+1,bi,bj)-vVel(I-1,J+1,1,bi,bj))
97 & )
98 fvIceLoc=HALF*( DWATN(I,J,bi,bj)+DWATN(I,J-1,bi,bj) )*
99 & COSWAT *
100 & ( VICE(I,J,bi,bj)-vVel(I,J,1,bi,bj) )
101 & + SIGN(SINWAT, _fCori(I,J,bi,bj)) * 0.5 _d 0 *
102 & ( DWATN(I,J ,bi,bj) *
103 & 0.5 _d 0*(uIce(I ,J ,bi,bj)-uVel(I ,J ,1,bi,bj)
104 & +uIce(I+1,J ,bi,bj)-uVel(I+1,J ,1,bi,bj))
105 & + DWATN(I,J-1,bi,bj) *
106 & 0.5 _d 0*(uIce(I ,J-1,bi,bj)-uVel(I ,J-1,1,bi,bj)
107 & +uIce(I+1,J-1,bi,bj)-uVel(I+1,J-1,1,bi,bj))
108 & )
109 areaW = 0.5 _d 0 * (AREA(I,J,bi,bj) + AREA(I-1,J,bi,bj))
110 & * SEAICEstressFactor
111 areaS = 0.5 _d 0 * (AREA(I,J,bi,bj) + AREA(I,J-1,bi,bj))
112 & * SEAICEstressFactor
113 fu(I,J,bi,bj)=(ONE-areaW)*fu(I,J,bi,bj)+areaW*fuIceLoc
114 fv(I,J,bi,bj)=(ONE-areaS)*fv(I,J,bi,bj)+areaS*fvIceLoc
115 ENDDO
116 ENDDO
117 ENDDO
118 ENDDO
119 ENDIF
120 CALL EXCH_UV_XY_RS(fu, fv, .TRUE., myThid)
121
122 #endif /* SEAICE_CGRID */
123
124 RETURN
125 END

  ViewVC Help
Powered by ViewVC 1.1.22