@@ -17,11 +17,15 @@ subroutine dissipationeq(nlev,dt,u_taus,u_taub,z0s,z0b,h,NN,SS)
1717! =
1818! {\cal D}_\epsilon
1919! + \frac{\epsilon}{k} ( c_{\epsilon 1} P + c_{\epsilon 3} G
20+ ! + c_{\epsilon x} P_x
21+ ! + c_{\epsilon 4} P_s
2022! - c_{\epsilon 2} \epsilon )
2123! \comma
2224! \end{equation}
2325! where $\dot{\epsilon}$ denotes the material derivative of $\epsilon$.
24- ! The production terms $P$ and $G$ follow from \eq{PandG} and
26+ ! The production terms $P$ and $G$ follow from \eq{PandG}.
27+ ! $P_s$ is Stokes shear production defined in \eq{computePs}
28+ ! and $P_x$ accounts for extra turbulence production.
2529! ${\cal D}_\epsilon$ represents the sum of the viscous and turbulent
2630! transport terms.
2731!
@@ -62,9 +66,9 @@ subroutine dissipationeq(nlev,dt,u_taus,u_taub,z0s,z0b,h,NN,SS)
6266! by setting {\tt length\_lim = .true.} in {\tt gotm.yaml}.
6367!
6468! !USES:
65- use turbulence, only: P,B,PSTK,num
69+ use turbulence, only: P,B,Px, PSTK,num
6670 use turbulence, only: tke,tkeo,k_min,eps,eps_min,L
67- use turbulence, only: ce1,ce2,ce3plus,ce3minus,ce4
71+ use turbulence, only: ce1,ce2,ce3plus,ce3minus,cex, ce4
6872 use turbulence, only: cm0,cde,galp,length_lim
6973 use turbulence, only: epsilon_bc, psi_ubc, psi_lbc, ubc_type, lbc_type
7074 use turbulence, only: sig_e,sig_e0,sig_peps
@@ -122,7 +126,7 @@ subroutine dissipationeq(nlev,dt,u_taus,u_taub,z0s,z0b,h,NN,SS)
122126 if (sig_peps) then ! With wave breaking
123127 sig_eff(nlev)= sig_e0
124128 do i= 1 ,nlev-1
125- peps= (P(i)+ B(i))/ eps(i)
129+ peps= (P(i)+ Px(i) + B(i))/ eps(i)
126130 if (peps .gt. 1 .) peps= _ONE_
127131 sig_eff(i)= peps* sig_e+ (_ONE_- peps)* sig_e0
128132 end do
@@ -147,7 +151,7 @@ subroutine dissipationeq(nlev,dt,u_taus,u_taub,z0s,z0b,h,NN,SS)
147151 end if
148152
149153 EpsOverTke = eps(i)/ tkeo(i)
150- prod = ce1 * EpsOverTke* P(i) + ce4* EpsOverTke * PSTK(i)
154+ prod = EpsOverTke * ( ce1 * P(i) + cex * Px(i) + ce4* PSTK(i) )
151155 buoyan = ce3* EpsOverTke* B(i)
152156 diss = ce2* EpsOverTke* eps(i)
153157
0 commit comments