/[MITgcm]/MITgcm_contrib/natl_12/code/mom_v_yviscflux.F
ViewVC logotype

Annotation of /MITgcm_contrib/natl_12/code/mom_v_yviscflux.F

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


Revision 1.2 - (hide annotations) (download)
Thu Aug 7 13:03:31 2003 UTC (20 years, 10 months ago) by cnh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +4 -1 lines
Mods to allow laplacian as well as biharmonic viscosity with varying resolution

1 cnh 1.1 C $Header: /u/u0/gcmpack/MITgcm/pkg/mom_fluxform/mom_v_yviscflux.F,v 1.3 2001/09/26 19:05:21 adcroft Exp $
2     C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: MOM_V_YVISCFLUX
8    
9     C !INTERFACE: ==========================================================
10     SUBROUTINE MOM_V_YVISCFLUX(
11     I bi,bj,k,
12     I vFld, del2v,
13     O yViscFluxV,
14     I myThid)
15    
16     C !DESCRIPTION:
17     C Calculates the area integrated meridional viscous fluxes of V:
18     C \begin{equation*}
19     C F^y = - \frac{ \Delta x_f \Delta r_f h_c }{\Delta y_f}
20     C ( A_h \delta_j v - A_4 \delta_j \nabla^2 v )
21     C \end{equation*}
22    
23     C !USES: ===============================================================
24     IMPLICIT NONE
25     #include "SIZE.h"
26     #include "EEPARAMS.h"
27     #include "PARAMS.h"
28     #include "GRID.h"
29    
30     C !INPUT PARAMETERS: ===================================================
31     C bi,bj :: tile indices
32     C k :: vertical level
33     C vFld :: meridional flow
34     C del2v :: Laplacian of meridional flow
35     C myThid :: thread number
36     INTEGER bi,bj,k
37     _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38     _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39     INTEGER myThid
40    
41     C !OUTPUT PARAMETERS: ==================================================
42     C yViscFluxV :: viscous fluxes
43     _RL yViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44    
45     C !LOCAL VARIABLES: ====================================================
46     C i,j :: loop indices
47     INTEGER I,J
48     _RS gridScalingA4
49 cnh 1.2 _RS gridScalingAh
50 cnh 1.1 CEOP
51    
52     C - Laplacian and bi-harmonic terms
53     DO j=1-Oly,sNy+Oly-1
54     DO i=1-Olx,sNx+Olx-1
55     gridScalingA4 = (_dyF(i,j,bi,bj)**4)/(5000.**4)
56 cnh 1.2 gridScalingAh = (_dyF(i,j,bi,bj)**2)/(5000.**2)
57 cnh 1.1 yViscFluxV(i,j) =
58     & _dxF(i,j,bi,bj)*drF(k)*_hFacC(i,j,k,bi,bj)
59     & *(
60 cnh 1.2 & -viscAh*(vFld(i,j+1)-vFld(i,j))*gridScalingAh
61 cnh 1.1 #ifdef ISOTROPIC_COS_SCALING
62     & *cosFacU(J,bi,bj)
63     #endif
64     & +viscA4*(del2v(i,j+1) -del2v(i,j) )
65 cnh 1.2 & *gridScalingA4
66 cnh 1.1 #ifdef ISOTROPIC_COS_SCALING
67     #ifdef COSINEMETH_III
68     & *sqCosFacU(J,bi,bj)
69     #else
70     & *cosFacU(J,bi,bj)
71     #endif
72     #endif
73     & )*_recip_dyF(i,j,bi,bj)
74     ENDDO
75     ENDDO
76    
77     RETURN
78     END

  ViewVC Help
Powered by ViewVC 1.1.22