/[MITgcm]/MITgcm/pkg/kpp/KPP_PARAMS.h
ViewVC logotype

Annotation of /MITgcm/pkg/kpp/KPP_PARAMS.h

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


Revision 1.4 - (hide annotations) (download)
Wed Sep 13 17:07:11 2000 UTC (23 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: checkpoint31
Changes since 1.3: +0 -4 lines
File MIME type: text/plain
KPP package without flag kppPackageIsOn.

1 heimbach 1.3 C $Header: /escher1/cvs/master/mitgcmuv/pkg/kpp/KPP_PARAMS.h,v 1.4 2000/09/11 23:31:25 dimitri Exp $
2 adcroft 1.1
3     C /==========================================================\
4     C | KPP_PARAMS.h |
5     C | o Basic parameter header for KPP vertical mixing |
6     C | parameterization. These parameters are initialized by |
7     C | and/or read in from data.kpp file. |
8     C \==========================================================/
9    
10     C Parameters used in kpp routine arguments (needed for compilation
11     C of kpp routines even if ALLOW_KPP is not defined)
12     C mdiff = number of diffusivities for local arrays
13     C imt = array dimension for local arrays
14     C Nrm1, Nrp1, Nrp2 = number of vertical levels
15    
16     integer mdiff, imt, Nrm1, Nrp1, Nrp2
17     parameter (mdiff = 3)
18     #ifdef FRUGAL_KPP
19     parameter (imt = sNx*sNy)
20     #else
21     parameter (imt = (sNx+2*OLx)*(sNy+2*OLy))
22     #endif
23     parameter (Nrm1 = Nr-1)
24     parameter (Nrp1 = Nr+1)
25     parameter (Nrp2 = Nr+2)
26    
27     #ifdef ALLOW_KPP
28    
29     C Time invariant parameters initialized by subroutine kmixinit
30     C nzmax (nx,ny) - Maximum number of wet levels in each column
31     C pMask - Mask relating to Pressure/Tracer point grid.
32     C 0. if P point is on land.
33     C 1. if P point is in water.
34     C zgrid (0:Nr+1) - vertical levels of tracers (<=0) (m)
35     C hwide (0:Nr+1) - layer thicknesses (>=0) (m)
36     C kpp_freq - Re-computation frequency for KPP parameters (s)
37 adcroft 1.2 C kpp_dumpFreq - KPP dump frequency. (s)
38     C kpp_taveFreq - KPP time-averaging frequency. (s)
39 heimbach 1.3
40 adcroft 1.1
41     INTEGER nzmax (1-OLx:sNx+OLx,1-OLy:sNy+OLy, nSx,nSy)
42     _RS pMask (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
43     _RS zgrid (0:Nr+1)
44     _RS hwide (0:Nr+1)
45     _RL kpp_freq
46 adcroft 1.2 _RL kpp_dumpFreq
47     _RL kpp_taveFreq
48 adcroft 1.1
49     COMMON /kpp_i/ nzmax
50    
51     COMMON /kpp_RS/ pMask, zgrid, hwide
52    
53 adcroft 1.2 COMMON /kpp_RL/ kpp_freq, kpp_dumpFreq, kpp_taveFreq
54 adcroft 1.1
55    
56     C-----------------------------------------------------------------------
57     C
58     C KPP flags and min/max permitted values for mixing parameters
59     c
60     C KPPmixingMaps - if true, include KPP diagnostic maps in STDOUT
61     C KPPwriteState - if true, write KPP state to file
62     C minKPPghat, maxKPPghat - KPP non local transport bounds (s/m^2)
63     C minKPPviscAz, maxKPPviscAz - KPP viscosity bounds (m^2/s)
64     C minKPPdiffKzT, maxKPPdiffKzT - KPP heat diffusivity bounds (m^2/s)
65     C minKPPdiffKzS, maxKPPdiffKzS - KPP tracer diffusivity bounds (m^2/s)
66     C minKPPhbl - KPPhbl minimum value (m)
67     C
68     C-----------------------------------------------------------------------
69    
70     LOGICAL KPPmixingMaps, KPPwriteState
71    
72     COMMON /KPP_PARM_L/
73     & KPPmixingMaps, KPPwriteState
74    
75     _RS minKPPghat , maxKPPghat
76     _RS minKPPviscAz , maxKPPviscAz(Nr)
77     _RS minKPPdiffKzT, maxKPPdiffKzT
78     _RS minKPPdiffKzS, maxKPPdiffKzS, minKPPhbl
79    
80     COMMON /KPP_PARM_R/
81     & minKPPghat , maxKPPghat
82     & , minKPPviscAz , maxKPPviscAz
83     & , minKPPdiffKzT, maxKPPdiffKzT
84     & , minKPPdiffKzS, maxKPPdiffKzS, minKPPhbl
85    
86     c====================== file "kmixcom.h" =======================
87     c
88     c-----------------------------------------------------------------------
89     c Define various parameters and common blocks for KPP vertical-
90     c mixing scheme; used in "kppmix.F" subroutines.
91     c Constants are set in subroutine "ini_parms".
92     c-----------------------------------------------------------------------
93     c
94     c-----------------------------------------------------------------------
95     c parameters for several subroutines
96     c
97     c epsln = 1.0e-20
98     c phepsi = 1.0e-10
99     c epsilon = nondimensional extent of the surface layer = 0.1
100     c vonk = von Karmans constant = 0.4
101     c dB_dz = maximum dB/dz in mixed layer hMix = 5.2e-5 s^-2
102     c conc1,conam,concm,conc2,zetam,conas,concs,conc3,zetas
103     c = scalar coefficients
104     c-----------------------------------------------------------------------
105    
106     _RS epsln,phepsi,epsilon,vonk,dB_dz,
107     $ conc1,
108     $ conam,concm,conc2,zetam,
109     $ conas,concs,conc3,zetas
110    
111     common /kmixcom/ epsln,phepsi,epsilon,vonk,dB_dz,
112     $ conc1,
113     $ conam,concm,conc2,zetam,
114     $ conas,concs,conc3,zetas
115    
116     c-----------------------------------------------------------------------
117     c parameters for subroutine "bldepth"
118     c
119     c
120     c to compute depth of boundary layer:
121     c
122     c Ricr = critical bulk Richardson Number = 0.3
123     c cekman = coefficient for ekman depth = 0.7
124     c cmonob = coefficient for Monin-Obukhov depth = 1.0
125     c concv = ratio of interior buoyancy frequency to
126     c buoyancy frequency at entrainment depth = 1.8
127     c hbf = fraction of bounadry layer depth to
128     c which absorbed solar radiation
129     c contributes to surface buoyancy forcing = 1.0
130     c Vtc = non-dimensional coefficient for velocity
131     c scale of turbulant velocity shear
132     c (=function of concv,concs,epsilon,vonk,Ricr)
133     c-----------------------------------------------------------------------
134    
135     _RS Ricr,cekman,cmonob,concv,hbf,Vtc
136    
137     common /kmixcbd/ Ricr,cekman,cmonob,concv,hbf,Vtc
138    
139     c-----------------------------------------------------------------------
140     c parameters and common arrays for subroutines "kmixinit"
141     c and "wscale"
142     c
143     c
144     c to compute turbulent velocity scales:
145     c
146     c nni = number of values for zehat in the look up table
147     c nnj = number of values for ustar in the look up table
148     c
149     c wmt = lookup table for wm, the turbulent velocity scale
150     c for momentum
151     c wst = lookup table for ws, the turbulent velocity scale
152     c for scalars
153     c deltaz = delta zehat in table
154     c deltau = delta ustar in table
155     c zmin = minimum limit for zehat in table (m3/s3)
156     c zmax = maximum limit for zehat in table
157     c umin = minimum limit for ustar in table (m/s)
158     c umax = maximum limit for ustar in table
159     c-----------------------------------------------------------------------
160    
161     integer nni , nnj
162     parameter (nni = 890, nnj = 480)
163    
164     _RS wmt(0:nni+1,0:nnj+1), wst(0:nni+1,0:nnj+1)
165     _RS deltaz,deltau,zmin,zmax,umin,umax
166     common /kmixcws/ wmt, wst
167     $ , deltaz,deltau,zmin,zmax,umin,umax
168    
169     c-----------------------------------------------------------------------
170     c parameters for subroutine "ri_iwmix"
171     c
172     c
173     c to compute vertical mixing coefficients below boundary layer:
174     c
175     c num_v_smooth_Ri = number of times Ri is vertically smoothed
176     c num_v_smooth_BV, num_z_smooth_sh, and num_m_smooth_sh are dummy
177     c variables kept for backward compatibility of the data file
178     c Riinfty = local Richardson Number limit for shear instability = 0.7
179     c BVSQcon = Brunt-Vaisala squared (1/s^2)
180     c difm0 = viscosity max due to shear instability (m^2/s)
181     c difs0 = tracer diffusivity .. (m^2/s)
182     c dift0 = heat diffusivity .. (m^2/s)
183     c difmcon = viscosity due to convective instability (m^2/s)
184     c difscon = tracer diffusivity .. (m^2/s)
185     c diftcon = heat diffusivity .. (m^2/s)
186     c-----------------------------------------------------------------------
187    
188     INTEGER num_v_smooth_Ri, num_v_smooth_BV
189     INTEGER num_z_smooth_sh, num_m_smooth_sh
190     _RS Riinfty, BVSQcon
191     _RS difm0 , difs0 , dift0
192     _RS difmcon, difscon, diftcon
193    
194     COMMON /kmixcri_i/ num_v_smooth_Ri, num_v_smooth_BV
195     1 , num_z_smooth_sh, num_m_smooth_sh
196    
197     COMMON /kmixcri_r/ Riinfty, BVSQcon
198     1 , difm0, difs0, dift0
199     2 , difmcon, difscon, diftcon
200    
201     c-----------------------------------------------------------------------
202     c parameters for subroutine "ddmix"
203     c
204     c
205     c to compute additional diffusivity due to double diffusion:
206     c
207     c Rrho0 = limit for double diffusive density ratio
208     c dsfmax = maximum diffusivity in case of salt fingering (m2/s)
209     c-----------------------------------------------------------------------
210    
211     _RS Rrho0, dsfmax
212     common /kmixcdd/ Rrho0, dsfmax
213    
214     c-----------------------------------------------------------------------
215     c parameters for subroutine "blmix"
216     c
217     c
218     c to compute mixing within boundary layer:
219     c
220     c cstar = proportionality coefficient for nonlocal transport
221     c cg = non-dimensional coefficient for counter-gradient term
222     c-----------------------------------------------------------------------
223    
224     _RS cstar, cg
225    
226     common /kmixcbm/ cstar, cg
227    
228     #endif /* ALLOW_KPP */

  ViewVC Help
Powered by ViewVC 1.1.22