3 |
|
|
4 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
5 |
|
|
6 |
|
CBOP |
7 |
|
C !ROUTINE: MOM_U_YVISCFLUX |
8 |
|
|
9 |
|
C !INTERFACE: ========================================================== |
10 |
SUBROUTINE MOM_U_YVISCFLUX( |
SUBROUTINE MOM_U_YVISCFLUX( |
11 |
I bi,bj,k, |
I bi,bj,k, |
12 |
I uFld, del2u, hFacZ, |
I uFld, del2u, hFacZ, |
13 |
O yViscFluxU, |
O yViscFluxU, |
14 |
I myThid) |
I myThid) |
|
IMPLICIT NONE |
|
|
C |
|
|
C Calculate viscous flux in Y direction for U eqn |
|
|
C - is not vector invariant ... |
|
|
C |
|
15 |
|
|
16 |
C == Global variables == |
C !DESCRIPTION: |
17 |
|
C Calculates the area integrated meridional viscous fluxes of U: |
18 |
|
C \begin{equation*} |
19 |
|
C F^y = - \frac{ \Delta y_v \Delta r_f h_z }{\Delta y_u} |
20 |
|
C ( A_h \delta_j u - A_4 \delta_j \nabla^2 u ) |
21 |
|
C \end{equation*} |
22 |
|
|
23 |
|
C !USES: =============================================================== |
24 |
|
IMPLICIT NONE |
25 |
#include "SIZE.h" |
#include "SIZE.h" |
26 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
27 |
#include "PARAMS.h" |
#include "PARAMS.h" |
28 |
#include "GRID.h" |
#include "GRID.h" |
29 |
|
|
30 |
C == Routine arguments == |
C !INPUT PARAMETERS: =================================================== |
31 |
|
C bi,bj :: tile indices |
32 |
|
C k :: vertical level |
33 |
|
C uFld :: zonal flow |
34 |
|
C del2u :: Laplacian of zonal flow |
35 |
|
C myThid :: thread number |
36 |
INTEGER bi,bj,k |
INTEGER bi,bj,k |
37 |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
38 |
_RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
39 |
_RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
|
_RL yViscFluxU(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
|
40 |
INTEGER myThid |
INTEGER myThid |
41 |
|
|
42 |
C == Local variables == |
C !OUTPUT PARAMETERS: ================================================== |
43 |
|
C yViscFluxU :: viscous fluxes |
44 |
|
_RL yViscFluxU(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
45 |
|
|
46 |
|
C !LOCAL VARIABLES: ==================================================== |
47 |
|
C i,j :: loop indices |
48 |
INTEGER I,J |
INTEGER I,J |
49 |
|
CEOP |
50 |
|
|
51 |
C - Laplacian and bi-harmonic terms |
C - Laplacian and bi-harmonic terms |
52 |
DO j=1-Oly+1,sNy+Oly |
DO j=1-Oly+1,sNy+Oly |