/[MITgcm]/MITgcm/pkg/obcs/orlanski_west.F
ViewVC logotype

Diff of /MITgcm/pkg/obcs/orlanski_west.F

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

revision 1.8 by heimbach, Mon Sep 20 23:22:58 2004 UTC revision 1.9 by jmc, Thu Sep 17 16:30:07 2009 UTC
# Line 4  cc Line 4  cc
4    
5  #include "OBCS_OPTIONS.h"  #include "OBCS_OPTIONS.h"
6    
7        SUBROUTINE ORLANSKI_WEST( bi, bj, futureTime,        SUBROUTINE ORLANSKI_WEST( bi, bj, futureTime,
8       I                      uVel, vVel, wVel, theta, salt,       I                      uVel, vVel, wVel, theta, salt,
9       I                      myThid )       I                      myThid )
10  C     /==========================================================\  C     /==========================================================\
11  C     | SUBROUTINE ORLANSKI_WEST                                 |  C     | SUBROUTINE ORLANSKI_WEST                                 |
# Line 25  C     === Global variables === Line 25  C     === Global variables ===
25  #include "OBCS.h"  #include "OBCS.h"
26  #include "ORLANSKI.h"  #include "ORLANSKI.h"
27    
28  C SPK 6/2/00: Added radiative OBCs for salinity.  C SPK 6/2/00: Added radiative OBCs for salinity.
29  C SPK 6/6/00: Changed calculation of OB*w. When K=1, the  C SPK 6/6/00: Changed calculation of OB*w. When K=1, the
30  C             upstream value is used. For example on the eastern OB:  C             upstream value is used. For example on the eastern OB:
31  C                IF (K.EQ.1) THEN  C                IF (K.EQ.1) THEN
32  C                   OBEw(J,K,bi,bj)=wVel(I_obc-1,J,K,bi,bj)  C                   OBEw(J,K,bi,bj)=wVel(I_obc-1,J,K,bi,bj)
33  C                ENDIF  C                ENDIF
34  C                          C
35  C SPK 7/7/00: 1) Removed OB*w fix (see above).  C SPK 7/7/00: 1) Removed OB*w fix (see above).
36  C             2) Added variable CMAX. Maximum diagnosed phase speed is now  C             2) Added variable CMAX. Maximum diagnosed phase speed is now
37  C                clamped to CMAX. For stability of AB-II scheme (CFL) the  C                clamped to CMAX. For stability of AB-II scheme (CFL) the
38  C                (non-dimensional) phase speed must be <0.5  C                (non-dimensional) phase speed must be <0.5
39  C             3) (Sonya Legg) Changed application of uVel and vVel.  C             3) (Sonya Legg) Changed application of uVel and vVel.
40  C                uVel on the western OB is actually applied at I_obc+1  C                uVel on the western OB is actually applied at I_obc+1
41  C                while vVel on the southern OB is applied at J_obc+1.  C                while vVel on the southern OB is applied at J_obc+1.
42  C             4) (Sonya Legg) Added templates for forced OBs.  C             4) (Sonya Legg) Added templates for forced OBs.
43  C  C
44  C SPK 7/17/00: Non-uniform resolution is now taken into account in diagnosing  C SPK 7/17/00: Non-uniform resolution is now taken into account in diagnosing
45  C              phase speeds and time-stepping OB values. CL is still the  C              phase speeds and time-stepping OB values. CL is still the
46  C              non-dimensional phase speed; CVEL is the dimensional phase  C              non-dimensional phase speed; CVEL is the dimensional phase
47  C              speed: CVEL = CL*(dx or dy)/dt, where dx and dy is the  C              speed: CVEL = CL*(dx or dy)/dt, where dx and dy is the
48  C              appropriate grid spacings. Note that CMAX (with which CL  C              appropriate grid spacings. Note that CMAX (with which CL
49  C              is compared) remains non-dimensional.  C              is compared) remains non-dimensional.
50  C  C
51  C SPK 7/18/00: Added code to allow filtering of phase speed following  C SPK 7/18/00: Added code to allow filtering of phase speed following
52  C              Blumberg and Kantha. There is now a separate array  C              Blumberg and Kantha. There is now a separate array
53  C              CVEL_**, where **=Variable(U,V,T,S,W)Boundary(E,W,N,S) for  C              CVEL_**, where **=Variable(U,V,T,S,W)Boundary(E,W,N,S) for
54  C              the dimensional phase speed. These arrays are initialized to  C              the dimensional phase speed. These arrays are initialized to
55  C              zero in ini_obcs.F. CVEL_** is filtered according to  C              zero in ini_obcs.F. CVEL_** is filtered according to
56  C              CVEL_** = fracCVEL*CVEL(new) + (1-fracCVEL)*CVEL_**(old).  C              CVEL_** = fracCVEL*CVEL(new) + (1-fracCVEL)*CVEL_**(old).
57  C              fracCVEL=1.0 turns off filtering.  C              fracCVEL=1.0 turns off filtering.
58  C  C
59  C SPK 7/26/00: Changed code to average phase speed. A new variable  C SPK 7/26/00: Changed code to average phase speed. A new variable
60  C              'cvelTimeScale' was created. This variable must now be  C              'cvelTimeScale' was created. This variable must now be
61  C              specified. Then, fracCVEL=deltaT/cvelTimeScale.  C              specified. Then, fracCVEL=deltaT/cvelTimeScale.
62  C              Since the goal is to smooth out the 'singularities' in the  C              Since the goal is to smooth out the 'singularities' in the
63  C              diagnosed phase speed, cvelTimeScale could be picked as the  C              diagnosed phase speed, cvelTimeScale could be picked as the
64  C              duration of the singular period in the unfiltered case. Thus,  C              duration of the singular period in the unfiltered case. Thus,
65  C              for a plane wave cvelTimeScale might be the time take for the  C              for a plane wave cvelTimeScale might be the time take for the
66  C              wave to travel a distance DX, where DX is the width of the region  C              wave to travel a distance DX, where DX is the width of the region
67  C              near which d(phi)/dx is small.  C              near which d(phi)/dx is small.
68  C  C

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22