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.
ticket/1593_CNRS9_NOC3_LDF (diff) – NEMO

Changes between Version 11 and Version 12 of ticket/1593_CNRS9_NOC3_LDF


Ignore:
Timestamp:
2015-09-22T18:17:43+02:00 (9 years ago)
Author:
gm
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ticket/1593_CNRS9_NOC3_LDF

    v11 v12  
    2323Three steps: 
    2424 
    25   '''                   I. Phasing of horizontal scale factors '''         ===>>> OK see '''      revision  [https://forge.ipsl.jussieu.fr/nemo/log/branches/2015/dev_r5721_CNRS9_NOC3_LDF?rev=5737 5737]    '''       ) 
     25  '''                      I. Phasing of horizontal scale factors '''            ===>>> OK see '''         revision  [https://forge.ipsl.jussieu.fr/nemo/log/branches/2015/dev_r5721_CNRS9_NOC3_LDF?rev=5737 5737]       '''          ) 
    2626 
    2727'''   (I.1)''' standardisation of the name of quantities derived from horizontal scale factors (many modules of NEMO)[[BR]]The chosen names of quantities derived from horizontal scale factors are:[[BR]]- inverse of scale factors : r1_e1t, r1_e2t, r1_e1u, r1_e2u, r1_e1v, r1_e2v, r1_e1f, r1_e2f ;[[BR]]- surfaces and their inverse:    e1e2t, e1e2u , e1e2v, e1e2f  and, r1_e1e2t , r1_e1e2u , r1_e1e2v, r1_e1e2f ;[[BR]]- ratio (used in traldf...) : e2_e1u , e1_e2v(I.1) generalize of the use of surface scale factors ;[[BR]]These quantities are defined in memory in dom_oce.F90, and set to their proper value in domhgr.F90 
     
    2929'''   (I.2)''' add a optional read of surface scale factors at velocity points in coordinate file (domhgr.F90)[[BR]]        The input coordinate file have to include e1e2u and e1e2v in case of reduction of the scale factors in some straits.[[BR]]        When e1u or e2v are reduced in some straits, the surface at u- and v-points remains unchanged.[[BR]]        This allows to suppress the dom_vvl_orca_fix routine from dlmvvl.F90 module.[[BR]]''Note that this change modifies the model results'', as it contains a better handling of reduced strait width (i.e. reduced surface between 2 adjacent U or V points, but unchanged U and V points volume).[[BR]]The implementation performed here is a first step to the full simplification of domhgr.F90. We kept here the hard coded reduction of scale factor in some straits for some given ORCA configuration. [[BR]]A last step (see IV) will be to suppress the hard coded reduction of some scale factor as it will be always given in the coordinates.nc file together with the e1e2u & e1e2v surfaces. 
    3030 
    31   '''                   II. Phasing of the advective/diffusive trends on tracers''' 
     31  '''                      II. Phasing of the advective/diffusive trends on tracers''' 
    3232 
    33 '''   (II.1)''' ...Diffusive trends : [[BR]]-  
     33'''   (II.1)''' LDF on tracers (both TRA & TRC) - Diffusive trends : 
    3434 
    35 '''(II.1)''' ...Diffusive trends :  
     35''operator'': [[BR]]- laplacian operator: re-entrant laplacian for iso-level, standard iso-neutral, and triad iso-neutral operators ;[[BR]]- bilaplacian operator: traldf_blp.F90 module: use of the re-entrant laplacian [[BR]]- both standard and triad iso-neutral operators includes  the Method of Stabilizing Correction (Lemarié et al. (2012) which allows bilaplacian along iso-neutral surfaces ;[[BR]]- triad operator: introduce Beckers et al. (2000) compact stencil in the cross-isoneutral direction ; make the triad operator available in TOP[[BR]]- change name:  traldf_iso_grif.F90 becomes traldf_iso_triad.F90[[BR]]- suppression of traadv_eiv.F90 ; traldf_bilap.F90 ; traldf_bilapg.F90 ; 
    3636 
    37 '''(II.X)''' ..Miscellaneous : [[BR]]- Atmospheric pressure forcing: change to a systematic call of sbc_apr in step.F90 (with or without BDY) and remove its call from sbcmod[[BR]]- remove key_ldftra_smag and associated module (ldftra_smag.F90) 
     37''lateral mixing coefficient'':[[BR]]- new user interface (namelist) : 
    3838 
    39  :  
     39{{{ 
     40!---------------------------------------------------------------------------------- 
     41&namtra_ldf    !   lateral diffusion scheme for tracers 
     42!---------------------------------------------------------------------------------- 
     43   !                       !  Operator type: 
     44   ln_traldf_lap   =  .true.   !    laplacian operator 
     45   ln_traldf_blp   =  .false.  !  bilaplacian operator 
     46   !                       !  Direction of action: 
     47   ln_traldf_lev   =  .false.  !  iso-level 
     48   ln_traldf_hor   =  .false.  !  horizontal (geopotential) 
     49   ln_traldf_iso   =  .true.   !  iso-neutral 
     50   ln_traldf_triad =  .false.  !  iso-neutral using Griffies triads 
     51   ! 
     52   !                             !  iso-neutral options:         
     53   ln_traldf_msc   =  .true.   !  Method of Stabilizing Correction (both operators) 
     54   rn_slpmax       =   0.01    !  slope limit                      (both operators) 
     55   ln_triad_iso    =  .false.  !  pure horizontal mixing in ML     (triad only) 
     56   rn_sw_triad     =  1        !  =1 switching triad ; =0 all 4 triads used (triad only) 
     57   ln_botmix_triad =  .false.  !  lateral mixing on bottom         (triad only) 
     58   ! 
     59   !                       !  Coefficients: 
     60   nn_aht_ijk_t    = 21        !  space/time variation of eddy coef 
     61   !                                !   =-20 (=-30)    read in eddy_induced_velocity_2D.nc (..._3D.nc) file 
     62   !                                !   =  0           constant  
     63   !                                !   = 10 F(k)      =ldf_c1d  
     64   !                                !   = 20 F(i,j)    =ldf_c2d  
     65   !                                !   = 21 F(i,j,t)  =Treguier et al. JPO 1997 formulation 
     66   !                                !   = 30 F(i,j,k)  =ldf_c2d + ldf_c1d 
     67   !                                !   = 31 F(i,j,k,t)=F(local velocity) 
     68   rn_aht_0        = 2000.     !  lateral eddy diffusivity   (lap. operator) [m2/s] 
     69   rn_bht_0        = 1.e+12    !  lateral eddy diffusivity (bilap. operator) [m4/s] 
     70/ 
     71!---------------------------------------------------------------------------------- 
     72&namtra_ldfeiv !   eddy induced velocity param. 
     73!---------------------------------------------------------------------------------- 
     74   ln_ldfeiv     =.true.   ! use eddy induced velocity parameterization 
     75   ln_ldfeiv_dia =.true.   ! diagnose eiv stream function and velocities 
     76   rn_aeiv_0     = 2000.   ! eddy induced velocity coefficient   [m2/s] 
     77   nn_aei_ijk_t  = 21      ! space/time variation of the eiv coeficient 
     78   !                                !   =-20 (=-30)    read in eddy_induced_velocity_2D.nc (..._3D.nc) file 
     79   !                                !   =  0           constant  
     80   !                                !   = 10 F(k)      =ldf_c1d  
     81   !                                !   = 20 F(i,j)    =ldf_c2d  
     82   !                                !   = 21 F(i,j,t)  =Treguier et al. JPO 1997 formulation 
     83   !                                !   = 30 F(i,j,k)  =ldf_c2d + ldf_c1d 
     84/ 
     85}}} 
     86  - ln_traldf_lap=traldf_blp=0   No lateral diffusion applied on tracers - ah and bh coefficients defined only at u- and v-points.[[BR]]- suppression of ldfeiv.F90 (now included in ldftra.F90) ; ldftra_substitute.h90 ; ldfeiv_substitute.h90 ; ldftra_c1d.h90 , ldftra_c2d.h90 and  ldftra_c3d.h90 (replaced by ldfc1d_c2d.F90) ; ldftra_oce.F90 (now included in ldftra.F90) ; ldftra_smag.F90 (suppression of smagorinski option)[[BR]]- suppression of cpp keys : key_ldfslp ; ''key_traldf_c1d ; key_traldf_c2d ; key_traldf_c3d ; ''key_diaeiv ; key_traldf_eiv ; key_traldf_eiv  
     87  Misc. : suppression of key_esopa in traldf.F90 
     88  '''Pending issues''' : [[BR]]- verify diaptr.F90  : not sure it is OK[[BR]]- add the max grid size in the coordinate file and use it to compute grid dependent diffusivity. This will solve an issue with regional and AGRIF configurations[[BR]]- test all 6 operators.[[BR]]- change default option in the namelist  
    4089 
    41   '''                   III. Phasing of viscous trends''' 
     90'''(II.1)''' Advective trends : 
     91 
     92'''(II.X)''' ..Miscellaneous : [[BR]]- Atmospheric pressure forcing: change to a systematic call of sbc_apr in step.F90 (with or without BDY) and remove its call from sbcmod[[BR]]- remove key_ldftra_smag and associated module (ldftra_smag.F90) 
     93 
     94  : 
     95 
     96  '''                      III. Phasing of viscous trends''' 
    4297 
    4398'''   (III.1)''' 
     
    45100... 
    46101 
    47   '''                  IV. Solve the pending issues''' 
     102  '''                     IV. Solve the pending issues''' 
    48103 
    49   '''                  (IV.1) ''' specification of eddy viscosity/diffusivity coefficients in case of grid-size dependency.[[BR]] Issue:  define the grid-size dependency in such a way that does not require the Equator being inside the domain.[[BR]] Solution: add a scalar in the coordinate file which is equal to the grid-size at the equator even if Equator is not in the domain[[BR]] and use this scalar to compute the grid-size dependency of the coefficients. ''' (IV.2) ''' specification of lateral friction at the coast.[[BR]] Issue:  the different values of fmask at the coast have been removed so that this lateral boundary condition doesn't affect the advective term (''' double check that'''  !). fmask is still used for laplacian and bilaplacian viscosities. Nevertheless, the magnitude of lateral friction depends on the magnitude of ahm (bhm, reap.). It seems better to define this magnitude [[BR]] Solution: add a scalar in the coordinate file which is equal to the grid-size at the equator even if Equator is not in the domain[[BR]] and use this scalar to compute the grid-size dependency of the coefficients. 
     104  '''                     (IV.1) '''    specification of eddy viscosity/diffusivity coefficients in case of grid-size dependency.[[BR]]    Issue:  define the grid-size dependency in such a way that does not require the Equator being inside the domain.[[BR]]    Solution: add a scalar in the coordinate file which is equal to the grid-size at the equator even if Equator is not in the domain[[BR]]    and use this scalar to compute the grid-size dependency of the coefficients. '''    (IV.2) '''    specification of lateral friction at the coast.[[BR]]    Issue:  the different values of fmask at the coast have been removed so that this lateral boundary condition doesn't affect the advective term ('''    double check that'''     !). fmask is still used for laplacian and bilaplacian viscosities. Nevertheless, the magnitude of lateral friction depends on the magnitude of ahm (bhm, reap.). It seems better to define this magnitude [[BR]]    Solution: add a scalar in the coordinate file which is equal to the grid-size at the equator even if Equator is not in the domain[[BR]]    and use this scalar to compute the grid-size dependency of the coefficients. 
    50105 
    51106... 
    52107 
    53   ''' V. Finalize the simplification''' 
     108  '''    V. Finalize the simplification''' 
    54109 
    55   ''' (V.1) ''' suppression of hard coded reduction of scale factor in some straits for some given ORCA configuration.[[BR]] ''' add'''  in NEMOGCM/TOOLS a directory a program that read a coordinates.nc file apply a reduction of scale factors in some straits, and create the associated extended coordinates file (coordinates_e1e2u_v.nc).[[BR]] create the extended coordinates files form ORCA 2°, 1°, and 0.5°. 
     110  '''    (V.1) '''    suppression of hard coded reduction of scale factor in some straits for some given ORCA configuration.[[BR]]    '''    add'''     in NEMOGCM/TOOLS a directory a program that read a coordinates.nc file apply a reduction of scale factors in some straits, and create the associated extended coordinates file (coordinates_e1e2u_v.nc).[[BR]]    create the extended coordinates files form ORCA 2°, 1°, and 0.5°. 
    56111 
    57112...