New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
2016WP/SIMPLIF-5_ACC (diff) – NEMO

Changes between Version 5 and Version 6 of 2016WP/SIMPLIF-5_ACC


Ignore:
Timestamp:
2016-03-10T13:38:08+01:00 (8 years ago)
Author:
acc
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2016WP/SIMPLIF-5_ACC

    v5 v6  
    8080Once the PI has completed this section, he should send a mail to the previewer(s) asking them to preview the work within two weeks. 
    8181}}} 
     82 
     83= Jointly agreed plan (after preview) = 
     84 
     85== Description ==  
     86This task reimplements a spatially varying eddy viscosity coefficient proportional 
     87to the local deformation rate and grid scale (Smagorinsky 1993). This reimplementation 
     88takes advantage of the recently reorganised and simplified LDF modules which means the 
     89scheme can be implemented as a simple alternative to the existing scheme for a space 
     90and time varying coefficient (nn_aht_ijk_t=31).  This will provide a much cleaner 
     91implementation than the version which was removed from v3.6_STABLE and requires very 
     92few additional arrays and no preprocessor keys 
     93 
     94== Implementation == 
     95The changes will occur primarily in ldfdyn.F90.  
     96 
     97Firstly, in MODULE ldfdyn which will acquire the following name list additions: 
     98 
     99{{{ 
     100                                         !! If nn_ahm_ijk_t = 32 a time and space varying Smagorinsky viscosity 
     101                                         !! will be computed.  
     102   REAL(wp), PUBLIC ::   rn_csmc         !: Smagorinsky constant of proportionality  
     103   REAL(wp), PUBLIC ::   rn_cfacmin      !: Multiplicative factor of theorectical minimum Smagorinsky viscosity 
     104   REAL(wp), PUBLIC ::   rn_cfacmax      !: Multiplicative factor of theorectical maximum Smagorinsky viscosity 
     105}}} 
     106 
     107The majority of code changes then occur in ldf_dyn where the CASE statement is extended 
     108to respond to CASE 32 by setting coefficients according to the Smagorinsky scheme 
     109as revisited in Griffies and Hallberg (2000). For efficiency it is useful to define 
     110module-private 2D arrays to store some calculated terms: 
     111 
     112{{{ 
     113   REAL(wp),         ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   dtensq       !: horizontal tension squared         (Smagorinsky only) 
     114   REAL(wp),         ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   dshesq       !: horizontal shearing strain squared (Smagorinsky only) 
     115   REAL(wp),         ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   esqt, esqf   !: Square of the local gridscale (e1e2/(e1+e2))**2 
     116}}} 
     117 
     118The length-squared terms (L^2^) are geometric invariants that can be calculated once 
     119at start (ldf_dyn_init). The horizontal tension (D,,T,,= du/dx - dv/y) is calculated at 
     120T-points using the before velocities. The horizontal shearing strain (D,,S,, = du/dy + 
     121dv/dx) is calculated at F-points using the same velocities. Storing the squares of 
     122these terms means that computing viscosity coefficients at T & F points is merely a 
     123case of combining different averages of these arrays. 
     124 
     125Using the relationship given by Griffies and Hallberg (2000); namely: 
     126 
     127{{{ 
     128     B_smag = A_smag * L^2 / 8 
     129}}} 
     130 
     131means that the biharmonic coefficients (if required) can be computed from a simple 
     132scaling of the harmonic values. Note that the new implementation of the biharmonic 
     133operator as a re-rentrant laplacian means that the square root of the biharmonic 
     134coefficient should be returned by this routine. 
     135 
     136 
     137== Reference manual == 
     138 
     139The description of the Smagorinsky scheme in the current reference will be altered to 
     140reflect the new method of activation. At this stage there are no plans to implement the 
     141additional  experimental options in the previous implementation (i.e. the ability to 
     142control the contribution of the sheer term with an additional name list parameter and 
     143the option to apply a Smagorinsky type criterion to a space a time varying diffusion 
     144coefficient. 
     145 
     146Details of the new implementation will be added and will include both the continuous 
     147and discrete forms of the operators used. 
     148 
     149'''Griffies, S., M., and W. Hallberg, R''' , Biharmonic friction with a Smagorinsky-like 
     150viscosity for use in large-scale eddy-permitting ocean models, Mon. Wea. Rev., 128(8), 
     1512935-2946, 2000. 
    82152 
    83153== Preview ==