Changes between Version 22 and Version 23 of Users/ModelInterfacing/AGRIF
- Timestamp:
- 2018-08-31T15:11:21+02:00 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Users/ModelInterfacing/AGRIF
v22 v23 27 27 == Definition of the grid hierarchy 28 28 29 An additional text file "AGRIF_FixedGrids.in" is required at run time. This is where the grid hierarchy is defined. An example of such a file, here taken from the VORTEX test case, is given below:29 An additional text file `AGRIF_FixedGrids.in` is required at run time. This is where the grid hierarchy is defined. An example of such a file, here taken from the [source:/NEMO/trunk/tests/VORTEX@10075 'VORTEX' test case], is given below: 30 30 31 {{{ 32 1 33 19 38 19 38 3 3 3 34 0 35 }}} 31 [[IncludeSource(/NEMO/trunk/tests/VORTEX/EXPREF/AGRIF_FixedGrids.in, rev=9787, line_numbers=0)]] 36 32 37 The first line indicates the number of zooms (1). The second line contains the starting and ending indices in both directions on the root grid (19 38 19 38) followed by the space and time refinement factors (3 3 3). The last line is the number of child grid nested in the refined region (0). A more complex example with telescoping grids can be found below and in the cfgs/AGRIF_DEMO/EXPREF reference configuration directory(NEMO 4.0 only).33 The first line indicates the number of zooms (1). The second line contains the starting and ending indices in both directions on the root grid (19 38 19 38) followed by the space and time refinement factors (3 3 3). The last line is the number of child grid nested in the refined region (0). A more complex example with telescoping grids can be found below and in the [source:/NEMO/trunk/cfgs/AGRIF_DEMO@10075 'AGRIF_DEMO' reference configuration directory] (NEMO 4.0 only). 38 34 39 35 [[span(''Add some plots here with grid staggering and positioning ?'', style=background-color:lime)]] … … 44 40 == Preprocessing 45 41 46 Knowing the refinement factors and area, a pre-processing tool (utils/tools/NESTING directory) may help to create needed input files (mesh file, restart, climatological and forcing files). The key is to ensure volume matching near the child grid interface, a step done by invoking the Agrif_create_bathy.exe program. You may use the namelists provided in the utils/tools/NESTING directory as a guide. These correspond to the namelists used to create AGRIF_DEMOinputs.42 Knowing the refinement factors and area, a [source:/utils/tools/NESTING@10029 pre-processing tool] may help to create needed input files (mesh file, restart, climatological and forcing files). The key is to ensure volume matching near the child grid interface, a step done by invoking the Agrif_create_bathy.exe program. You may use the namelists provided in the `NESTING` directory as a guide. These correspond to the namelists used to create `AGRIF_DEMO` inputs. 47 43 48 44 49 45 == Namelist options 50 46 51 Each child grid expects to read its own namelist so that different numerical choices can be made (these should be stored in the form 1_namelist_cfg, 2_namelist_cfg, etc... according to their rank in the grid hierarchy). Consistent time steps and number of steps with the chosen time refinement have to be provided. Specific to AGRIF is the following block:47 Each child grid expects to read its own namelist so that different numerical choices can be made (these should be stored in the form `1_namelist_cfg`, `2_namelist_cfg`, etc... according to their rank in the grid hierarchy). Consistent time steps and number of steps with the chosen time refinement have to be provided. Specific to AGRIF is the following block: 52 48 53 49 [[IncludeSource(/NEMO/trunk/doc/namelists/namagrif, rev=10075, line_numbers=0, mimetype=text/x-fortran)]] … … 83 79 84 80 * [[span(''Important notice concerning the change of ghost cells number:'', style=background-color:yellow)]] 85 The default number of ghost cells (i.e. the number of cells that serve as open boundary data provision) has been increased from 1 to 3 in NEMO 4.0. This allows to properly handle boundary conditions for numerical schemes that have a discretization order greater than 2. On the user point of view this does not change anything++ except in the definition of level 1 grids in the AGRIF_FixedGrids.in file. In order to retrieve exactly the position of a nested grid in NEMO 4.0 one has to shift indices by 2 points to the south-west. Taking the VORTEXexample above for NEMO 4.0, the "old" NEMO 3.6 corresponding file would contain:81 The default number of ghost cells (i.e. the number of cells that serve as open boundary data provision) has been increased from 1 to 3 in NEMO 4.0. This allows to properly handle boundary conditions for numerical schemes that have a discretization order greater than 2. On the user point of view this does not change anything++ except in the definition of level 1 grids in the `AGRIF_FixedGrids.in` file. In order to retrieve exactly the position of a nested grid in NEMO 4.0 one has to shift indices by 2 points to the south-west. Taking the `VORTEX` example above for NEMO 4.0, the "old" NEMO 3.6 corresponding file would contain: 86 82 87 {{{ 88 1 89 21 40 21 40 3 3 3 90 0 91 }}} 83 [[IncludeSource(/NEMO/releases/release-3.6/NEMOGCM/CONFIG/ORCA2_LIM/EXP00/AGRIF_FixedGrids.in, rev=9594)]] 92 84 93 85 ++ Output files are now greater by 4 points in each direction. 94 86 95 87 96 === New reference configuration with AGRIF: AGRIF_DEMO88 === New reference configuration with AGRIF: `AGRIF_DEMO` 97 89 98 90 {{{#!table class='' style='width: 66%' … … 105 97 }}} 106 98 {{{#!td 107 AGRIF_DEMO is based on the [wiki:Users/ReferenceConfigurations/ORCA2_LIM3_PISCES] global 2° configuration but it includes 3 online nested grids that demonstrate the overall capabilities of AGRIF in a realistic context, including nesting sea ice models.99 `AGRIF_DEMO` is based on the [wiki:Users/ReferenceConfigurations/ORCA2_LIM3_PISCES ORCA2_LIM3_PISCES] global 2° configuration but it includes 3 online nested grids that demonstrate the overall capabilities of AGRIF in a realistic context, including nesting sea ice models. 108 100 109 101 The configuration includes a 1:1 grid in the Pacific and two successively nested grids with odd and even refinement ratios over the Arctic ocean. The finest grid spanning the whole Svalbard archipelago is of particular interest to check that sea ice coupling is done properly. The 1:1 grid, used alone, is used as a benchmark to check that the solution is not corrupted by grid exchanges. … … 115 107 Corresponding AGRIF_FixedGrids.in file is given by: 116 108 117 {{{ 118 2 119 42 82 49 91 1 1 1 120 122 153 110 143 4 4 4 121 0 122 1 123 38 80 71 111 3 3 3 124 0 125 }}} 109 [[IncludeSource(/NEMO/trunk/cfgs/AGRIF_DEMO/EXPREF/AGRIF_FixedGrids.in, rev=9775, line_numbers=0)]] 126 110 127 111 128 112 === New tests cases demonstrating some major features of AGRIF with NEMO: 129 113 130 * tests/ICEDYN:114 * `tests/ICEDYN`: 131 115 132 116 [[span(''Clement to add an illustration here ?'', style=background-color:lime)]] … … 134 118 This is an East-west + north-south periodic channel. The configuration includes an AGRIF zoom (1:3) in the middle of the basin to test how an ice patch is advected through it but one can also test the advection schemes (Prather and Ultimate-Macho) by removing the key_agrif in the cpp keys. 135 119 136 * tests/VORTEX:120 * `tests/VORTEX`: 137 121 138 122 This test case illustrates the propagation of an anticyclonic eddy over a Beta plan and a flat bottom. It is implemented here with an online refined subdomain (1:3) out of which the vortex propagates. It serves as a benchmark for quantitative estimates of nesting errors as in Debreu et al. (2012), Penven et al. (2006) or Spall and Holland (1991). The animation below (sea level anomaly in meters) illustrates with two 1:2 successively nested grids how the vortex smoothly propagates out of the refined grids. 139 123 140 124 {{{#!imagebox 141 [[Image( wiki:Users/ModelInterfacing/AGRIF:VORTEX_anim.gif,width=600)]]125 [[Image(VORTEX_anim.gif,width=600)]] 142 126 }}} 143 127