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.
WorkingGroups/TOP/NEMO36_TOP_BDY (diff) – NEMO

Changes between Initial Version and Version 1 of WorkingGroups/TOP/NEMO36_TOP_BDY


Ignore:
Timestamp:
2018-10-29T18:27:45+01:00 (5 years ago)
Author:
lovato
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WorkingGroups/TOP/NEMO36_TOP_BDY

    v1 v1  
     1[[PageOutline()]] 
     2 
     3[[TOC(WorkingGroups/top-dg/*, depth=1)]] 
     4 
     5= '''NEMO v3.6 TOP BDY Patch''' = 
     6Last edition: '''[[Wikinfo(changed_ts)]]''' by '''[[Wikinfo(changed_by)]]''' 
     7 
     8'''BEFORE USE''' : this  patch is meant to provide only the core functionality for TOP BDY.  
     9Official support for tracers BDY will be given only for versions after NEMO v4.0 . 
     10 
     11== Description  == 
     12 
     13This patch to enable the core support of BDY for TOP passive tracers with NEMO v3.6 (tested with r10254). 
     14Note that in this patch, routines that provide to initialization/reading of Boundary conditions (trcbc.f90) were also updated. 
     15 
     16''BDY schemes'' included in this version are the following (see trcbdy.F90):  
     17* '''frs''' : Flow Relaxation Scheme  
     18* '''specified''' : Specified value 
     19* '''neumann''' : Duplicate the value for tracers  
     20* '''orlanski''' : Orlanski radiation  
     21* '''orlanski_npo''' : Orlanski radiation with adaptive nudging 
     22 
     23Refer to the BDY description of NEMO manual for further details on the different schemes. 
     24 
     25In '''namelist_top_ref''' the following changes are necessary (see the patched version contained in the code provided): 
     26 
     27{{{ 
     28 !----------------------------------------------------------------------- 
     29 &namtrc_bc 
     30 ! 
     31   cn_dir_sbc        =  './'      !  root directory for the location of SURFACE data files 
     32   cn_dir_cbc        =  './'      !  root directory for the location of COASTAL data files 
     33   cn_dir_obc        =  './'      !  root directory for the location of OPEN data files 
     34/ 
     35!---------------------------------------------------------------------- 
     36!namtrc_bdy       !   Setup of tracer boundary conditions 
     37!----------------------------------------------------------------------- 
     38$namtrc_bdy 
     39   cn_trc_dflt     =  'neumann'    !  OBC applied by default to all tracers 
     40   cn_trc          =  'none'       !  Boundary conditions applied to the passive tracers (selected in namtrc) 
     41 
     42   nn_trcdmp_bdy   = 0     !  Use damping timescales defined in nambdy of namelist 
     43                           !  = 0 NO damping of tracers at open boudaries 
     44                           !  = 1 Only for tracers forced with external data 
     45                           !  = 2 Damping applied to all tracers 
     46 / 
     47}}} 
     48 
     49Details on the usage of these namelists and the setup of a one tracer case are given below. 
     50 
     51 
     52 
     53== Usage walktrough  == 
     54 
     55Code is contained in the attached tarball and it contains a set of modified files in the classic "MY_SRC" folder to be added in NEMO configuration. 
     56 
     57Note that '''namelist_top_ref''' has to be modified by the user in <NEMODIR>/NEMOGCM/CONFIG/SHARED according to the description above (or the sample file provided in the tarball). 
     58 
     59A modified fortran data structure of namtrc was here developed to set the different boundary conditions of passive tracers, as in the following example : 
     60 
     61 
     62{{{ 
     63!----------------------------------------------------------------------- 
     64&namtrc     !   tracers definition 
     65!----------------------------------------------------------------------- 
     66!                !    name   !           title of the field              ! initial data ! initial data !   sbc   !   cbc   !   obc   ! save   ! 
     67!                !           !                                           !  units       ! from file    !         !         !         ! or not ! 
     68!                !           !                                           !              ! or not       !         !         !         !        ! 
     69   sn_tracer(1)   = 'TRACER1  ' , 'Tracer1 for key_my_trc               ',  'unitless'  ,   .true.     , .false. , .true.  , .true.  ,  .true. 
     70 
     71... 
     72/ 
     73}}} 
     74 
     75 
     76 
     77namtrc_bc : here are provided the different boundary conditions for passive tracers, namely surface, coastal, and open lateral boundaries (see the example below for usage). 
     78namtrc_bdy : here set the BDY schemes to be used for those tracers that BDY inputs are provided (according to namtrc options)